Open josephjclark opened 1 day ago
Notes on the problem form @doc-han 👍
readFileSync Issue: https://github.com/tschaub/mock-fs/issues/377 (fixed via a version bump to 5)
don't see a good issue around mock-fs
not working with dynamic import in node v20. closest issue for mock-fs@v3
https://github.com/tschaub/mock-fs/issues/130
Our only failing tests are in packages/cli/test/commands.test.ts
I think we need to look for a different solution to commands.test.ts. The options as I see it right now:
When updating to node 20,
mock-fs
breaks.We use mock-fs extensively in unit tests to load fake adaptor files and such. Bumping the mock-fs version helps, but we also have a problem dynamically importing modues.
Basically mock-fs will only mock the filesystem for
node:fs
. When usingimport()
(as we do in the runtime to load adaptors), the file system isn't mocked out at all.