Repository navigation
test(#1141): no hardcoded absent-path fixture; state-hook error test has no FS side effect - #1158
Merged
admarble merged 6 commits intoSep 25, 2026
Conversation
Entire-Checkpoint: 19fa615766a5
Entire-Checkpoint: 93b92c95290a
Entire-Checkpoint: c296fa873215
…als, widen the gate
3 tasks
…te-hook-test-ts-writes-a-real-nonexistent-
admarble
deleted the
feature/1141-test-state-hook-test-ts-writes-a-real-nonexistent-
branch
September 25, 2026 12:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
state-hook.test.tserror-path test now uses a tmp-relative absent path withfs.mkdirSyncstubbed (partialvi.mock("fs"), since the ESM namespace isn't spy-able) and asserts nothing was created.path.join(os.tmpdir(), ...). The last two sites,__tests__/relay-cli.test.tsand__tests__/pre-tool-hook.integration.test.ts, were converted in 1f0aa8c. The issue's count of seven files was right.src/lib/no-nonexistent-path-gate.test.ts(literal assembled at runtime).Pre-PR AC Verification
grep -rn "/nonexistent/path" src __tests__emptyBuild, lint, full
npm test(338 files, 8380 passed) green. No production change.Mutation-verified: AC-3 — appended literal to scripts/analytics/gap-signal.test.ts (and earlier to tests/relay-cli.test.ts); src/lib/no-nonexistent-path-gate.test.ts failed; restored.
Closes #1141
🤖 Generated with Claude Code