mock-fs

Configurable mock for the fs module

OTHER License

Downloads
2M
Stars
906
Committers
42
mock-fs - v5.2.0 Latest Release

Published by tschaub almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/tschaub/mock-fs/compare/v5.1.4...v5.2.0

mock-fs - v5.1.4

Published by tschaub about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/tschaub/mock-fs/compare/v5.1.3...v5.1.4

mock-fs - v5.1.3

Published by tschaub about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/tschaub/mock-fs/compare/v5.1.2...v5.1.3

mock-fs - v5.1.2

Published by 3cp about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/tschaub/mock-fs/compare/v5.1.1...v5.1.2

mock-fs - v5.1.1

Published by 3cp about 2 years ago

  • Added engines to package.json to clarify that Node >= 12 is required (thanks @tillig, see [#337][#337])
mock-fs - v5.1.0

Published by 3cp about 2 years ago

  • Added support for Node >= 16.3 (thanks @Rugvip, see [#335][#335])
mock-fs - 5.0.0

Published by tschaub over 3 years ago

Breaking change

  • Remove support for Node < 12. If you want to use mock-fs to test on Node 10 or lower, stick with mock-fs@4.

New features

  • Support for BigInt file stats - required for Node 15+ (thanks @3cp, see #325)
mock-fs - v4.14.0

Published by tschaub over 3 years ago

  • Attempt to fix logging when using mock-fs with tape (see #322)
  • Minor fix for bypass() (thanks @3cp, see #320)
mock-fs -

Published by tschaub about 4 years ago

  • Make process.chdir(), process.cwd(), and fs.createWriteStream() work with bypass() (thanks @3cp, see #307)
  • Fix memory leak associated with Node 10 (thanks #3cp, see #303)
  • Async function handling in bypass() (see #306)
  • Big new feature! Temporarily bypass the mocked filesystem with the bypass() function (thanks @nonara, see #304)
mock-fs -

Published by tschaub over 4 years ago

  • Throw ENOTDIR when trying to open an incorrect path (thanks @niieani, see #282)
  • Fix maybeCallback return (thanks @3cp, see #281)
mock-fs -

Published by tschaub over 4 years ago

  • Support withFileTypes when reading directories (thanks @mrmlnc, see #287)
mock-fs -

Published by tschaub over 4 years ago

  • Check permissions in readdir and readdirSync (thanks @warpdesign, see #295)
  • Add support for Buffer arg on many fs functions (thanks @3cp, see #293)
  • Fix checks for read permission (thanks @3cp, see #289)
  • Correct error code for readFile on a directory (thanks @3cp, see #286)