Documentation
    Preparing search index...

    Interface MockFsState

    In-memory state of the fs mock.

    createMockFsService().mock.state().watches.size === 0;
    
    interface MockFsState {
        counters: { revision: number; watch: number };
        nextPick?: "cancelled" | FsPickResult;
        root: MockFsNode;
        watches: Map<
            string,
            { path: string; recursive: boolean; windowId: string },
        >;
    }
    Index

    Properties

    counters: { revision: number; watch: number }

    Sequence counters.

    nextPick?: "cancelled" | FsPickResult

    Scripted outcome for the next picker call.

    Virtual root directory (/).

    watches: Map<string, { path: string; recursive: boolean; windowId: string }>

    Active watches keyed by watch id.