Backstage
    Preparing search index...

    A utility for creating a mock directory that is automatically cleaned up.

    interface MockDirectory {
        path: string;
        addContent(root: MockDirectoryContent): void;
        clear(): void;
        content(
            options?: MockDirectoryContentOptions,
        ): MockDirectoryContent | undefined;
        remove(): void;
        resolve(...paths: string[]): string;
        setContent(root: MockDirectoryContent): void;
    }
    Index

    Properties

    path: string

    The path to the root of the mock directory

    Methods