Skip to content

Restore node:fs after the Codex instructions unit mock - #530

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix-instructions-fs-mock-leak
Aug 22, 2026
Merged

Restore node:fs after the Codex instructions unit mock#530
TheGreatAxios merged 1 commit into
mainfrom
fix-instructions-fs-mock-leak

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

Verification

  • Poison-order local run: instructions mock first, then the previously failing suites — 24 pass / 0 fail
  • Full bun run test on CI

Related to CL-6693

The instructions test replaced node:fs for the whole process and never
put it back. CI loads ./src before ./tests, so every later suite that
touches the real filesystem saw the in-memory fake — missing settings
files, ENOENT fixture reads, and chmod on paths mkdir never created.

Spread the real module into the mock and restore it in afterAll, matching
the pattern already used by the session state tests.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

CL-6693

@TheGreatAxios
TheGreatAxios merged commit 1768d95 into main Aug 22, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant