testing/mock_fs.ts view source
(initial_files?: Record<string, string>): MockFs Creates an in-memory file system for tests.
read_file throws an ENOENT-tagged error for missing paths so callers
can exercise the same "file doesn't exist" code path as node:fs.
initial_files
type
Record<string, string> default
{}returns
MockFs