Repository navigation
2.6.4
The release focuses on improvements to how tests are run and imports.
Imports
The package.json exports have been updated so that you no longer have to add .js to the end of imports. For example, you can now import from @zenfs/core/config instead of having to write @zenfs/core/config.js. Note that only a few public-facing import paths are meant to be stable and that you should almost always be importing from @zenfs/core.
Tests
- Updated tests to work without
tsx- This is an opt-in via the
--node/-nflag tozenfs-testfor backward compatibility
- This is an opt-in via the
- Updated the native
node:fstests- Added
test:nativenpm script (this replaces thetests/native/run.sh) - Added
roottest flag which is used on tests that require root when running against the actualnode:fsmodule sudois no longer used, though this means theroot-flagged tests will be skipped
- Added
- Updated
zenfs-testcoverage reporting--reportnot controls whether to display a coverage report when running tests. This means by default a coverage report will no longer by shown, which should reduce the amount of unwanted output.- The old "exclusive"
--reportfunctionality has been moved to--report-only
- Updated tests so that
fs.promises.existsisn't used other than in the actualfs.promises.existstest- Changed since it is not part of the Node.js API
- Added
promises.existstest flag
- Fixed some
FileHandles in tests not being closed - Changed
instanceof Errorusage in tests toError.isError