From 76cb9c2a39d477a64824a985ade40507e3bbade1 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Fri, 13 Feb 2026 21:34:48 -0800 Subject: feat(vanilla): add testing infrastructure and tests (NK-wjnczv) --- vanilla/node_modules/vitest/dist/runners.d.ts | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 vanilla/node_modules/vitest/dist/runners.d.ts (limited to 'vanilla/node_modules/vitest/dist/runners.d.ts') diff --git a/vanilla/node_modules/vitest/dist/runners.d.ts b/vanilla/node_modules/vitest/dist/runners.d.ts new file mode 100644 index 0000000..20f7584 --- /dev/null +++ b/vanilla/node_modules/vitest/dist/runners.d.ts @@ -0,0 +1,50 @@ +import * as tinybench from 'tinybench'; +import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TestContext, ImportDuration } from '@vitest/runner'; +export { VitestRunner } from '@vitest/runner'; +import { S as SerializedConfig } from './chunks/config.d.Cy95HiCx.js'; +import { T as Traces } from './chunks/traces.d.402V_yFI.js'; +import '@vitest/pretty-format'; +import '@vitest/snapshot'; +import '@vitest/utils/diff'; + +declare class NodeBenchmarkRunner implements VitestRunner { + config: SerializedConfig; + private moduleRunner; + constructor(config: SerializedConfig); + importTinybench(): Promise; + importFile(filepath: string, source: VitestRunnerImportSource): unknown; + runSuite(suite: Suite): Promise; + runTask(): Promise; +} + +declare class VitestTestRunner implements VitestRunner { + config: SerializedConfig; + private snapshotClient; + private workerState; + private moduleRunner; + private cancelRun; + private assertionsErrors; + pool: string; + private _otel; + viteEnvironment: string; + constructor(config: SerializedConfig); + importFile(filepath: string, source: VitestRunnerImportSource): unknown; + onCollectStart(file: File): void; + onCleanupWorkerContext(listener: () => unknown): void; + onAfterRunFiles(): void; + getWorkerContext(): Record; + onAfterRunSuite(suite: Suite): Promise; + onAfterRunTask(test: Task): void; + cancel(_reason: CancelReason): void; + injectValue(key: string): any; + onBeforeRunTask(test: Task): Promise; + onBeforeRunSuite(suite: Suite): Promise; + onBeforeTryTask(test: Task): void; + onAfterTryTask(test: Test): void; + extendTaskContext(context: TestContext): TestContext; + getImportDurations(): Record; + trace: (name: string, attributes: Record | (() => T), cb?: () => T) => T; + __setTraces(traces: Traces): void; +} + +export { NodeBenchmarkRunner, VitestTestRunner }; -- cgit v1.2.3