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/worker.d.ts | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 vanilla/node_modules/vitest/dist/worker.d.ts (limited to 'vanilla/node_modules/vitest/dist/worker.d.ts') diff --git a/vanilla/node_modules/vitest/dist/worker.d.ts b/vanilla/node_modules/vitest/dist/worker.d.ts new file mode 100644 index 0000000..03ceeb0 --- /dev/null +++ b/vanilla/node_modules/vitest/dist/worker.d.ts @@ -0,0 +1,32 @@ +import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.Dyxm8DEL.js'; +import { T as Traces } from './chunks/traces.d.402V_yFI.js'; +import { Awaitable } from '@vitest/utils'; +import { ModuleRunner } from 'vite/module-runner'; +import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js'; +import '@vitest/runner'; +import './chunks/config.d.Cy95HiCx.js'; +import '@vitest/pretty-format'; +import '@vitest/snapshot'; +import '@vitest/utils/diff'; +import './chunks/environment.d.CrsxCzP1.js'; + +/** @experimental */ +declare function setupEnvironment(context: WorkerSetupContext): Promise<() => Promise>; +/** @experimental */ +declare function runBaseTests(method: "run" | "collect", state: WorkerGlobalState, traces: Traces): Promise; + +type WorkerRpcOptions = Pick, "on" | "off" | "post" | "serialize" | "deserialize">; +interface VitestWorker extends WorkerRpcOptions { + runTests: (state: WorkerGlobalState, traces: Traces) => Awaitable; + collectTests: (state: WorkerGlobalState, traces: Traces) => Awaitable; + onModuleRunner?: (moduleRunner: ModuleRunner) => Awaitable; + setup?: (context: WorkerSetupContext) => Promise<() => Promise>; +} + +interface Options extends VitestWorker { + teardown?: () => void; +} +/** @experimental */ +declare function init(worker: Options): void; + +export { init, runBaseTests, setupEnvironment }; -- cgit v1.2.3