Sha256: 9ef3a7ae17771539902eb98688157f1f31c54397281d3450e813ab6113c24069

Contents?: true

Size: 1.79 KB

Versions: 26

Compression:

Stored size: 1.79 KB

Contents

import { VitestRunner, VitestRunnerImportSource, File, Suite, Task, CancelReason, Test, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
import { S as SerializedConfig } from './chunks/config.Crbj2GAb.js';
import * as tinybench from 'tinybench';
import { Task as Task$1 } from 'tinybench';
import '@vitest/pretty-format';
import '@vitest/snapshot';
import '@vitest/snapshot/environment';

declare class VitestTestRunner implements VitestRunner {
    config: SerializedConfig;
    private snapshotClient;
    private workerState;
    private __vitest_executor;
    private cancelRun;
    private assertionsErrors;
    pool: string;
    constructor(config: SerializedConfig);
    importFile(filepath: string, source: VitestRunnerImportSource): unknown;
    onCollectStart(file: File): void;
    onBeforeRunFiles(): void;
    onAfterRunFiles(): void;
    onAfterRunSuite(suite: Suite): Promise<void>;
    onAfterRunTask(test: Task): void;
    onCancel(_reason: CancelReason): void;
    onBeforeRunTask(test: Task): Promise<void>;
    onBeforeRunSuite(suite: Suite): Promise<void>;
    onBeforeTryTask(test: Task): void;
    onAfterTryTask(test: Task): void;
    extendTaskContext<T extends Test | Custom>(context: TaskContext<T>): ExtendedContext<T>;
}

declare class NodeBenchmarkRunner implements VitestRunner {
    config: SerializedConfig;
    private __vitest_executor;
    constructor(config: SerializedConfig);
    importTinybench(): Promise<{
        default: typeof tinybench;
        Bench: typeof tinybench.Bench;
        Task: typeof Task$1;
        hrtimeNow: () => number;
        now: () => number;
    }>;
    importFile(filepath: string, source: VitestRunnerImportSource): unknown;
    runSuite(suite: Suite): Promise<void>;
    runTask(): Promise<void>;
}

export { NodeBenchmarkRunner, VitestTestRunner };

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/vitest/dist/runners.d.ts