Backstage
    Preparing search index...

    Options for createMockDirectory.

    interface CreateMockDirectoryOptions {
        content?: MockDirectoryContent;
        mockOsTmpDir?: boolean;
    }
    Index

    Properties

    Initializes the directory with the given content, see MockDirectory.setContent.

    mockOsTmpDir?: boolean

    In addition to creating a temporary directory, also mock os.tmpdir() to return the mock directory path until the end of the test suite.

    When this option is provided the createMockDirectory call must happen in a scope where calling afterAll from Jest is allowed