How to use the fs-monkey.patchFs function in fs-monkey

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 7 months ago

Package Health Score

84 / 100
Full package analysis

Popular fs-monkey functions