test-filesystem
    Preparing search index...

    Variable setUpConst

    setUp: {
        afterEach: () => Promise<any>;
        beforeEach: () => Promise<any>;
        createTempDir: (exists?: boolean) => Promise<any>;
        setDefaults: (dirPath?: string) => void;
    } = ...

    Type Declaration

    • afterEach: () => Promise<any>

      In the Jest.afterEach function call this one to clean up and remove the temp directory.

    • beforeEach: () => Promise<any>

      In the Jest.beforeEach function call this one to set up the temp directory.

    • createTempDir: (exists?: boolean) => Promise<any>

      Ensure that the del has completed, recursively attempt to delete and recreate

    • setDefaults: (dirPath?: string) => void

      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.