@nikovirtala/projen-constructs
    Preparing search index...

    Interface VitestOptions

    interface VitestOptions {
        config?: VitestConfigOptions;
        configFilePath?: string;
        extraConfig?: { [key: string]: unknown };
        extraTestConfig?: { [key: string]: unknown };
        vitestVersion?: string;
    }
    Index

    Initial config options.

    configFilePath?: string

    Config file path.

    "vitest.config.ts"
    
    extraConfig?: { [key: string]: unknown }

    Additional top-level config options, next to test, such as resolve.

    Values are rendered as JSON, so they must be JSON-serializable (no functions or regular expressions, which rules out plugins). Use extraTestConfig for test options.

    { resolve: { alias: { "@": "/src" } } }
    
    - no additional top-level options
    
    extraTestConfig?: { [key: string]: unknown }

    Additional test options for settings that config doesn't cover, such as setupFiles or expect.

    Deep-merged over the options generated from config: objects are merged, other values (including arrays) replace the generated value. Values are rendered as JSON, so they must be JSON-serializable (no functions or regular expressions).

    { setupFiles: ["test/setup.ts"], expect: { requireAssertions: true } }
    
    - no additional test options
    
    vitestVersion?: string

    Vitest version.

    "^5"