ConstDetect if a file exists and is usable.
Return a promise to be completed once the specified directory is deleted.
In the Jest.afterEach function call this one to clean up and remove the temp directory.
In the Jest.beforeEach function call this one to set up the temp directory.
Ensure that the del has completed, recursively attempt to delete and recreate
Override the temp directory path used by afterEach, beforeEach, and createTempDir. Call this once, before your tests run, if the default ('test-temp/') doesn't suit your project.
Write a file, creating any missing parent directories first.
Write a package.json file for a directory, creating any missing parent directories first. Parses and
re-serializes with a plain 2-space indent regardless of how fields was built, so callers never need to worry
about matching JSON formatting by hand.
Copy real, installed node_modules packages into a destination directory, for use as realistic test fixtures instead of hand-written stand-ins.