test_runner: support mock file system #55902
Labels
feature request
Issues that request new features to be added to Node.js.
fs
Issues and PRs related to the fs subsystem / file system.
test_runner
Issues and PRs related to the test runner subsystem.
What is the problem this feature will solve?
The current test requires writing files to a real disk when reading and writing files related to the file system, which is very unsafe.
After all, the file may remain due to test case failure and other reasons.
What is the feature you are proposing to solve the problem?
Under the mock namespace, APIs are exposed to provide a mock file system.
And provide some options
e.g.
Override the file that defined by defaults
Override the whole file system
What alternatives have you considered?
mock-fs
The text was updated successfully, but these errors were encountered: