test(writes): count every write, drop the stack attribution (#40) #44

Merged
maximus merged 1 commit from issue-40-count-every-write into main 2026-10-02 00:46:10 +00:00

1 commit

Author SHA1 Message Date
le king fu
5912f08e41 test(writes): count every write, drop the stack attribution (#40)
All checks were successful
CI / verification (pull_request) Successful in 23s
CI / verification (push) Successful in 20s
A node:fs function handed as-is to an asynchronous mechanism
(process.nextTick(writeFileSync, ...), a bound listener, a .then) runs with
no runtime frame on its stack, so the stack filter let the write through on
a path the suite does exercise.

The spies now record every call. The test's own fixture edits go through
the real functions captured before any spy exists. The recursive rmSync of
the reports directory becomes a rename: rmSync recurses through the public
fs.rmdirSync, which is the spy by then.

Fixes #40

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 20:01:09 -04:00