KC's Workspace
    Preparing search index...
    interface ModuleDiagnostic {
        collectDuration: number;
        duration: number;
        environmentSetupDuration: number;
        heap: number | undefined;
        importDurations: Record<string, ImportDuration>;
        prepareDuration: number;
        setupDuration: number;
    }
    Index

    Properties

    collectDuration: number

    The time it takes to import the test module. This includes importing everything in the module and executing suite callbacks.

    duration: number

    Accumulated duration of all tests and hooks in the module.

    environmentSetupDuration: number

    The time it takes to import and initiate an environment.

    heap: number | undefined

    The amount of memory used by the test module in bytes. This value is only available if the test was executed with logHeapUsage flag.

    importDurations: Record<string, ImportDuration>

    The time spent importing every non-externalized dependency that Vitest has processed.

    prepareDuration: number

    The time it takes Vitest to setup test harness (runner, mocks, etc.).

    setupDuration: number

    The time it takes to import the setup module.