vitest 2.1.4 → 2.2.0-beta.1
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 +11 -11
- package/dist/browser.js +1 -1
- package/dist/chunks/{base.C3xNdjV6.js → base.BS0HhLXd.js} +1 -1
- package/dist/chunks/{cac.DrfPaMvZ.js → cac.Z91LBqmg.js} +56 -7
- package/dist/chunks/{cli-api.CKrRYkw8.js → cli-api.DVJJMJHj.js} +123 -80
- package/dist/chunks/{config.Crbj2GAb.d.ts → config.CPguQ7J1.d.ts} +2 -2
- package/dist/chunks/{environment.LoooBwUu.d.ts → environment.CT0jpO-1.d.ts} +2 -1
- package/dist/chunks/{globals.Bp645TTJ.js → globals.BCGEw6ON.js} +2 -2
- package/dist/chunks/{index.D3d79vc8.js → index.BjjsHdBb.js} +1 -1
- package/dist/chunks/{index.Dqe5k2Rk.js → index.DD5eTY2y.js} +2 -8
- package/dist/chunks/{index.Bn81VaWg.js → index.DLRzErGF.js} +240 -318
- package/dist/chunks/{index.BMoXz_-n.js → index.K90BXFOx.js} +1 -1
- package/dist/chunks/{reporters.anwo7Y6a.d.ts → reporters.B_9uUTGW.d.ts} +148 -22
- package/dist/chunks/{resolveConfig.DPmbhVlP.js → resolveConfig.CQIc6fe7.js} +8 -4
- package/dist/chunks/{runBaseTests.Dm-659zB.js → runBaseTests.B7hcVT-s.js} +4 -4
- package/dist/chunks/{setup-common.DDmVKp6O.js → setup-common.BfGt8K-K.js} +4 -1
- package/dist/chunks/{utils.BB4zjzR8.js → utils.DNoFbBUZ.js} +6 -2
- package/dist/chunks/{vi.JMQoNY_Z.js → vi.BlPttogV.js} +91 -4
- package/dist/chunks/{vite.BdBj-UWY.d.ts → vite.Bvms8Xir.d.ts} +1 -1
- package/dist/chunks/{vm.jpyrB0xy.js → vm.Zr4qWzDJ.js} +3 -0
- package/dist/chunks/{worker.BAlI9hII.d.ts → worker.9VY11NZs.d.ts} +3 -2
- package/dist/chunks/{worker.DHnGaO2M.d.ts → worker.Qz1UB4Fv.d.ts} +1 -1
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +10 -9
- package/dist/coverage.d.ts +9 -112
- package/dist/coverage.js +1 -1
- package/dist/environments.d.ts +2 -2
- package/dist/environments.js +1 -1
- package/dist/execute.d.ts +4 -3
- package/dist/index.d.ts +39 -10
- package/dist/index.js +2 -2
- package/dist/node.d.ts +13 -11
- package/dist/node.js +7 -7
- package/dist/reporters.d.ts +10 -9
- package/dist/reporters.js +2 -2
- package/dist/runners.d.ts +3 -1
- package/dist/runners.js +4 -1
- package/dist/worker.js +6 -2
- package/dist/workers/forks.js +1 -1
- package/dist/workers/runVmTests.js +4 -4
- package/dist/workers/threads.js +1 -1
- package/dist/workers/vmForks.js +1 -1
- package/dist/workers/vmThreads.js +1 -1
- package/dist/workers.d.ts +5 -4
- package/dist/workers.js +4 -3
- package/package.json +15 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { File, TaskResultPack, CancelReason, Task } from '@vitest/runner';
|
|
2
2
|
import { ViteNodeResolveId, ModuleCacheMap } from 'vite-node';
|
|
3
|
-
import { S as SerializedConfig } from './config.
|
|
4
|
-
import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.
|
|
3
|
+
import { S as SerializedConfig } from './config.CPguQ7J1.js';
|
|
4
|
+
import { T as TransformMode, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.CT0jpO-1.js';
|
|
5
5
|
import { SnapshotResult } from '@vitest/snapshot';
|
|
6
6
|
|
|
7
7
|
type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;
|
|
@@ -150,6 +150,7 @@ interface WorkerGlobalState {
|
|
|
150
150
|
environment: number;
|
|
151
151
|
prepare: number;
|
|
152
152
|
};
|
|
153
|
+
onFilterStackTrace?: (trace: string) => string;
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
export type { BirpcOptions as B, ContextRPC as C, RuntimeRPC as R, WorkerGlobalState as W, BirpcReturn as a, WorkerRPC as b, RunnerRPC as c, ContextTestEnvironment as d, ResolveIdFunction as e };
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
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,
|
|
4
|
-
import './chunks/vite.
|
|
5
|
-
import './chunks/config.Crbj2GAb.js';
|
|
6
|
-
import '@vitest/pretty-format';
|
|
3
|
+
import { R as ResolvedCoverageOptions, d as CoverageV8Options, U as UserWorkspaceConfig, e as UserProjectConfigFn, f as UserProjectConfigExport, W as WorkspaceProjectConfiguration } from './chunks/reporters.B_9uUTGW.js';
|
|
4
|
+
import './chunks/vite.Bvms8Xir.js';
|
|
7
5
|
import '@vitest/runner';
|
|
6
|
+
import './chunks/environment.CT0jpO-1.js';
|
|
7
|
+
import 'node:stream';
|
|
8
|
+
import '@vitest/utils';
|
|
9
|
+
import './chunks/config.CPguQ7J1.js';
|
|
10
|
+
import '@vitest/pretty-format';
|
|
8
11
|
import '@vitest/snapshot';
|
|
9
12
|
import '@vitest/snapshot/environment';
|
|
13
|
+
import '@vitest/utils/diff';
|
|
10
14
|
import 'vite-node';
|
|
11
15
|
import 'chai';
|
|
12
|
-
import './chunks/environment.LoooBwUu.js';
|
|
13
|
-
import 'node:stream';
|
|
14
|
-
import '@vitest/utils';
|
|
15
16
|
import '@vitest/utils/source-map';
|
|
16
17
|
import 'vite-node/client';
|
|
17
18
|
import 'vite-node/server';
|
|
18
|
-
import '@vitest/snapshot/manager';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import './chunks/benchmark.geERunq4.js';
|
|
21
20
|
import '@vitest/runner/utils';
|
|
22
21
|
import 'tinybench';
|
|
22
|
+
import '@vitest/snapshot/manager';
|
|
23
|
+
import 'node:fs';
|
|
23
24
|
|
|
24
25
|
declare const defaultBrowserPort = 63315;
|
|
25
26
|
declare const extraInlineDeps: RegExp[];
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,127 +1,24 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { R as ResolvedCoverageOptions, V as Vitest, a as ReportContext } from './chunks/reporters.
|
|
3
|
-
import { A as AfterSuiteRunMeta } from './chunks/environment.
|
|
4
|
-
import './chunks/config.Crbj2GAb.js';
|
|
5
|
-
import '@vitest/pretty-format';
|
|
2
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.B_9uUTGW.js';
|
|
3
|
+
import { A as AfterSuiteRunMeta } from './chunks/environment.CT0jpO-1.js';
|
|
6
4
|
import '@vitest/runner';
|
|
5
|
+
import 'node:stream';
|
|
6
|
+
import '@vitest/utils';
|
|
7
|
+
import './chunks/config.CPguQ7J1.js';
|
|
8
|
+
import '@vitest/pretty-format';
|
|
7
9
|
import '@vitest/snapshot';
|
|
8
10
|
import '@vitest/snapshot/environment';
|
|
11
|
+
import '@vitest/utils/diff';
|
|
9
12
|
import 'vite-node';
|
|
10
13
|
import 'chai';
|
|
11
|
-
import 'node:stream';
|
|
12
|
-
import '@vitest/utils';
|
|
13
14
|
import '@vitest/utils/source-map';
|
|
14
15
|
import 'vite-node/client';
|
|
15
16
|
import 'vite-node/server';
|
|
16
|
-
import '@vitest/snapshot/manager';
|
|
17
|
-
import 'node:fs';
|
|
18
17
|
import './chunks/benchmark.geERunq4.js';
|
|
19
18
|
import '@vitest/runner/utils';
|
|
20
19
|
import 'tinybench';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
lines: Totals;
|
|
24
|
-
statements: Totals;
|
|
25
|
-
branches: Totals;
|
|
26
|
-
functions: Totals;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare class CoverageSummary {
|
|
30
|
-
constructor(data: CoverageSummary | CoverageSummaryData);
|
|
31
|
-
merge(obj: CoverageSummary): CoverageSummary;
|
|
32
|
-
toJSON(): CoverageSummaryData;
|
|
33
|
-
isEmpty(): boolean;
|
|
34
|
-
data: CoverageSummaryData;
|
|
35
|
-
lines: Totals;
|
|
36
|
-
statements: Totals;
|
|
37
|
-
branches: Totals;
|
|
38
|
-
functions: Totals;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface CoverageMapData {
|
|
42
|
-
[key: string]: FileCoverage | FileCoverageData;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
declare class CoverageMap {
|
|
46
|
-
constructor(data: CoverageMapData | CoverageMap);
|
|
47
|
-
addFileCoverage(pathOrObject: string | FileCoverage | FileCoverageData): void;
|
|
48
|
-
files(): string[];
|
|
49
|
-
fileCoverageFor(filename: string): FileCoverage;
|
|
50
|
-
filter(callback: (key: string) => boolean): void;
|
|
51
|
-
getCoverageSummary(): CoverageSummary;
|
|
52
|
-
merge(data: CoverageMapData | CoverageMap): void;
|
|
53
|
-
toJSON(): CoverageMapData;
|
|
54
|
-
data: CoverageMapData;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface Location {
|
|
58
|
-
line: number;
|
|
59
|
-
column: number;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface Range {
|
|
63
|
-
start: Location;
|
|
64
|
-
end: Location;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface BranchMapping {
|
|
68
|
-
loc: Range;
|
|
69
|
-
type: string;
|
|
70
|
-
locations: Range[];
|
|
71
|
-
line: number;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface FunctionMapping {
|
|
75
|
-
name: string;
|
|
76
|
-
decl: Range;
|
|
77
|
-
loc: Range;
|
|
78
|
-
line: number;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface FileCoverageData {
|
|
82
|
-
path: string;
|
|
83
|
-
statementMap: { [key: string]: Range };
|
|
84
|
-
fnMap: { [key: string]: FunctionMapping };
|
|
85
|
-
branchMap: { [key: string]: BranchMapping };
|
|
86
|
-
s: { [key: string]: number };
|
|
87
|
-
f: { [key: string]: number };
|
|
88
|
-
b: { [key: string]: number[] };
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface Totals {
|
|
92
|
-
total: number;
|
|
93
|
-
covered: number;
|
|
94
|
-
skipped: number;
|
|
95
|
-
pct: number;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
interface Coverage {
|
|
99
|
-
covered: number;
|
|
100
|
-
total: number;
|
|
101
|
-
coverage: number;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
declare class FileCoverage implements FileCoverageData {
|
|
105
|
-
constructor(data: string | FileCoverage | FileCoverageData);
|
|
106
|
-
merge(other: FileCoverageData): void;
|
|
107
|
-
getBranchCoverageByLine(): { [line: number]: Coverage };
|
|
108
|
-
getLineCoverage(): { [line: number]: number };
|
|
109
|
-
getUncoveredLines(): number[];
|
|
110
|
-
resetHits(): void;
|
|
111
|
-
computeBranchTotals(): Totals;
|
|
112
|
-
computeSimpleTotals(): Totals;
|
|
113
|
-
toSummary(): CoverageSummary;
|
|
114
|
-
toJSON(): object;
|
|
115
|
-
|
|
116
|
-
data: FileCoverageData;
|
|
117
|
-
path: string;
|
|
118
|
-
statementMap: { [key: string]: Range };
|
|
119
|
-
fnMap: { [key: string]: FunctionMapping };
|
|
120
|
-
branchMap: { [key: string]: BranchMapping };
|
|
121
|
-
s: { [key: string]: number };
|
|
122
|
-
f: { [key: string]: number };
|
|
123
|
-
b: { [key: string]: number[] };
|
|
124
|
-
}
|
|
20
|
+
import '@vitest/snapshot/manager';
|
|
21
|
+
import 'node:fs';
|
|
125
22
|
|
|
126
23
|
type Threshold = 'lines' | 'functions' | 'statements' | 'branches';
|
|
127
24
|
interface ResolvedThreshold {
|
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.CQIc6fe7.js';
|
|
3
3
|
import { resolve, relative } from 'pathe';
|
|
4
4
|
import c from 'tinyrainbow';
|
|
5
5
|
import '@vitest/utils';
|
package/dist/environments.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Environment } from './chunks/environment.
|
|
2
|
-
export { a as EnvironmentReturn, V as VmEnvironmentReturn } from './chunks/environment.
|
|
1
|
+
import { E as Environment } from './chunks/environment.CT0jpO-1.js';
|
|
2
|
+
export { a as EnvironmentReturn, V as VmEnvironmentReturn } from './chunks/environment.CT0jpO-1.js';
|
|
3
3
|
|
|
4
4
|
declare const environments: {
|
|
5
5
|
node: Environment;
|
package/dist/environments.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.
|
|
1
|
+
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.K90BXFOx.js';
|
|
2
2
|
import 'node:console';
|
package/dist/execute.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
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.9VY11NZs.js';
|
|
4
4
|
import vm from 'node:vm';
|
|
5
5
|
import * as _vitest_mocker from '@vitest/mocker';
|
|
6
6
|
import { MockedModuleType } from '@vitest/mocker';
|
|
7
7
|
import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
8
8
|
import '@vitest/runner';
|
|
9
|
-
import './chunks/config.
|
|
9
|
+
import './chunks/config.CPguQ7J1.js';
|
|
10
10
|
import '@vitest/pretty-format';
|
|
11
11
|
import '@vitest/snapshot';
|
|
12
12
|
import '@vitest/snapshot/environment';
|
|
13
|
-
import '
|
|
13
|
+
import '@vitest/utils/diff';
|
|
14
|
+
import './chunks/environment.CT0jpO-1.js';
|
|
14
15
|
|
|
15
16
|
declare class FileMap {
|
|
16
17
|
private fsCache;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
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';
|
|
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 {
|
|
4
|
-
import { W as WorkerContext$1 } from './chunks/worker.
|
|
5
|
-
import { U as UserConsoleLog, M as ModuleGraphData, b as Awaitable$1, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, O as OnServerRestartHandler$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.
|
|
6
|
-
export { A as AfterSuiteRunMeta, g as ModuleCache } from './chunks/environment.
|
|
7
|
-
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.
|
|
8
|
-
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
9
|
-
import './chunks/vite.
|
|
3
|
+
import { g as VitestEnvironment$1, S as SerializedTestSpecification, h as RawErrsMap$1, T as TscErrorInfo$1, i as CollectLineNumbers$1, j as CollectLines$1, k as RootAndTarget$1, l as Context$1, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, m as CoverageReporter$1, n as CoverageProviderName, o as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, p as CoverageIstanbulOptions$1, d as CoverageV8Options$1, q as CustomProviderOptions$1, r as Reporter$1, V as Vitest$1, s as BrowserScript$1, t as BrowserConfigOptions$1, u as BuiltinEnvironment$1, P as Pool$1, v as PoolOptions$1, w as CSSModuleScopeStrategy$1, A as ApiConfig$1, x as VitestRunMode$1, D as DepsOptimizationOptions$1, y as TransformModePatterns$1, I as InlineConfig$1, z as TypecheckConfig$1, E as UserConfig$1, F as ResolvedConfig$1, G as ProjectConfig$1, U as UserWorkspaceConfig$1, H as BenchmarkUserOptions$1 } from './chunks/reporters.B_9uUTGW.js';
|
|
4
|
+
import { W as WorkerContext$1 } from './chunks/worker.Qz1UB4Fv.js';
|
|
5
|
+
import { U as UserConsoleLog, M as ModuleGraphData, b as Awaitable$1, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, O as OnServerRestartHandler$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.CT0jpO-1.js';
|
|
6
|
+
export { A as AfterSuiteRunMeta, g as ModuleCache } from './chunks/environment.CT0jpO-1.js';
|
|
7
|
+
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.9VY11NZs.js';
|
|
8
|
+
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.9VY11NZs.js';
|
|
9
|
+
import './chunks/vite.Bvms8Xir.js';
|
|
10
10
|
import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
|
|
11
11
|
export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
12
12
|
import { Plugin } from '@vitest/pretty-format';
|
|
@@ -14,8 +14,8 @@ import { SnapshotState } from '@vitest/snapshot';
|
|
|
14
14
|
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
15
15
|
import { B as BenchmarkResult } from './chunks/benchmark.geERunq4.js';
|
|
16
16
|
export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI } from './chunks/benchmark.geERunq4.js';
|
|
17
|
-
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.
|
|
18
|
-
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.
|
|
17
|
+
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.CPguQ7J1.js';
|
|
18
|
+
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.CPguQ7J1.js';
|
|
19
19
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
20
20
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
21
21
|
import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
@@ -27,9 +27,9 @@ import * as chai from 'chai';
|
|
|
27
27
|
export { chai };
|
|
28
28
|
export { assert, should } from 'chai';
|
|
29
29
|
export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, TaskResult as BenchTaskResult } from 'tinybench';
|
|
30
|
+
import 'node:stream';
|
|
30
31
|
import 'vite';
|
|
31
32
|
import 'vite-node';
|
|
32
|
-
import 'node:stream';
|
|
33
33
|
import '@vitest/utils/source-map';
|
|
34
34
|
import 'vite-node/client';
|
|
35
35
|
import 'vite-node/server';
|
|
@@ -85,8 +85,37 @@ declare module '@vitest/expect' {
|
|
|
85
85
|
matchSnapshot: SnapshotMatcher<T>;
|
|
86
86
|
toMatchSnapshot: SnapshotMatcher<T>;
|
|
87
87
|
toMatchInlineSnapshot: InlineSnapshotMatcher<T>;
|
|
88
|
+
/**
|
|
89
|
+
* Checks that an error thrown by a function matches a previously recorded snapshot.
|
|
90
|
+
*
|
|
91
|
+
* @param message - Optional custom error message.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* expect(functionWithError).toThrowErrorMatchingSnapshot();
|
|
95
|
+
*/
|
|
88
96
|
toThrowErrorMatchingSnapshot: (message?: string) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Checks that an error thrown by a function matches an inline snapshot within the test file.
|
|
99
|
+
* Useful for keeping snapshots close to the test code.
|
|
100
|
+
*
|
|
101
|
+
* @param snapshot - Optional inline snapshot string to match.
|
|
102
|
+
* @param message - Optional custom error message.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* const throwError = () => { throw new Error('Error occurred') };
|
|
106
|
+
* expect(throwError).toThrowErrorMatchingInlineSnapshot(`"Error occurred"`);
|
|
107
|
+
*/
|
|
89
108
|
toThrowErrorMatchingInlineSnapshot: (snapshot?: string, message?: string) => void;
|
|
109
|
+
/**
|
|
110
|
+
* Compares the received value to a snapshot saved in a specified file.
|
|
111
|
+
* Useful for cases where snapshot content is large or needs to be shared across tests.
|
|
112
|
+
*
|
|
113
|
+
* @param filepath - Path to the snapshot file.
|
|
114
|
+
* @param message - Optional custom error message.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* await expect(largeData).toMatchFileSnapshot('path/to/snapshot.json');
|
|
118
|
+
*/
|
|
90
119
|
toMatchFileSnapshot: (filepath: string, message?: string) => Promise<void>;
|
|
91
120
|
}
|
|
92
121
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createExpect, a as expect, v as vi, b as vitest } from './chunks/vi.
|
|
2
|
-
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './chunks/index.Dqe5k2Rk.js';
|
|
1
|
+
export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.BlPttogV.js';
|
|
3
2
|
export { i as isFirstRun, a as runOnce } from './chunks/run-once.2ogXb3JV.js';
|
|
3
|
+
export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.DD5eTY2y.js';
|
|
4
4
|
export { b as bench } from './chunks/benchmark.Cdu9hjj4.js';
|
|
5
5
|
export { expectTypeOf } from 'expect-type';
|
|
6
6
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { B as BaseCoverageOptions,
|
|
1
|
+
import { x as VitestRunMode, J as VitestOptions, V as Vitest, E as UserConfig$1, A as ApiConfig, L as Logger, F as ResolvedConfig$1, K as WorkspaceProject, M as TestSequencer, N as WorkspaceSpec, O as TestModule, Q as ModuleDiagnostic } from './chunks/reporters.B_9uUTGW.js';
|
|
2
|
+
export { B as BaseCoverageOptions, H as BenchmarkUserOptions, ae as BrowserBuiltinProvider, af as BrowserCommand, ag as BrowserCommandContext, t as BrowserConfigOptions, ah as BrowserOrchestrator, ai as BrowserProvider, aj as BrowserProviderInitializationOptions, ak as BrowserProviderModule, al as BrowserProviderOptions, s as BrowserScript, am as BrowserServer, an as BrowserServerState, ao as BrowserServerStateContext, u as BuiltinEnvironment, ap as CDPSession, w as CSSModuleScopeStrategy, p as CoverageIstanbulOptions, o as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, m as CoverageReporter, d as CoverageV8Options, q as CustomProviderOptions, D as DepsOptimizationOptions, a0 as HTMLOptions, I as InlineConfig, a2 as JUnitOptions, a1 as JsonOptions, P as Pool, v as PoolOptions, Y as ProcessPool, G as ProjectConfig, a as ReportContext, as as ResolveSnapshotPathHandler, at as ResolveSnapshotPathHandlerContext, aq as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ar as ResolvedProjectConfig, $ as SerializedTestProject, a5 as TaskOptions, a3 as TestCase, a6 as TestCollection, a7 as TestDiagnostic, _ as TestProject, a8 as TestResult, a9 as TestResultFailed, aa as TestResultPassed, ab as TestResultSkipped, ac as TestSequencerConstructor, ad as TestSpecification, a4 as TestSuite, y as TransformModePatterns, i as TypeCheckCollectLineNumbers, j as TypeCheckCollectLines, l as TypeCheckContext, T as TypeCheckErrorInfo, h as TypeCheckRawErrorsMap, k as TypeCheckRootAndTarget, z as TypecheckConfig, U as UserWorkspaceConfig, g as VitestEnvironment, X as VitestPackageInstaller, Z as getFilePoolName } from './chunks/reporters.B_9uUTGW.js';
|
|
3
3
|
import { UserConfig, ResolvedConfig, Plugin, 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 { isFileServingAllowed, parseAst, parseAstAsync } from 'vite';
|
|
7
|
-
import { P as ProvidedContext } from './chunks/environment.
|
|
8
|
-
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions, O as OnServerRestartHandler } from './chunks/environment.
|
|
9
|
-
import { R as RuntimeRPC } from './chunks/worker.
|
|
7
|
+
import { P as ProvidedContext, h as OnTestsRerunHandler } from './chunks/environment.CT0jpO-1.js';
|
|
8
|
+
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions, O as OnServerRestartHandler } from './chunks/environment.CT0jpO-1.js';
|
|
9
|
+
import { R as RuntimeRPC } from './chunks/worker.9VY11NZs.js';
|
|
10
10
|
import { Writable } from 'node:stream';
|
|
11
|
-
export { W as WorkerContext } from './chunks/worker.
|
|
11
|
+
export { W as WorkerContext } from './chunks/worker.Qz1UB4Fv.js';
|
|
12
12
|
import createDebug from 'debug';
|
|
13
|
-
export { b as RuntimeConfig } from './chunks/config.
|
|
13
|
+
export { b as RuntimeConfig } from './chunks/config.CPguQ7J1.js';
|
|
14
14
|
export { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
15
|
+
import '@vitest/utils';
|
|
15
16
|
import '@vitest/pretty-format';
|
|
16
17
|
import '@vitest/snapshot';
|
|
18
|
+
import '@vitest/utils/diff';
|
|
17
19
|
import 'vite-node';
|
|
18
20
|
import 'chai';
|
|
19
|
-
import '@vitest/utils';
|
|
20
21
|
import '@vitest/utils/source-map';
|
|
21
22
|
import 'vite-node/client';
|
|
22
23
|
import 'vite-node/server';
|
|
23
|
-
import '@vitest/snapshot/manager';
|
|
24
|
-
import 'node:fs';
|
|
25
24
|
import './chunks/benchmark.geERunq4.js';
|
|
26
25
|
import '@vitest/runner/utils';
|
|
27
26
|
import 'tinybench';
|
|
27
|
+
import '@vitest/snapshot/manager';
|
|
28
|
+
import 'node:fs';
|
|
28
29
|
import 'node:worker_threads';
|
|
29
30
|
import '@vitest/snapshot/environment';
|
|
30
31
|
|
|
@@ -78,6 +79,7 @@ declare class GitNotFoundError extends Error {
|
|
|
78
79
|
interface GlobalSetupContext {
|
|
79
80
|
config: ResolvedConfig$1;
|
|
80
81
|
provide: <T extends keyof ProvidedContext & string>(key: T, value: ProvidedContext[T]) => void;
|
|
82
|
+
onTestsRerun: (cb: OnTestsRerunHandler) => void;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
declare function VitestPlugin(options?: UserConfig$1, ctx?: Vitest): Promise<Plugin[]>;
|
|
@@ -119,4 +121,4 @@ declare const TestFile: typeof TestModule;
|
|
|
119
121
|
*/
|
|
120
122
|
type FileDiagnostic = ModuleDiagnostic;
|
|
121
123
|
|
|
122
|
-
export { ApiConfig, BaseSequencer, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic, ResolvedConfig$1 as ResolvedConfig, TestFile, TestModule, TestSequencer, FilesNotFoundError as TestsNotFoundError, UserConfig$1 as UserConfig, Vitest, VitestPlugin, VitestRunMode, WorkspaceProject, WorkspaceSpec, createDebugger, createMethodsRPC, createServer, createViteLogger, createViteServer, createVitest, distDir, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rootDir, startVitest };
|
|
124
|
+
export { ApiConfig, BaseSequencer, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic, OnTestsRerunHandler, ResolvedConfig$1 as ResolvedConfig, TestFile, TestModule, TestSequencer, FilesNotFoundError as TestsNotFoundError, UserConfig$1 as UserConfig, Vitest, VitestPlugin, VitestRunMode, WorkspaceProject, WorkspaceSpec, createDebugger, createMethodsRPC, createServer, createViteLogger, createViteServer, createVitest, distDir, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rootDir, startVitest };
|
package/dist/node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createServer as createServer$1 } from 'vite';
|
|
2
2
|
export { isFileServingAllowed, parseAst, parseAstAsync } from 'vite';
|
|
3
|
-
import { f as TestModule } from './chunks/index.
|
|
4
|
-
export { e as TestCase, i as TestProject, g as TestSuite } from './chunks/index.
|
|
5
|
-
export { p as parseCLI } from './chunks/cac.
|
|
6
|
-
export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
7
|
-
export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.
|
|
3
|
+
import { f as TestModule } from './chunks/index.DLRzErGF.js';
|
|
4
|
+
export { e as TestCase, i as TestProject, g as TestSuite } from './chunks/index.DLRzErGF.js';
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.Z91LBqmg.js';
|
|
6
|
+
export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.DVJJMJHj.js';
|
|
7
|
+
export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.CQIc6fe7.js';
|
|
8
8
|
export { B as BaseSequencer } from './chunks/RandomSequencer.CMRlh2v4.js';
|
|
9
9
|
export { distDir, rootDir } from './path.js';
|
|
10
10
|
import createDebug from 'debug';
|
|
@@ -12,7 +12,7 @@ import 'node:fs';
|
|
|
12
12
|
import '@vitest/runner/utils';
|
|
13
13
|
import 'pathe';
|
|
14
14
|
import 'tinyrainbow';
|
|
15
|
-
import './chunks/utils.
|
|
15
|
+
import './chunks/utils.DNoFbBUZ.js';
|
|
16
16
|
import 'node:util';
|
|
17
17
|
import '@vitest/utils';
|
|
18
18
|
import 'node:perf_hooks';
|
|
@@ -52,13 +52,13 @@ import 'fs';
|
|
|
52
52
|
import 'vite-node/utils';
|
|
53
53
|
import '@vitest/mocker/node';
|
|
54
54
|
import 'magic-string';
|
|
55
|
-
import 'node:worker_threads';
|
|
56
55
|
import 'node:readline';
|
|
57
56
|
import 'node:assert';
|
|
58
57
|
import 'node:v8';
|
|
59
58
|
import 'util';
|
|
60
59
|
import 'node:events';
|
|
61
60
|
import 'tinypool';
|
|
61
|
+
import 'node:worker_threads';
|
|
62
62
|
import 'tinyexec';
|
|
63
63
|
import 'node:crypto';
|
|
64
64
|
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import './chunks/config.Crbj2GAb.js';
|
|
3
|
-
import '@vitest/pretty-format';
|
|
1
|
+
export { aE as BaseReporter, au as BasicReporter, aO as BenchmarkBuiltinReporters, aN as BenchmarkReportsMap, aJ as BuiltinReporterOptions, aI as BuiltinReporters, av as DefaultReporter, aw as DotReporter, aG as FileDiagnostic, ax as GithubActionsReporter, ay as HangingProcessReporter, aA as JUnitReporter, aK as JsonAssertionResult, az as JsonReporter, aL as JsonTestResult, aM as JsonTestResults, r as Reporter, aH as ReportersMap, aB as TapFlatReporter, aC as TapReporter, a5 as TaskOptions, a3 as TestCase, a6 as TestCollection, a7 as TestDiagnostic, aF as TestFile, O as TestModule, _ as TestProject, a8 as TestResult, a9 as TestResultFailed, aa as TestResultPassed, ab as TestResultSkipped, a4 as TestSuite, aD as VerboseReporter } from './chunks/reporters.B_9uUTGW.js';
|
|
4
2
|
import '@vitest/runner';
|
|
3
|
+
import './chunks/environment.CT0jpO-1.js';
|
|
4
|
+
import 'node:stream';
|
|
5
|
+
import 'vite';
|
|
6
|
+
import '@vitest/utils';
|
|
7
|
+
import './chunks/config.CPguQ7J1.js';
|
|
8
|
+
import '@vitest/pretty-format';
|
|
5
9
|
import '@vitest/snapshot';
|
|
6
10
|
import '@vitest/snapshot/environment';
|
|
7
|
-
import '
|
|
11
|
+
import '@vitest/utils/diff';
|
|
8
12
|
import 'vite-node';
|
|
9
13
|
import 'chai';
|
|
10
|
-
import './chunks/environment.LoooBwUu.js';
|
|
11
|
-
import 'node:stream';
|
|
12
|
-
import '@vitest/utils';
|
|
13
14
|
import '@vitest/utils/source-map';
|
|
14
15
|
import 'vite-node/client';
|
|
15
16
|
import 'vite-node/server';
|
|
16
|
-
import '@vitest/snapshot/manager';
|
|
17
|
-
import 'node:fs';
|
|
18
17
|
import './chunks/benchmark.geERunq4.js';
|
|
19
18
|
import '@vitest/runner/utils';
|
|
20
19
|
import 'tinybench';
|
|
20
|
+
import '@vitest/snapshot/manager';
|
|
21
|
+
import 'node:fs';
|
package/dist/reporters.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as BasicReporter, h as BenchmarkReportsMap, D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.
|
|
1
|
+
export { B as BasicReporter, h as BenchmarkReportsMap, D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.DLRzErGF.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.DNoFbBUZ.js';
|
|
7
7
|
import 'node:util';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import 'node:perf_hooks';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
|
|
3
|
-
import { S as SerializedConfig } from './chunks/config.
|
|
3
|
+
import { S as SerializedConfig } from './chunks/config.CPguQ7J1.js';
|
|
4
4
|
import '@vitest/pretty-format';
|
|
5
5
|
import '@vitest/snapshot';
|
|
6
6
|
import '@vitest/snapshot/environment';
|
|
7
|
+
import '@vitest/utils/diff';
|
|
7
8
|
|
|
8
9
|
declare class NodeBenchmarkRunner implements VitestRunner {
|
|
9
10
|
config: SerializedConfig;
|
|
@@ -31,6 +32,7 @@ declare class VitestTestRunner implements VitestRunner {
|
|
|
31
32
|
onAfterRunSuite(suite: Suite): Promise<void>;
|
|
32
33
|
onAfterRunTask(test: Task): void;
|
|
33
34
|
onCancel(_reason: CancelReason): void;
|
|
35
|
+
injectValue(key: string): any;
|
|
34
36
|
onBeforeRunTask(test: Task): Promise<void>;
|
|
35
37
|
onBeforeRunSuite(suite: Suite): Promise<void>;
|
|
36
38
|
onBeforeTryTask(test: Task): void;
|
package/dist/runners.js
CHANGED
|
@@ -4,7 +4,7 @@ import { a as getBenchOptions, g as getBenchFn } from './chunks/benchmark.Cdu9hj
|
|
|
4
4
|
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
|
-
import { g as getSnapshotClient, c as createExpect, v as vi } from './chunks/vi.
|
|
7
|
+
import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.BlPttogV.js';
|
|
8
8
|
import { r as rpc } from './chunks/rpc.C3q9uwRX.js';
|
|
9
9
|
import 'chai';
|
|
10
10
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
@@ -202,6 +202,9 @@ class VitestTestRunner {
|
|
|
202
202
|
onCancel(_reason) {
|
|
203
203
|
this.cancelRun = true;
|
|
204
204
|
}
|
|
205
|
+
injectValue(key) {
|
|
206
|
+
return inject(key);
|
|
207
|
+
}
|
|
205
208
|
async onBeforeRunTask(test) {
|
|
206
209
|
if (this.cancelRun) {
|
|
207
210
|
test.mode = "skip";
|
package/dist/worker.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { pathToFileURL } from 'node:url';
|
|
2
|
+
import { createStackString, parseStacktrace } from '@vitest/utils/source-map';
|
|
2
3
|
import { workerId } from 'tinypool';
|
|
3
4
|
import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client';
|
|
4
5
|
import { readFileSync } from 'node:fs';
|
|
5
6
|
import { resolve, normalize } from 'pathe';
|
|
6
|
-
import { e as environments } from './chunks/index.
|
|
7
|
+
import { e as environments } from './chunks/index.K90BXFOx.js';
|
|
7
8
|
import { s as setupInspect } from './chunks/inspector.70d6emsh.js';
|
|
8
9
|
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.C3q9uwRX.js';
|
|
9
10
|
import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C8RiOc4B.js';
|
|
@@ -112,7 +113,10 @@ async function execute(method, ctx) {
|
|
|
112
113
|
prepare: prepareStart
|
|
113
114
|
},
|
|
114
115
|
rpc,
|
|
115
|
-
providedContext: ctx.providedContext
|
|
116
|
+
providedContext: ctx.providedContext,
|
|
117
|
+
onFilterStackTrace(stack) {
|
|
118
|
+
return createStackString(parseStacktrace(stack));
|
|
119
|
+
}
|
|
116
120
|
};
|
|
117
121
|
const methodName = method === "collect" ? "collectTests" : "runTests";
|
|
118
122
|
if (!worker[methodName] || typeof worker[methodName] !== "function") {
|
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.BS0HhLXd.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.2pr0rHgK.js';
|
|
@@ -5,11 +5,11 @@ import util from 'node:util';
|
|
|
5
5
|
import { startTests, collectTests } from '@vitest/runner';
|
|
6
6
|
import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
|
|
7
7
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
8
|
-
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.
|
|
8
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.BjjsHdBb.js';
|
|
9
9
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.BoMDb1ip.js';
|
|
10
|
-
import { V as VitestIndex } from '../chunks/index.
|
|
10
|
+
import { V as VitestIndex } from '../chunks/index.DD5eTY2y.js';
|
|
11
11
|
import { c as closeInspector } from '../chunks/inspector.70d6emsh.js';
|
|
12
|
-
import { s as setupCommonEnv } from '../chunks/setup-common.
|
|
12
|
+
import { s as setupCommonEnv } from '../chunks/setup-common.BfGt8K-K.js';
|
|
13
13
|
import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
|
|
14
14
|
import 'chai';
|
|
15
15
|
import 'node:path';
|
|
@@ -18,7 +18,7 @@ import 'node:url';
|
|
|
18
18
|
import '../chunks/rpc.C3q9uwRX.js';
|
|
19
19
|
import '@vitest/utils';
|
|
20
20
|
import '../chunks/index.68735LiX.js';
|
|
21
|
-
import '../chunks/vi.
|
|
21
|
+
import '../chunks/vi.BlPttogV.js';
|
|
22
22
|
import '@vitest/expect';
|
|
23
23
|
import '@vitest/runner/utils';
|
|
24
24
|
import '../chunks/_commonjsHelpers.BFTU3MAI.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.BS0HhLXd.js';
|
|
2
2
|
import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
|
|
3
3
|
import 'vite-node/client';
|
|
4
4
|
import '../chunks/execute.2pr0rHgK.js';
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
2
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
|
|
3
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
3
|
+
import { r as runVmTests } from '../chunks/vm.Zr4qWzDJ.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'node:vm';
|