Sha256: d1b10ebaefafa1e1899485c858283139ed0de8e594f0652a03b61e69c7d2a5f1
Contents?: true
Size: 1.81 KB
Versions: 26
Compression:
Stored size: 1.81 KB
Contents
import * as v8 from 'v8'; import { S as SerializedConfig } from './chunks/config.Crbj2GAb.js'; import { W as WorkerContext } from './chunks/worker.Qtv8v5nL.js'; import { B as BirpcOptions, R as RuntimeRPC, C as ContextRPC, W as WorkerGlobalState } from './chunks/worker.Chrs-_NL.js'; import { Awaitable } from '@vitest/utils'; import '@vitest/pretty-format'; import '@vitest/runner'; import '@vitest/snapshot'; import '@vitest/snapshot/environment'; import 'node:worker_threads'; import 'vite-node'; import './chunks/environment.CzISCQ7o.js'; type WorkerRpcOptions = Pick<BirpcOptions<RuntimeRPC>, 'on' | 'post' | 'serialize' | 'deserialize'>; interface VitestWorker { getRpcOptions: (ctx: ContextRPC) => WorkerRpcOptions; runTests: (state: WorkerGlobalState) => Awaitable<unknown>; collectTests: (state: WorkerGlobalState) => Awaitable<unknown>; } declare function createThreadsRpcOptions({ port, }: WorkerContext): WorkerRpcOptions; declare function createForksRpcOptions(nodeV8: typeof v8): WorkerRpcOptions; /** * Reverts the wrapping done by `utils/config-helpers.ts`'s `wrapSerializableConfig` */ declare function unwrapSerializableConfig(config: SerializedConfig): SerializedConfig; declare function provideWorkerState(context: any, state: WorkerGlobalState): WorkerGlobalState; declare function run(ctx: ContextRPC): Promise<void>; declare function collect(ctx: ContextRPC): Promise<void>; declare function runVmTests(method: 'run' | 'collect', state: WorkerGlobalState): Promise<void>; declare function runBaseTests(method: 'run' | 'collect', state: WorkerGlobalState): Promise<void>; export { type VitestWorker, type WorkerRpcOptions, collect as collectVitestWorkerTests, createForksRpcOptions, createThreadsRpcOptions, provideWorkerState, runBaseTests, run as runVitestWorker, runVmTests, unwrapSerializableConfig };
Version data entries
26 entries across 26 versions & 1 rubygems