Documentation
    Preparing search index...
    TestRunnerOptions: {
        scriptArgs: string[];
        nodeArgs: string[];
        clearScreen?: boolean;
        env?: NodeJS.ProcessEnv;
        reporters?: string[];
        timeout?: number;
        retries?: number;
        failed?: boolean;
        filters: Partial<
            {
                tests: string[];
                suites: string[];
                groups: string[];
                files: string[];
                tags: string[];
            },
        >;
    } & AssemblerRcFile

    Options accepted by the test runner for configuring test execution

    Type Declaration

    • scriptArgs: string[]

      Arguments to pass to the test script file executed as a child process

    • nodeArgs: string[]

      Arguments to pass to Node.js CLI when executing the test script

    • OptionalclearScreen?: boolean

      Whether to clear screen after every file change

    • Optionalenv?: NodeJS.ProcessEnv

      Environment variables to share with the test script

    • Optionalreporters?: string[]

      Test reporters to use (e.g., 'spec', 'json', 'tap')

    • Optionaltimeout?: number

      Global timeout for tests in milliseconds

    • Optionalretries?: number

      Number of times to retry failed tests

    • Optionalfailed?: boolean

      Whether to run only previously failed tests

    • filters: Partial<
          {
              tests: string[];
              suites: string[];
              groups: string[];
              files: string[];
              tags: string[];
          },
      >

      Filter options for controlling which tests to run

    const testOptions: TestRunnerOptions = {
    scriptArgs: ['--reporter', 'spec'],
    nodeArgs: ['--max-old-space-size=4096'],
    clearScreen: true,
    reporters: ['spec', 'json'],
    timeout: 30000,
    retries: 2,
    failed: false,
    filters: {
    suites: ['unit', 'integration'],
    tags: ['@slow']
    }
    }