How to use fs-monkey - 3 common examples

To help you get started, we’ve selected a few fs-monkey examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apollographql / apollo-tooling / packages / apollo / src / __mocks__ / localfs.ts View on Github external
export function withGlobalFS(thunk: () => T): T {
  const unpatch = patchFs(vol);
  const ret = thunk();
  unpatch();
  return ret;
}

fs-monkey

Monkey patches for file system related things.

Unlicense
Latest version published 8 months ago

Package Health Score

81 / 100
Full package analysis

Popular fs-monkey functions