vitest 3.0.0-beta.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +2 -2
- package/dist/chunks/{base.BJ8KO-VX.js → base.CUDzyU2J.js} +1 -1
- package/dist/chunks/{cac.BAYqQ2aM.js → cac.DZC9WjGM.js} +6 -6
- package/dist/chunks/{cli-api.Dhl34Trr.js → cli-api.CmJw5Cd_.js} +901 -65
- package/dist/chunks/{creator.Ot9GlSGw.js → creator.DztqrnyH.js} +1 -1
- package/dist/chunks/global.CnI8_G5V.d.ts +133 -0
- package/dist/chunks/{index.B2M9nD1V.js → index.CUcwvygK.js} +4 -4
- package/dist/chunks/{index.DQboAxJm.js → index.D9C26wCk.js} +1 -0
- package/dist/chunks/{index.CAueP3cK.js → index.TKSL1HjN.js} +188 -933
- package/dist/chunks/{reporters.Dcdq51WE.d.ts → reporters.Y8BYiXBN.d.ts} +340 -239
- package/dist/chunks/{resolveConfig.kZFMjKCQ.js → resolveConfig.CSLLD33d.js} +137 -52
- package/dist/chunks/{rpc.C3q9uwRX.js → rpc.TVf73xOu.js} +0 -1
- package/dist/chunks/{runBaseTests.URiUrnWK.js → runBaseTests.C0T_TQwH.js} +2 -2
- package/dist/chunks/{RandomSequencer.DB__To1b.js → typechecker.BJMkWMXo.js} +53 -106
- package/dist/chunks/{utils.yHKcm4dz.js → utils.DJWL04yX.js} +1 -1
- package/dist/chunks/{vite.DzluO1Kj.d.ts → vite.CQ0dHgkN.d.ts} +1 -1
- package/dist/chunks/{worker.BIVMnzXw.d.ts → worker.B1y96qmv.d.ts} +1 -1
- package/dist/chunks/{worker.Hz_LAzfd.d.ts → worker.CIpff8Eg.d.ts} +2 -4
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +3 -3
- package/dist/coverage.d.ts +1 -1
- package/dist/coverage.js +5 -4
- package/dist/execute.d.ts +1 -1
- package/dist/index.d.ts +17 -118
- package/dist/node.d.ts +11 -8
- package/dist/node.js +25 -23
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +4 -6
- package/dist/runners.d.ts +1 -0
- package/dist/runners.js +7 -7
- package/dist/worker.js +1 -1
- package/dist/workers/forks.js +1 -1
- package/dist/workers/runVmTests.js +2 -2
- package/dist/workers/threads.js +1 -1
- package/dist/workers.d.ts +2 -2
- package/dist/workers.js +2 -2
- package/package.json +13 -13
- package/dist/chunks/types.BOjykUpq.d.ts +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { File, TaskResultPack, CancelReason, FileSpecification, Task } from '@vitest/runner';
|
|
1
|
+
import { File, TaskResultPack, TaskEventPack, CancelReason, FileSpecification, Task } from '@vitest/runner';
|
|
2
2
|
import { ViteNodeResolveId, ModuleCacheMap } from 'vite-node';
|
|
3
3
|
import { S as SerializedConfig } from './config.BRtC-JeT.js';
|
|
4
4
|
import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.d8YfPkTm.js';
|
|
@@ -100,14 +100,12 @@ interface RuntimeRPC {
|
|
|
100
100
|
* @deprecated unused
|
|
101
101
|
*/
|
|
102
102
|
getSourceMap: (id: string, force?: boolean) => Promise<any>;
|
|
103
|
-
onFinished: (files: File[], errors?: unknown[]) => void;
|
|
104
|
-
onPathsCollected: (paths: string[]) => void;
|
|
105
103
|
onUserConsoleLog: (log: UserConsoleLog) => void;
|
|
106
104
|
onUnhandledError: (err: unknown, type: string) => void;
|
|
107
105
|
onQueued: (file: File) => void;
|
|
108
106
|
onCollected: (files: File[]) => Promise<void>;
|
|
109
107
|
onAfterSuiteRun: (meta: AfterSuiteRunMeta) => void;
|
|
110
|
-
onTaskUpdate: (pack: TaskResultPack[]) => Promise<void>;
|
|
108
|
+
onTaskUpdate: (pack: TaskResultPack[], events: TaskEventPack[]) => Promise<void>;
|
|
111
109
|
onCancel: (reason: CancelReason) => void;
|
|
112
110
|
getCountOfFailedTests: () => number;
|
|
113
111
|
snapshotSaved: (snapshot: SnapshotResult) => void;
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UserConfig as UserConfig$1, ConfigEnv } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { R as ResolvedCoverageOptions, d as CoverageV8Options, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.
|
|
4
|
-
export { W as WorkspaceProjectConfiguration } from './chunks/reporters.
|
|
5
|
-
import './chunks/vite.
|
|
3
|
+
import { R as ResolvedCoverageOptions, d as CoverageV8Options, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, T as TestProjectConfiguration } from './chunks/reporters.Y8BYiXBN.js';
|
|
4
|
+
export { W as WorkspaceProjectConfiguration } from './chunks/reporters.Y8BYiXBN.js';
|
|
5
|
+
import './chunks/vite.CQ0dHgkN.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import './chunks/environment.d8YfPkTm.js';
|
|
8
8
|
import '@vitest/utils';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.
|
|
2
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.Y8BYiXBN.js';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/environment.d8YfPkTm.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
package/dist/coverage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { existsSync, promises, readdirSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.
|
|
2
|
+
import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.CSLLD33d.js';
|
|
3
3
|
import { resolve, relative } from 'pathe';
|
|
4
4
|
import c from 'tinyrainbow';
|
|
5
5
|
import '@vitest/utils';
|
|
@@ -13,16 +13,16 @@ import 'node:v8';
|
|
|
13
13
|
import 'node:util';
|
|
14
14
|
import './chunks/constants.fzPh7AOq.js';
|
|
15
15
|
import 'node:os';
|
|
16
|
-
import './chunks/
|
|
16
|
+
import './chunks/typechecker.BJMkWMXo.js';
|
|
17
17
|
import 'std-env';
|
|
18
18
|
import 'node:perf_hooks';
|
|
19
|
-
import '@vitest/runner/utils';
|
|
20
19
|
import '@vitest/utils/source-map';
|
|
21
20
|
import 'tinyexec';
|
|
21
|
+
import '@vitest/runner/utils';
|
|
22
22
|
import 'vite';
|
|
23
23
|
import 'fs';
|
|
24
|
-
import 'vite-node/utils';
|
|
25
24
|
import 'node:crypto';
|
|
25
|
+
import 'node:tty';
|
|
26
26
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
27
27
|
import 'util';
|
|
28
28
|
import 'path';
|
|
@@ -31,6 +31,7 @@ import './chunks/index.68735LiX.js';
|
|
|
31
31
|
import 'tinypool';
|
|
32
32
|
import 'node:worker_threads';
|
|
33
33
|
import './path.js';
|
|
34
|
+
import 'vite-node/utils';
|
|
34
35
|
|
|
35
36
|
const THRESHOLD_KEYS = [
|
|
36
37
|
"lines",
|
package/dist/execute.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
2
2
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
|
-
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
3
|
+
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.CIpff8Eg.js';
|
|
4
4
|
import vm from 'node:vm';
|
|
5
5
|
import * as _vitest_mocker from '@vitest/mocker';
|
|
6
6
|
import { MockedModuleType } from '@vitest/mocker';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import { TaskResultPack as TaskResultPack$1, File as File$1, TaskPopulated, Suite as Suite$1, Test as Test$1, Custom as Custom$1, Task as Task$1, TaskBase as TaskBase$1, TaskResult as TaskResult$1, DoneCallback as DoneCallback$1, RuntimeContext as RuntimeContext$1, SuiteHooks as SuiteHooks$1, SequenceHooks as SequenceHooks$1, SequenceSetupFiles as SequenceSetupFiles$1 } from '@vitest/runner';
|
|
1
|
+
import { TaskResultPack as TaskResultPack$1, TaskEventPack, File as File$1, TaskPopulated, Suite as Suite$1, Test as Test$1, Custom as Custom$1, Task as Task$1, TaskBase as TaskBase$1, TaskResult as TaskResult$1, DoneCallback as DoneCallback$1, RuntimeContext as RuntimeContext$1, SuiteHooks as SuiteHooks$1, SequenceHooks as SequenceHooks$1, SequenceSetupFiles as SequenceSetupFiles$1 } from '@vitest/runner';
|
|
2
2
|
export { CancelReason, ExtendedContext, HookCleanupCallback, HookListener, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Custom as RunnerCustomCase, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskContext, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
3
|
-
import { S as SerializedTestSpecification, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, g as CoverageReporter$1, h as CoverageProviderName, i as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, j as CoverageIstanbulOptions$1, d as CoverageV8Options$1, k as CustomProviderOptions$1, l as Reporter$1, V as Vitest$1, m as BrowserScript$1, n as BrowserConfigOptions$1, o as BuiltinEnvironment$1, p as VitestEnvironment$1, P as Pool$1, q as PoolOptions$1, r as CSSModuleScopeStrategy$1, A as ApiConfig$1, s as VitestRunMode$1, D as DepsOptimizationOptions$1, t as TransformModePatterns$1, I as InlineConfig$1, u as TypecheckConfig$1, v as UserConfig$1, w as ResolvedConfig$1, x as ProjectConfig$1, U as UserWorkspaceConfig$1, y as BenchmarkUserOptions$1 } from './chunks/reporters.
|
|
4
|
-
import { W as WorkerContext$1 } from './chunks/worker.
|
|
5
|
-
import { R as RawErrsMap$1, T as TscErrorInfo$1, C as CollectLineNumbers$1, a as CollectLines$1, b as RootAndTarget$1, c as Context$1 } from './chunks/
|
|
6
|
-
import {
|
|
3
|
+
import { S as SerializedTestSpecification, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, g as CoverageReporter$1, h as CoverageProviderName, i as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, j as CoverageIstanbulOptions$1, d as CoverageV8Options$1, k as CustomProviderOptions$1, l as Reporter$1, V as Vitest$1, m as BrowserScript$1, n as BrowserConfigOptions$1, o as BuiltinEnvironment$1, p as VitestEnvironment$1, P as Pool$1, q as PoolOptions$1, r as CSSModuleScopeStrategy$1, A as ApiConfig$1, s as VitestRunMode$1, D as DepsOptimizationOptions$1, t as TransformModePatterns$1, I as InlineConfig$1, u as TypecheckConfig$1, v as UserConfig$1, w as ResolvedConfig$1, x as ProjectConfig$1, U as UserWorkspaceConfig$1, y as BenchmarkUserOptions$1 } from './chunks/reporters.Y8BYiXBN.js';
|
|
4
|
+
import { W as WorkerContext$1 } from './chunks/worker.B1y96qmv.js';
|
|
5
|
+
import { R as RawErrsMap$1, T as TscErrorInfo$1, C as CollectLineNumbers$1, a as CollectLines$1, b as RootAndTarget$1, c as Context$1 } from './chunks/global.CnI8_G5V.js';
|
|
6
|
+
import { M as ModuleGraphData, b as Awaitable$1, U as UserConsoleLog, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, a as EnvironmentReturn$1, V as VmEnvironmentReturn$1, E as Environment$1, R as ResolvedTestEnvironment$1, J as JSDOMOptions$1, H as HappyDOMOptions$1, f as EnvironmentOptions$1 } from './chunks/environment.d8YfPkTm.js';
|
|
7
7
|
export { A as AfterSuiteRunMeta, g as ModuleCache } from './chunks/environment.d8YfPkTm.js';
|
|
8
|
-
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.
|
|
9
|
-
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
10
|
-
import './chunks/vite.
|
|
11
|
-
import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
|
|
12
|
-
export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
13
|
-
import { Plugin } from '@vitest/pretty-format';
|
|
14
|
-
import { SnapshotState } from '@vitest/snapshot';
|
|
15
|
-
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
16
|
-
import { B as BenchmarkResult } from './chunks/benchmark.CFFwLv-O.js';
|
|
17
|
-
export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI } from './chunks/benchmark.CFFwLv-O.js';
|
|
8
|
+
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.CIpff8Eg.js';
|
|
9
|
+
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.CIpff8Eg.js';
|
|
10
|
+
import './chunks/vite.CQ0dHgkN.js';
|
|
18
11
|
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BRtC-JeT.js';
|
|
19
12
|
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BRtC-JeT.js';
|
|
13
|
+
import { ExpectStatic } from '@vitest/expect';
|
|
14
|
+
export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
20
15
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
21
16
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
22
17
|
import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
23
18
|
export { b as bench } from './chunks/suite.BJU7kdY9.js';
|
|
19
|
+
export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI, B as BenchmarkResult } from './chunks/benchmark.CFFwLv-O.js';
|
|
24
20
|
export { ExpectTypeOf, expectTypeOf } from 'expect-type';
|
|
21
|
+
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
25
22
|
export { ErrorWithDiff, ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
26
23
|
export { DiffOptions } from '@vitest/utils/diff';
|
|
27
24
|
import * as chai from 'chai';
|
|
@@ -31,113 +28,14 @@ export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, Task
|
|
|
31
28
|
import 'node:stream';
|
|
32
29
|
import 'vite';
|
|
33
30
|
import '@vitest/utils/source-map';
|
|
31
|
+
import '@vitest/pretty-format';
|
|
34
32
|
import 'vite-node';
|
|
35
33
|
import '@vitest/snapshot/manager';
|
|
36
34
|
import 'node:fs';
|
|
37
35
|
import 'node:worker_threads';
|
|
38
|
-
import '@vitest/runner/utils';
|
|
39
36
|
import '@vitest/snapshot/environment';
|
|
40
37
|
import '@vitest/mocker';
|
|
41
|
-
|
|
42
|
-
declare global {
|
|
43
|
-
namespace Chai {
|
|
44
|
-
interface Assertion {
|
|
45
|
-
containSubset: (expected: any) => Assertion;
|
|
46
|
-
}
|
|
47
|
-
interface Assert {
|
|
48
|
-
containSubset: (val: any, exp: any, msg?: string) => void;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
interface SnapshotMatcher<T> {
|
|
53
|
-
<U extends {
|
|
54
|
-
[P in keyof T]: any;
|
|
55
|
-
}>(snapshot: Partial<U>, message?: string): void;
|
|
56
|
-
(message?: string): void;
|
|
57
|
-
}
|
|
58
|
-
interface InlineSnapshotMatcher<T> {
|
|
59
|
-
<U extends {
|
|
60
|
-
[P in keyof T]: any;
|
|
61
|
-
}>(properties: Partial<U>, snapshot?: string, message?: string): void;
|
|
62
|
-
(message?: string): void;
|
|
63
|
-
}
|
|
64
|
-
declare module '@vitest/expect' {
|
|
65
|
-
interface MatcherState {
|
|
66
|
-
environment: string;
|
|
67
|
-
snapshotState: SnapshotState;
|
|
68
|
-
}
|
|
69
|
-
interface ExpectPollOptions {
|
|
70
|
-
interval?: number;
|
|
71
|
-
timeout?: number;
|
|
72
|
-
message?: string;
|
|
73
|
-
}
|
|
74
|
-
interface ExpectStatic {
|
|
75
|
-
unreachable: (message?: string) => never;
|
|
76
|
-
soft: <T>(actual: T, message?: string) => Assertion<T>;
|
|
77
|
-
poll: <T>(actual: () => T, options?: ExpectPollOptions) => PromisifyAssertion<Awaited<T>>;
|
|
78
|
-
addEqualityTesters: (testers: Array<Tester>) => void;
|
|
79
|
-
assertions: (expected: number) => void;
|
|
80
|
-
hasAssertions: () => void;
|
|
81
|
-
addSnapshotSerializer: (plugin: Plugin) => void;
|
|
82
|
-
}
|
|
83
|
-
interface Assertion<T> {
|
|
84
|
-
matchSnapshot: SnapshotMatcher<T>;
|
|
85
|
-
toMatchSnapshot: SnapshotMatcher<T>;
|
|
86
|
-
toMatchInlineSnapshot: InlineSnapshotMatcher<T>;
|
|
87
|
-
/**
|
|
88
|
-
* Checks that an error thrown by a function matches a previously recorded snapshot.
|
|
89
|
-
*
|
|
90
|
-
* @param message - Optional custom error message.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* expect(functionWithError).toThrowErrorMatchingSnapshot();
|
|
94
|
-
*/
|
|
95
|
-
toThrowErrorMatchingSnapshot: (message?: string) => void;
|
|
96
|
-
/**
|
|
97
|
-
* Checks that an error thrown by a function matches an inline snapshot within the test file.
|
|
98
|
-
* Useful for keeping snapshots close to the test code.
|
|
99
|
-
*
|
|
100
|
-
* @param snapshot - Optional inline snapshot string to match.
|
|
101
|
-
* @param message - Optional custom error message.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* const throwError = () => { throw new Error('Error occurred') };
|
|
105
|
-
* expect(throwError).toThrowErrorMatchingInlineSnapshot(`"Error occurred"`);
|
|
106
|
-
*/
|
|
107
|
-
toThrowErrorMatchingInlineSnapshot: (snapshot?: string, message?: string) => void;
|
|
108
|
-
/**
|
|
109
|
-
* Compares the received value to a snapshot saved in a specified file.
|
|
110
|
-
* Useful for cases where snapshot content is large or needs to be shared across tests.
|
|
111
|
-
*
|
|
112
|
-
* @param filepath - Path to the snapshot file.
|
|
113
|
-
* @param message - Optional custom error message.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* await expect(largeData).toMatchFileSnapshot('path/to/snapshot.json');
|
|
117
|
-
*/
|
|
118
|
-
toMatchFileSnapshot: (filepath: string, message?: string) => Promise<void>;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
declare module '@vitest/runner' {
|
|
122
|
-
interface TestContext {
|
|
123
|
-
expect: ExpectStatic;
|
|
124
|
-
}
|
|
125
|
-
interface TaskMeta {
|
|
126
|
-
typecheck?: boolean;
|
|
127
|
-
benchmark?: boolean;
|
|
128
|
-
failScreenshotPath?: string;
|
|
129
|
-
}
|
|
130
|
-
interface File {
|
|
131
|
-
prepareDuration?: number;
|
|
132
|
-
environmentLoad?: number;
|
|
133
|
-
}
|
|
134
|
-
interface TaskBase {
|
|
135
|
-
logs?: UserConsoleLog[];
|
|
136
|
-
}
|
|
137
|
-
interface TaskResult {
|
|
138
|
-
benchmark?: BenchmarkResult;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
38
|
+
import '@vitest/runner/utils';
|
|
141
39
|
|
|
142
40
|
interface SourceMap {
|
|
143
41
|
file: string;
|
|
@@ -160,11 +58,12 @@ interface TransformResultWithSource {
|
|
|
160
58
|
source?: string;
|
|
161
59
|
}
|
|
162
60
|
interface WebSocketHandlers {
|
|
163
|
-
onTaskUpdate: (packs: TaskResultPack$1[]) => void;
|
|
61
|
+
onTaskUpdate: (packs: TaskResultPack$1[], events: TaskEventPack[]) => void;
|
|
164
62
|
getFiles: () => File$1[];
|
|
165
63
|
getTestFiles: () => Promise<SerializedTestSpecification[]>;
|
|
166
64
|
getPaths: () => string[];
|
|
167
65
|
getConfig: () => SerializedConfig;
|
|
66
|
+
getResolvedProjectNames: () => string[];
|
|
168
67
|
getModuleGraph: (projectName: string, id: string, browser?: boolean) => Promise<ModuleGraphData>;
|
|
169
68
|
getTransformResult: (projectName: string, id: string, browser?: boolean) => Promise<TransformResultWithSource | undefined>;
|
|
170
69
|
readTestFile: (id: string) => Promise<string | null>;
|
|
@@ -718,4 +617,4 @@ type SerializableSpec = SerializedTestSpecification;
|
|
|
718
617
|
/** @deprecated import from `vitest/node` instead */
|
|
719
618
|
type BenchmarkUserOptions = BenchmarkUserOptions$1;
|
|
720
619
|
|
|
721
|
-
export { type ApiConfig, type ArgumentsType, type Arrayable, type AssertType, type Awaitable, type BaseCoverageOptions,
|
|
620
|
+
export { type ApiConfig, type ArgumentsType, type Arrayable, type AssertType, type Awaitable, type BaseCoverageOptions, type BenchmarkUserOptions, type BrowserConfigOptions, type BrowserScript, type BrowserUI, type BuiltinEnvironment, type CSSModuleScopeStrategy, type CollectLineNumbers, type CollectLines, type Constructable, type Context, type CoverageIstanbulOptions, type CoverageOptions, type CoverageProvider, type CoverageProviderModule, type CoverageReporter, type CoverageV8Options, type Custom, type CustomProviderOptions, type DepsOptimizationOptions, type DoneCallback, type Environment, type EnvironmentOptions, type EnvironmentReturn, type File, type HappyDOMOptions, type InlineConfig, type JSDOMOptions, ModuleGraphData, type MutableArray, type Nullable, type Pool, type PoolOptions, type ProjectConfig, ProvidedContext, type RawErrsMap, type ReportContext, type Reporter, type ResolvedConfig, type ResolvedCoverageOptions, type ResolvedTestEnvironment, type RootAndTarget, type RuntimeContext, type SequenceHooks, type SequenceSetupFiles, type SerializableSpec, SerializedConfig, SerializedTestSpecification, type Suite, type SuiteHooks, type Task, type TaskBase, type TaskResult, type TaskResultPack, type Test, type TransformModePatterns, type TransformResultWithSource, type TscErrorInfo, type TypecheckConfig, type UserConfig, UserConsoleLog, type UserWorkspaceConfig, type Vitest, type VitestEnvironment, type VitestRunMode, type VitestUtils, type VmEnvironmentReturn, type WebSocketEvents, type WebSocketHandlers, type WebSocketRPC, type WorkerContext, type WorkerRPC, assertType, createExpect, globalExpect as expect, getRunningMode, inject, isFirstRun, isWatchMode, runOnce, vi, vitest };
|
package/dist/node.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { s as VitestRunMode, z as VitestOptions, V as Vitest, v as UserConfig$1, A as ApiConfig, E as TestProject, w as ResolvedConfig, F as TestSequencer, G as TestSpecification, L as Logger, H as TestModule, M as ModuleDiagnostic } from './chunks/reporters.
|
|
2
|
-
export { B as BaseCoverageOptions, y as BenchmarkUserOptions,
|
|
1
|
+
import { s as VitestRunMode, z as VitestOptions, V as Vitest, v as UserConfig$1, A as ApiConfig, E as TestProject, w as ResolvedConfig, F as TestSequencer, G as TestSpecification, L as Logger, H as TestModule, M as ModuleDiagnostic } from './chunks/reporters.Y8BYiXBN.js';
|
|
2
|
+
export { B as BaseCoverageOptions, y as BenchmarkUserOptions, ad as BrowserBuiltinProvider, ae as BrowserCommand, af as BrowserCommandContext, n as BrowserConfigOptions, ag as BrowserInstanceOption, ah as BrowserOrchestrator, ai as BrowserProvider, aj as BrowserProviderInitializationOptions, ak as BrowserProviderModule, al as BrowserProviderOptions, m as BrowserScript, am as BrowserServerState, an as BrowserServerStateSession, o as BuiltinEnvironment, ao as CDPSession, r as CSSModuleScopeStrategy, j as CoverageIstanbulOptions, i as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, g as CoverageReporter, d as CoverageV8Options, k as CustomProviderOptions, D as DepsOptimizationOptions, Z as HTMLOptions, I as InlineConfig, $ as JUnitOptions, _ as JsonOptions, O as OnServerRestartHandler, J as OnTestsRerunHandler, ap as ParentProjectBrowser, P as Pool, q as PoolOptions, N as ProcessPool, aq as ProjectBrowser, x as ProjectConfig, a as ReportContext, aw as ReportedHookContext, l as Reporter, at as ResolveSnapshotPathHandler, au as ResolveSnapshotPathHandlerContext, ar as ResolvedBrowserOptions, R as ResolvedCoverageOptions, as as ResolvedProjectConfig, Y as SerializedTestProject, a0 as TaskOptions, a1 as TestCase, a2 as TestCollection, a3 as TestDiagnostic, a4 as TestModuleState, a5 as TestResult, a6 as TestResultFailed, a7 as TestResultPassed, a8 as TestResultSkipped, ax as TestRunEndReason, av as TestRunResult, ac as TestSequencerConstructor, a9 as TestState, aa as TestSuite, ab as TestSuiteState, t as TransformModePatterns, u as TypecheckConfig, U as UserWorkspaceConfig, p as VitestEnvironment, K as VitestPackageInstaller, Q as WorkspaceSpec, X as getFilePoolName } from './chunks/reporters.Y8BYiXBN.js';
|
|
3
3
|
import { UserConfig, Plugin, ResolvedConfig as ResolvedConfig$1, LogLevel, LoggerOptions, Logger as Logger$1, createServer as createServer$1 } from 'vite';
|
|
4
4
|
import * as vite from 'vite';
|
|
5
5
|
export { vite as Vite };
|
|
6
6
|
export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
7
|
-
import { R as RuntimeRPC } from './chunks/worker.
|
|
7
|
+
import { R as RuntimeRPC } from './chunks/worker.CIpff8Eg.js';
|
|
8
8
|
import { Writable } from 'node:stream';
|
|
9
|
-
export { W as WorkerContext } from './chunks/worker.
|
|
10
|
-
export { C as TypeCheckCollectLineNumbers, a as TypeCheckCollectLines, c as TypeCheckContext, T as TypeCheckErrorInfo, R as TypeCheckRawErrorsMap, b as TypeCheckRootAndTarget } from './chunks/
|
|
9
|
+
export { W as WorkerContext } from './chunks/worker.B1y96qmv.js';
|
|
10
|
+
export { C as TypeCheckCollectLineNumbers, a as TypeCheckCollectLines, c as TypeCheckContext, T as TypeCheckErrorInfo, R as TypeCheckRawErrorsMap, b as TypeCheckRootAndTarget } from './chunks/global.CnI8_G5V.js';
|
|
11
11
|
import createDebug from 'debug';
|
|
12
|
-
export {
|
|
12
|
+
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
13
13
|
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions } from './chunks/environment.d8YfPkTm.js';
|
|
14
|
+
export { SerializedError } from '@vitest/utils';
|
|
14
15
|
export { b as RuntimeConfig } from './chunks/config.BRtC-JeT.js';
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
import './chunks/vite.CQ0dHgkN.js';
|
|
17
|
+
export { generateFileHash } from '@vitest/runner/utils';
|
|
17
18
|
import '@vitest/utils/source-map';
|
|
18
19
|
import '@vitest/pretty-format';
|
|
19
20
|
import '@vitest/snapshot';
|
|
@@ -25,6 +26,7 @@ import 'tinybench';
|
|
|
25
26
|
import '@vitest/snapshot/manager';
|
|
26
27
|
import 'node:fs';
|
|
27
28
|
import 'node:worker_threads';
|
|
29
|
+
import '@vitest/expect';
|
|
28
30
|
import '@vitest/snapshot/environment';
|
|
29
31
|
|
|
30
32
|
interface CliOptions extends UserConfig$1 {
|
|
@@ -87,6 +89,7 @@ declare function resolveFsAllow(projectRoot: string, rootConfigFile: string | fa
|
|
|
87
89
|
|
|
88
90
|
interface MethodsOptions {
|
|
89
91
|
cacheFs?: boolean;
|
|
92
|
+
collect?: boolean;
|
|
90
93
|
}
|
|
91
94
|
declare function createMethodsRPC(project: TestProject, options?: MethodsOptions): RuntimeRPC;
|
|
92
95
|
|
package/dist/node.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { resolveConfig as resolveConfig$1, mergeConfig, createServer as createServer$1 } from 'vite';
|
|
2
2
|
export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
3
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.
|
|
4
|
-
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.kZFMjKCQ.js';
|
|
3
|
+
import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.CmJw5Cd_.js';
|
|
4
|
+
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.CmJw5Cd_.js';
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.DZC9WjGM.js';
|
|
6
|
+
import { a as resolveConfig$2 } from './chunks/resolveConfig.CSLLD33d.js';
|
|
7
|
+
export { B as BaseSequencer, d as createMethodsRPC, g as getFilePoolName, b as resolveApiServerConfig } from './chunks/resolveConfig.CSLLD33d.js';
|
|
9
8
|
import { slash } from '@vitest/utils';
|
|
10
9
|
import { f as findUp } from './chunks/index.BJDntFik.js';
|
|
11
10
|
import { resolve } from 'pathe';
|
|
12
11
|
import { c as configFiles } from './chunks/constants.fzPh7AOq.js';
|
|
13
|
-
export { B as BaseSequencer } from './chunks/RandomSequencer.DB__To1b.js';
|
|
14
12
|
export { distDir, rootDir } from './path.js';
|
|
15
13
|
import createDebug from 'debug';
|
|
16
14
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
@@ -21,6 +19,22 @@ import '@vitest/snapshot/manager';
|
|
|
21
19
|
import 'vite-node/client';
|
|
22
20
|
import 'vite-node/server';
|
|
23
21
|
import './chunks/index.68735LiX.js';
|
|
22
|
+
import './chunks/index.TKSL1HjN.js';
|
|
23
|
+
import 'tinyrainbow';
|
|
24
|
+
import './chunks/utils.DJWL04yX.js';
|
|
25
|
+
import 'node:util';
|
|
26
|
+
import 'node:perf_hooks';
|
|
27
|
+
import '@vitest/utils/source-map';
|
|
28
|
+
import './chunks/typechecker.BJMkWMXo.js';
|
|
29
|
+
import 'std-env';
|
|
30
|
+
import 'node:fs/promises';
|
|
31
|
+
import 'tinyexec';
|
|
32
|
+
import 'node:os';
|
|
33
|
+
import 'node:url';
|
|
34
|
+
import 'node:module';
|
|
35
|
+
import 'fs';
|
|
36
|
+
import 'node:console';
|
|
37
|
+
import 'node:stream';
|
|
24
38
|
import 'stream';
|
|
25
39
|
import 'zlib';
|
|
26
40
|
import 'buffer';
|
|
@@ -32,35 +46,23 @@ import 'net';
|
|
|
32
46
|
import 'tls';
|
|
33
47
|
import 'url';
|
|
34
48
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
35
|
-
import '@vitest/utils/source-map';
|
|
36
|
-
import 'node:module';
|
|
37
|
-
import 'node:url';
|
|
38
|
-
import 'tinyrainbow';
|
|
39
|
-
import 'node:fs/promises';
|
|
40
|
-
import 'node:os';
|
|
41
49
|
import 'os';
|
|
42
50
|
import 'path';
|
|
43
|
-
import 'fs';
|
|
44
51
|
import 'vite-node/utils';
|
|
45
52
|
import '@vitest/mocker/node';
|
|
46
53
|
import 'magic-string';
|
|
47
|
-
import '
|
|
48
|
-
import '
|
|
54
|
+
import 'node:assert';
|
|
55
|
+
import '@vitest/utils/error';
|
|
49
56
|
import 'node:readline';
|
|
50
|
-
import 'node:perf_hooks';
|
|
51
|
-
import 'node:stream';
|
|
52
|
-
import 'node:console';
|
|
53
57
|
import 'node:process';
|
|
54
|
-
import 'node:assert';
|
|
55
58
|
import 'node:v8';
|
|
56
|
-
import '
|
|
59
|
+
import 'node:crypto';
|
|
60
|
+
import 'node:tty';
|
|
57
61
|
import 'util';
|
|
58
62
|
import 'node:events';
|
|
59
63
|
import 'tinypool';
|
|
60
64
|
import 'node:worker_threads';
|
|
61
65
|
import 'readline';
|
|
62
|
-
import 'tinyexec';
|
|
63
|
-
import 'node:crypto';
|
|
64
66
|
|
|
65
67
|
async function resolveConfig(options = {}, viteOverrides = {}) {
|
|
66
68
|
const root = slash(resolve(options.root || process.cwd()));
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aM as BaseReporter, ay as BasicReporter, aN as BenchmarkBuiltinReporters, az as BenchmarkReporter, aA as BenchmarkReportsMap, aO as BuiltinReporterOptions, aP as BuiltinReporters, aB as DefaultReporter, aC as DotReporter, aD as GithubActionsReporter, aE as HangingProcessReporter, aG as JUnitReporter, aQ as JsonAssertionResult, aF as JsonReporter, aR as JsonTestResult, aS as JsonTestResults, aw as ReportedHookContext, l as Reporter, aH as ReportersMap, aI as TapFlatReporter, aJ as TapReporter, ax as TestRunEndReason, aK as VerboseBenchmarkReporter, aL as VerboseReporter } from './chunks/reporters.Y8BYiXBN.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import './chunks/environment.d8YfPkTm.js';
|
|
4
4
|
import '@vitest/utils';
|
package/dist/reporters.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { B as BasicReporter,
|
|
1
|
+
export { B as BasicReporter, a as BenchmarkReporter, b as BenchmarkReportsMap, D as DefaultReporter, c as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, d as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, e as TapReporter, V as VerboseBenchmarkReporter, f as VerboseReporter } from './chunks/index.TKSL1HjN.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import '@vitest/runner/utils';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
|
-
import './chunks/utils.
|
|
6
|
+
import './chunks/utils.DJWL04yX.js';
|
|
7
7
|
import 'node:util';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import 'node:perf_hooks';
|
|
10
10
|
import '@vitest/utils/source-map';
|
|
11
|
-
import './chunks/
|
|
11
|
+
import './chunks/typechecker.BJMkWMXo.js';
|
|
12
12
|
import 'std-env';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import 'tinyexec';
|
|
@@ -18,7 +18,5 @@ import 'node:url';
|
|
|
18
18
|
import 'node:path';
|
|
19
19
|
import 'node:module';
|
|
20
20
|
import 'fs';
|
|
21
|
-
import 'vite-node/utils';
|
|
22
|
-
import 'node:crypto';
|
|
23
|
-
import 'node:stream';
|
|
24
21
|
import 'node:console';
|
|
22
|
+
import 'node:stream';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, TestContext } from '@vitest/runner';
|
|
3
|
+
export { VitestRunner } from '@vitest/runner';
|
|
3
4
|
import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
|
|
4
5
|
import '@vitest/pretty-format';
|
|
5
6
|
import '@vitest/snapshot';
|
package/dist/runners.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as getWorkerState } from './chunks/utils.C8RiOc4B.js';
|
|
|
5
5
|
import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
|
|
6
6
|
import { getTests, getNames, getTestName } from '@vitest/runner/utils';
|
|
7
7
|
import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.Da_PT3Vw.js';
|
|
8
|
-
import { r as rpc } from './chunks/rpc.
|
|
8
|
+
import { r as rpc } from './chunks/rpc.TVf73xOu.js';
|
|
9
9
|
import 'chai';
|
|
10
10
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
11
11
|
import '@vitest/snapshot';
|
|
@@ -49,7 +49,7 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
49
49
|
startTime: start,
|
|
50
50
|
benchmark: createBenchmarkResult(suite.name)
|
|
51
51
|
};
|
|
52
|
-
updateTask$1(suite);
|
|
52
|
+
updateTask$1("suite-prepare", suite);
|
|
53
53
|
const addBenchTaskListener = (task, benchmark) => {
|
|
54
54
|
task.addEventListener(
|
|
55
55
|
"complete",
|
|
@@ -65,7 +65,7 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
65
65
|
if (!runner.config.benchmark?.includeSamples) {
|
|
66
66
|
result.samples.length = 0;
|
|
67
67
|
}
|
|
68
|
-
updateTask$1(benchmark);
|
|
68
|
+
updateTask$1("test-finished", benchmark);
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
once: true
|
|
@@ -99,7 +99,7 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
99
99
|
const tasks = [];
|
|
100
100
|
for (const benchmark of benchmarkGroup) {
|
|
101
101
|
const task = benchmarkTasks.get(benchmark);
|
|
102
|
-
updateTask$1(benchmark);
|
|
102
|
+
updateTask$1("test-prepare", benchmark);
|
|
103
103
|
await task.warmup();
|
|
104
104
|
tasks.push([
|
|
105
105
|
await new Promise(
|
|
@@ -112,12 +112,12 @@ async function runBenchmarkSuite(suite, runner) {
|
|
|
112
112
|
}
|
|
113
113
|
suite.result.duration = performance.now() - start;
|
|
114
114
|
suite.result.state = "pass";
|
|
115
|
-
updateTask$1(suite);
|
|
115
|
+
updateTask$1("suite-finished", suite);
|
|
116
116
|
defer.resolve(null);
|
|
117
117
|
await defer;
|
|
118
118
|
}
|
|
119
|
-
function updateTask$1(task) {
|
|
120
|
-
updateTask(task, runner);
|
|
119
|
+
function updateTask$1(event, task) {
|
|
120
|
+
updateTask(event, task, runner);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
class NodeBenchmarkRunner {
|
package/dist/worker.js
CHANGED
|
@@ -6,7 +6,7 @@ import { readFileSync } from 'node:fs';
|
|
|
6
6
|
import { resolve, normalize } from 'pathe';
|
|
7
7
|
import { e as environments } from './chunks/index.K90BXFOx.js';
|
|
8
8
|
import { s as setupInspect } from './chunks/inspector.DKLceBVD.js';
|
|
9
|
-
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.
|
|
9
|
+
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.TVf73xOu.js';
|
|
10
10
|
import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C8RiOc4B.js';
|
|
11
11
|
import { d as disposeInternalListeners } from './chunks/utils.Cn0zI1t3.js';
|
|
12
12
|
import 'node:console';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
|
-
import { r as runBaseTests } from '../chunks/base.
|
|
2
|
+
import { r as runBaseTests } from '../chunks/base.CUDzyU2J.js';
|
|
3
3
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
|
|
4
4
|
import 'vite-node/client';
|
|
5
5
|
import '../chunks/execute.BMOaRArH.js';
|
|
@@ -6,7 +6,7 @@ import util from 'node:util';
|
|
|
6
6
|
import { startTests, collectTests } from '@vitest/runner';
|
|
7
7
|
import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
|
|
8
8
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
9
|
-
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.
|
|
9
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.CUcwvygK.js';
|
|
10
10
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.BWeNbfBa.js';
|
|
11
11
|
import { V as VitestIndex } from '../chunks/index.BQbxGbG9.js';
|
|
12
12
|
import { c as closeInspector } from '../chunks/inspector.DKLceBVD.js';
|
|
@@ -16,7 +16,7 @@ import 'chai';
|
|
|
16
16
|
import 'node:path';
|
|
17
17
|
import '../path.js';
|
|
18
18
|
import 'node:url';
|
|
19
|
-
import '../chunks/rpc.
|
|
19
|
+
import '../chunks/rpc.TVf73xOu.js';
|
|
20
20
|
import '@vitest/utils';
|
|
21
21
|
import '../chunks/index.68735LiX.js';
|
|
22
22
|
import '../chunks/vi.Da_PT3Vw.js';
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as runBaseTests } from '../chunks/base.
|
|
1
|
+
import { r as runBaseTests } from '../chunks/base.CUDzyU2J.js';
|
|
2
2
|
import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
|
|
3
3
|
import 'vite-node/client';
|
|
4
4
|
import '../chunks/execute.BMOaRArH.js';
|
package/dist/workers.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.
|
|
1
|
+
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.CIpff8Eg.js';
|
|
2
2
|
import { Awaitable } from '@vitest/utils';
|
|
3
3
|
import * as v8 from 'v8';
|
|
4
4
|
import { S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
|
|
5
|
-
import { W as WorkerContext } from './chunks/worker.
|
|
5
|
+
import { W as WorkerContext } from './chunks/worker.B1y96qmv.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import 'vite-node';
|
|
8
8
|
import './chunks/environment.d8YfPkTm.js';
|
package/dist/workers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { p as provideWorkerState } from './chunks/utils.C8RiOc4B.js';
|
|
2
2
|
export { collect as collectVitestWorkerTests, run as runVitestWorker } from './worker.js';
|
|
3
|
-
export { r as runBaseTests } from './chunks/base.
|
|
3
|
+
export { r as runBaseTests } from './chunks/base.CUDzyU2J.js';
|
|
4
4
|
export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './chunks/utils.Cn0zI1t3.js';
|
|
5
5
|
export { r as runVmTests } from './chunks/vm.DrFVeTXo.js';
|
|
6
6
|
import '@vitest/utils';
|
|
@@ -14,7 +14,7 @@ import './chunks/index.K90BXFOx.js';
|
|
|
14
14
|
import 'node:console';
|
|
15
15
|
import './chunks/inspector.DKLceBVD.js';
|
|
16
16
|
import 'node:module';
|
|
17
|
-
import './chunks/rpc.
|
|
17
|
+
import './chunks/rpc.TVf73xOu.js';
|
|
18
18
|
import './chunks/index.68735LiX.js';
|
|
19
19
|
import './chunks/execute.BMOaRArH.js';
|
|
20
20
|
import 'node:vm';
|