Repository navigation
Conversation
|
commit: |
|
mock-fs patches Node fs internals and throws at import time on Node 26 (tschaub/mock-fs#447), which took down search-and-replace.test.ts and failed the 'Test & Lint on Node current' job on every PR. It was only used to make a single readFile call fail, so that call is stubbed via vitest instead and mock-fs is removed. Adds an explicit 26 entry to the test matrix so coverage remains when 'current' moves on. Replaces #289, same diagnosis.
7d585dd to
216c803
Compare
mock-fs patches Node fs internals and throws at import time on Node 26 (tschaub/mock-fs#447), which took down
search-and-replace.test.tsas a whole and failed theTest & Lint on Node currentjob on every PR —currentresolves to 26.8.1 since Node 26 shipped. All actual tests pass; only the mock-fs import crashes.mock-fs was used in exactly one test, to create an unreadable (mode 0o000) file so
readFilefails. That call is now stubbed via a vitest passthrough mock ofnode:fs/promisesinstead, and mock-fs and @types/mock-fs are removed. Every other test in the file already runs against a real temp directory.Also adds an explicit
26entry to the test matrix so Node 26 stays covered aftercurrentrolls to 27 in October.Verified locally on Node 26.8.1: full
pnpm test(lint, types, vitest with coverage) passes, 165/165 tests.Replaces #289, same diagnosis. No changeset: dev-dependency and test changes only, nothing ships to users.