vitest 4.0.11 → 4.0.12
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 +3 -4
- package/dist/chunks/{base.DiCUKpyF.js → base.CDEiaaLz.js} +2 -2
- package/dist/chunks/{browser.d.D-d8eZY4.d.ts → browser.d.Bq3zc1l_.d.ts} +1 -1
- package/dist/chunks/{cac.aVhqBj0-.js → cac.D9QaLeSz.js} +3 -3
- package/dist/chunks/{cli-api.-bIZD4XU.js → cli-api.BJh-POxZ.js} +6 -2
- package/dist/chunks/{global.d.uY4Q0M5z.d.ts → global.d.Dheepru6.d.ts} +1 -1
- package/dist/chunks/{init-forks.DIuGPyId.js → init-forks.FphdQhPI.js} +1 -1
- package/dist/chunks/{init-threads.jC_8JdoN.js → init-threads.BfqfWDNi.js} +1 -1
- package/dist/chunks/{init.B3IeC_yW.js → init.D-GGeAxo.js} +2 -2
- package/dist/chunks/{moduleRunner.d.B5SW5pMI.d.ts → moduleRunner.d.RBEiFdiW.d.ts} +1 -5
- package/dist/chunks/{plugin.d.N8khPRFb.d.ts → plugin.d.DGpEw-QV.d.ts} +1 -1
- package/dist/chunks/{reporters.d.DgZLBdyd.d.ts → reporters.d.C2PtoEFY.d.ts} +3 -3
- package/dist/chunks/{startModuleRunner.DaBMy1JT.js → startModuleRunner.BEYtrq5Y.js} +1 -1
- package/dist/chunks/{traces.BVPrsYso.js → traces.U4xDYhzZ.js} +21 -0
- package/dist/chunks/{traces.d.B8ukBJqA.d.ts → traces.d.Brik_NWu.d.ts} +0 -15
- package/dist/chunks/{vm.BKyGp1KW.js → vm.tWlKAMXr.js} +2 -2
- package/dist/chunks/{worker.d.B_PZTrCQ.d.ts → worker.d.Dxl5oW0C.d.ts} +1 -2
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +6 -7
- package/dist/coverage.d.ts +4 -5
- package/dist/index.d.ts +7 -8
- package/dist/module-evaluator.d.ts +6 -7
- package/dist/module-evaluator.js +1 -1
- package/dist/module-runner.js +2 -2
- package/dist/node.d.ts +8 -9
- package/dist/node.js +4 -4
- package/dist/reporters.d.ts +4 -5
- package/dist/runners.d.ts +1 -2
- package/dist/worker.d.ts +2 -3
- package/dist/worker.js +4 -4
- package/dist/workers/forks.js +5 -5
- package/dist/workers/threads.js +5 -5
- package/dist/workers/vmForks.js +5 -5
- package/dist/workers/vmThreads.js +5 -5
- package/package.json +12 -12
package/dist/browser.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/traces.d.
|
|
1
|
+
import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/traces.d.Brik_NWu.js';
|
|
2
2
|
import { R as RuntimeCoverageModuleLoader } from './chunks/coverage.d.BZtK59WP.js';
|
|
3
3
|
import { SerializedDiffOptions } from '@vitest/utils/diff';
|
|
4
|
-
import { V as VitestModuleRunner } from './chunks/moduleRunner.d.
|
|
4
|
+
import { V as VitestModuleRunner } from './chunks/moduleRunner.d.RBEiFdiW.js';
|
|
5
5
|
export { collectTests, startTests } from '@vitest/runner';
|
|
6
6
|
import * as _vitest_spy from '@vitest/spy';
|
|
7
7
|
export { _vitest_spy as SpyModule };
|
|
@@ -13,10 +13,9 @@ export { DecodedMap, getOriginalPosition } from '@vitest/utils/source-map';
|
|
|
13
13
|
export { getSafeTimers, setSafeTimers } from '@vitest/utils/timers';
|
|
14
14
|
import '@vitest/pretty-format';
|
|
15
15
|
import '@vitest/snapshot';
|
|
16
|
-
import '@opentelemetry/api';
|
|
17
16
|
import 'node:vm';
|
|
18
17
|
import 'vite/module-runner';
|
|
19
|
-
import './chunks/worker.d.
|
|
18
|
+
import './chunks/worker.d.Dxl5oW0C.js';
|
|
20
19
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
21
20
|
import '@vitest/mocker';
|
|
22
21
|
import './chunks/mocker.d.BE_2ls6u.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { runInThisContext } from 'node:vm';
|
|
2
2
|
import * as spyModule from '@vitest/spy';
|
|
3
3
|
import { r as resolveTestRunner, a as resolveSnapshotEnvironment, s as setupChaiConfig } from './index.CQwQ_SLL.js';
|
|
4
|
-
import { l as loadEnvironment } from './init.
|
|
4
|
+
import { l as loadEnvironment } from './init.D-GGeAxo.js';
|
|
5
5
|
import { V as VitestEvaluatedModules } from './evaluatedModules.Dg1zASAC.js';
|
|
6
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './startModuleRunner.
|
|
6
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './startModuleRunner.BEYtrq5Y.js';
|
|
7
7
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
8
8
|
import { startTests, collectTests } from '@vitest/runner';
|
|
9
9
|
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './setup-common.DGHc_BUK.js';
|
|
@@ -619,7 +619,7 @@ class CAC extends EventEmitter {
|
|
|
619
619
|
|
|
620
620
|
const cac = (name = "") => new CAC(name);
|
|
621
621
|
|
|
622
|
-
var version = "4.0.
|
|
622
|
+
var version = "4.0.12";
|
|
623
623
|
|
|
624
624
|
const apiConfig = (port) => ({
|
|
625
625
|
port: {
|
|
@@ -1371,7 +1371,7 @@ function normalizeCliOptions(cliFilters, argv) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
async function start(mode, cliFilters, options) {
|
|
1373
1373
|
try {
|
|
1374
|
-
const { startVitest } = await import('./cli-api
|
|
1374
|
+
const { startVitest } = await import('./cli-api.BJh-POxZ.js').then(function (n) { return n.p; });
|
|
1375
1375
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
1376
1376
|
if (!ctx.shouldKeepServer()) await ctx.exit();
|
|
1377
1377
|
} catch (e) {
|
|
@@ -1393,7 +1393,7 @@ async function init(project) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
async function collect(mode, cliFilters, options) {
|
|
1395
1395
|
try {
|
|
1396
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api
|
|
1396
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.BJh-POxZ.js').then(function (n) { return n.p; });
|
|
1397
1397
|
const ctx = await prepareVitest(mode, {
|
|
1398
1398
|
...normalizeCliOptions(cliFilters, options),
|
|
1399
1399
|
watch: false,
|
|
@@ -12,7 +12,7 @@ import * as nodeos from 'node:os';
|
|
|
12
12
|
import nodeos__default, { tmpdir } from 'node:os';
|
|
13
13
|
import { generateHash as generateHash$1, calculateSuiteHash, someTasksAreOnly, interpretTaskModes, hasFailed, generateFileHash, limitConcurrency, createFileTask as createFileTask$1, getTasks, isTestCase } from '@vitest/runner/utils';
|
|
14
14
|
import { SnapshotManager } from '@vitest/snapshot/manager';
|
|
15
|
-
import { v as version$1 } from './cac.
|
|
15
|
+
import { v as version$1 } from './cac.D9QaLeSz.js';
|
|
16
16
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
17
17
|
import { c as createBirpc } from './index.0kCJoeWi.js';
|
|
18
18
|
import { p as parse, d as stringify, e as TraceMap, o as originalPositionFor, h as ancestor, i as printError, f as formatProjectName, w as withLabel, j as errorBanner, k as divider, l as Typechecker, m as generateCodeFrame, n as createDefinesScript, R as ReportersMap, B as BlobReporter, r as readBlobs, q as convertTasksToEvents, H as HangingProcessReporter } from './index.DWDW6mLz.js';
|
|
@@ -29,7 +29,7 @@ import require$$0$1 from 'buffer';
|
|
|
29
29
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers.D26ty3Ew.js';
|
|
30
30
|
import crypto, { createHash } from 'node:crypto';
|
|
31
31
|
import { rootDir, distDir } from '../path.js';
|
|
32
|
-
import { T as Traces } from './traces.
|
|
32
|
+
import { T as Traces } from './traces.U4xDYhzZ.js';
|
|
33
33
|
import createDebug from 'debug';
|
|
34
34
|
import { rm, readFile, writeFile, rename, stat, unlink, mkdir, copyFile } from 'node:fs/promises';
|
|
35
35
|
import c from 'tinyrainbow';
|
|
@@ -9249,6 +9249,10 @@ function WorkspaceVitestPlugin(project, options) {
|
|
|
9249
9249
|
vitestConfig.experimental ??= {};
|
|
9250
9250
|
vitestConfig.experimental.fsModuleCache = project.vitest.config.experimental.fsModuleCache;
|
|
9251
9251
|
}
|
|
9252
|
+
if (testConfig.experimental?.fsModuleCachePath == null && project.vitest.config.experimental?.fsModuleCachePath !== null) {
|
|
9253
|
+
vitestConfig.experimental ??= {};
|
|
9254
|
+
vitestConfig.experimental.fsModuleCachePath = project.vitest.config.experimental.fsModuleCachePath;
|
|
9255
|
+
}
|
|
9252
9256
|
return {
|
|
9253
9257
|
base: "/",
|
|
9254
9258
|
environments: { __vitest__: { dev: {} } },
|
|
@@ -2,7 +2,7 @@ import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
|
|
|
2
2
|
import { Plugin } from '@vitest/pretty-format';
|
|
3
3
|
import { SnapshotState } from '@vitest/snapshot';
|
|
4
4
|
import { B as BenchmarkResult } from './benchmark.d.DAaHLpsq.js';
|
|
5
|
-
import { U as UserConsoleLog } from './worker.d.
|
|
5
|
+
import { U as UserConsoleLog } from './worker.d.Dxl5oW0C.js';
|
|
6
6
|
|
|
7
7
|
interface SnapshotMatcher<T> {
|
|
8
8
|
<U extends { [P in keyof T] : any }>(snapshot: Partial<U>, hint?: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isMainThread, parentPort } from 'node:worker_threads';
|
|
2
|
-
import { i as init } from './init.
|
|
2
|
+
import { i as init } from './init.D-GGeAxo.js';
|
|
3
3
|
|
|
4
4
|
if (isMainThread || !parentPort) throw new Error("Expected worker to be run in node:worker_threads");
|
|
5
5
|
function workerInit(options) {
|
|
@@ -3,10 +3,10 @@ import { isBuiltin } from 'node:module';
|
|
|
3
3
|
import { pathToFileURL } from 'node:url';
|
|
4
4
|
import { resolve } from 'pathe';
|
|
5
5
|
import { ModuleRunner } from 'vite/module-runner';
|
|
6
|
-
import { b as VitestTransport } from './startModuleRunner.
|
|
6
|
+
import { b as VitestTransport } from './startModuleRunner.BEYtrq5Y.js';
|
|
7
7
|
import { e as environments } from './index.QWbK7rHY.js';
|
|
8
8
|
import { serializeError } from '@vitest/utils/error';
|
|
9
|
-
import { T as Traces } from './traces.
|
|
9
|
+
import { T as Traces } from './traces.U4xDYhzZ.js';
|
|
10
10
|
import { o as onCancel, a as rpcDone, c as createRuntimeRpc } from './rpc.BytlcPfC.js';
|
|
11
11
|
import { createStackString, parseStacktrace } from '@vitest/utils/source-map';
|
|
12
12
|
import { s as setupInspect } from './inspector.CvyFGlXm.js';
|
|
@@ -2,8 +2,7 @@ import * as _vitest_spy from '@vitest/spy';
|
|
|
2
2
|
import vm from 'node:vm';
|
|
3
3
|
import * as viteModuleRunner from 'vite/module-runner';
|
|
4
4
|
import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode, FetchFunction, EvaluatedModules } from 'vite/module-runner';
|
|
5
|
-
import { R as RuntimeRPC, e as ResolveFunctionResult, W as WorkerGlobalState } from './worker.d.
|
|
6
|
-
import { T as Traces } from './traces.d.B8ukBJqA.js';
|
|
5
|
+
import { R as RuntimeRPC, e as ResolveFunctionResult, W as WorkerGlobalState } from './worker.d.Dxl5oW0C.js';
|
|
7
6
|
import { MockedModule, MockedModuleType } from '@vitest/mocker';
|
|
8
7
|
import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './mocker.d.BE_2ls6u.js';
|
|
9
8
|
|
|
@@ -78,7 +77,6 @@ interface VitestModuleEvaluatorOptions {
|
|
|
78
77
|
getCurrentTestFilepath?: () => string | undefined;
|
|
79
78
|
compiledFunctionArgumentsNames?: string[];
|
|
80
79
|
compiledFunctionArgumentsValues?: unknown[];
|
|
81
|
-
traces?: Traces;
|
|
82
80
|
}
|
|
83
81
|
declare class VitestModuleEvaluator implements ModuleEvaluator {
|
|
84
82
|
private options;
|
|
@@ -117,7 +115,6 @@ interface MockContext {
|
|
|
117
115
|
}
|
|
118
116
|
interface VitestMockerOptions {
|
|
119
117
|
context?: vm.Context;
|
|
120
|
-
traces: Traces;
|
|
121
118
|
spyModule?: typeof _vitest_spy;
|
|
122
119
|
root: string;
|
|
123
120
|
moduleDirectories: string[];
|
|
@@ -195,7 +192,6 @@ interface VitestModuleRunnerOptions {
|
|
|
195
192
|
getWorkerState: () => WorkerGlobalState;
|
|
196
193
|
mocker?: VitestMocker;
|
|
197
194
|
vm?: VitestVmOptions;
|
|
198
|
-
traces?: Traces;
|
|
199
195
|
spyModule?: typeof _vitest_spy;
|
|
200
196
|
createImportMeta?: CreateImportMeta;
|
|
201
197
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DevEnvironment } from 'vite';
|
|
2
|
-
import { V as Vitest, T as TestProject, b as TestProjectConfiguration } from './reporters.d.
|
|
2
|
+
import { V as Vitest, T as TestProject, b as TestProjectConfiguration } from './reporters.d.C2PtoEFY.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generate a unique cache identifier.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TaskMeta, Suite, File, TestAnnotation, TestArtifact, ImportDuration, Test, Task, TaskResultPack, FileSpecification, CancelReason, SequenceSetupFiles, SequenceHooks } from '@vitest/runner';
|
|
2
2
|
import { TestError, SerializedError, Arrayable, ParsedStack, Awaitable } from '@vitest/utils';
|
|
3
|
-
import { A as AfterSuiteRunMeta, U as UserConsoleLog, P as ProvidedContext, d as ContextTestEnvironment, f as WorkerTestEnvironment, g as WorkerExecuteContext, L as LabelColor } from './worker.d.
|
|
3
|
+
import { A as AfterSuiteRunMeta, U as UserConsoleLog, P as ProvidedContext, d as ContextTestEnvironment, f as WorkerTestEnvironment, g as WorkerExecuteContext, L as LabelColor } from './worker.d.Dxl5oW0C.js';
|
|
4
4
|
import { Writable } from 'node:stream';
|
|
5
5
|
import { TransformResult as TransformResult$1, ViteDevServer, Plugin, UserConfig as UserConfig$1, DepOptimizationConfig, ServerOptions, ConfigEnv, AliasOptions } from 'vite';
|
|
6
6
|
import { MockedModule } from '@vitest/mocker';
|
|
7
7
|
import { StackTraceParserOptions } from '@vitest/utils/source-map';
|
|
8
8
|
import { BrowserCommands } from 'vitest/browser';
|
|
9
|
-
import { B as BrowserTraceViewMode, S as SerializedConfig, O as OTELCarrier, F as FakeTimerInstallOpts } from './traces.d.
|
|
10
|
-
import { S as SerializedTestSpecification, B as BrowserTesterOptions } from './browser.d.
|
|
9
|
+
import { B as BrowserTraceViewMode, S as SerializedConfig, O as OTELCarrier, F as FakeTimerInstallOpts } from './traces.d.Brik_NWu.js';
|
|
10
|
+
import { S as SerializedTestSpecification, B as BrowserTesterOptions } from './browser.d.Bq3zc1l_.js';
|
|
11
11
|
import { PrettyFormatOptions } from '@vitest/pretty-format';
|
|
12
12
|
import { SnapshotSummary, SnapshotStateOptions } from '@vitest/snapshot';
|
|
13
13
|
import { SerializedDiffOptions } from '@vitest/utils/diff';
|
|
@@ -10,7 +10,7 @@ import { resolve as resolve$1, isAbsolute as isAbsolute$1 } from 'node:path';
|
|
|
10
10
|
import vm from 'node:vm';
|
|
11
11
|
import { MockerRegistry, mockObject, RedirectedModule, AutomockedModule } from '@vitest/mocker';
|
|
12
12
|
import * as viteModuleRunner from 'vite/module-runner';
|
|
13
|
-
import { T as Traces } from './traces.
|
|
13
|
+
import { T as Traces } from './traces.U4xDYhzZ.js';
|
|
14
14
|
|
|
15
15
|
class VitestTransport {
|
|
16
16
|
constructor(options) {
|
|
@@ -37,10 +37,16 @@ class Traces {
|
|
|
37
37
|
isEnabled() {
|
|
38
38
|
return !!this.#otel;
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
40
43
|
async waitInit() {
|
|
41
44
|
if (this.#init) await this.#init;
|
|
42
45
|
return this;
|
|
43
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
44
50
|
startContextSpan(name, currentContext) {
|
|
45
51
|
if (!this.#otel) return {
|
|
46
52
|
span: this.#noopSpan,
|
|
@@ -53,12 +59,18 @@ class Traces {
|
|
|
53
59
|
context: this.#otel.trace.setSpan(activeContext, span)
|
|
54
60
|
};
|
|
55
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
56
65
|
getContextFromCarrier(carrier) {
|
|
57
66
|
if (!this.#otel) return this.#noopContext;
|
|
58
67
|
const activeContext = this.#otel.context.active();
|
|
59
68
|
if (!carrier) return activeContext;
|
|
60
69
|
return this.#otel.propagation.extract(activeContext, carrier);
|
|
61
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
62
74
|
getContextCarrier(context) {
|
|
63
75
|
if (!this.#otel) return;
|
|
64
76
|
const carrier = {};
|
|
@@ -95,6 +107,9 @@ class Traces {
|
|
|
95
107
|
if (!(result instanceof Promise)) span.end();
|
|
96
108
|
}
|
|
97
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
98
113
|
$(name, optionsOrFn, fn) {
|
|
99
114
|
const callback = typeof optionsOrFn === "function" ? optionsOrFn : fn;
|
|
100
115
|
if (!this.#otel) return callback(this.#noopSpan);
|
|
@@ -104,11 +119,17 @@ class Traces {
|
|
|
104
119
|
if (context) return otel.tracer.startActiveSpan(name, options, context, (span) => this.#callActiveSpan(span, callback));
|
|
105
120
|
return otel.tracer.startActiveSpan(name, options, (span) => this.#callActiveSpan(span, callback));
|
|
106
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
107
125
|
startSpan(name, options, context) {
|
|
108
126
|
if (!this.#otel) return this.#noopSpan;
|
|
109
127
|
const { tracer } = this.#otel;
|
|
110
128
|
return tracer.startSpan(name, options, context);
|
|
111
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
112
133
|
async finish() {
|
|
113
134
|
await this.#sdk?.shutdown();
|
|
114
135
|
}
|
|
@@ -2,7 +2,6 @@ import { PrettyFormatOptions } from '@vitest/pretty-format';
|
|
|
2
2
|
import { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
3
3
|
import { SnapshotUpdateState, SnapshotEnvironment } from '@vitest/snapshot';
|
|
4
4
|
import { SerializedDiffOptions } from '@vitest/utils/diff';
|
|
5
|
-
import { Context, Span, SpanOptions } from '@opentelemetry/api';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Names of clock methods that may be faked by install.
|
|
@@ -212,24 +211,10 @@ interface TracesOptions {
|
|
|
212
211
|
sdkPath?: string;
|
|
213
212
|
tracerName?: string;
|
|
214
213
|
}
|
|
215
|
-
interface TracesSpanOptions extends SpanOptions {
|
|
216
|
-
context?: Context;
|
|
217
|
-
}
|
|
218
214
|
declare class Traces {
|
|
219
215
|
#private;
|
|
220
216
|
constructor(options: TracesOptions);
|
|
221
217
|
isEnabled(): boolean;
|
|
222
|
-
waitInit(): Promise<this>;
|
|
223
|
-
startContextSpan(name: string, currentContext?: Context): {
|
|
224
|
-
span: Span;
|
|
225
|
-
context: Context;
|
|
226
|
-
};
|
|
227
|
-
getContextFromCarrier(carrier: OTELCarrier | undefined): Context;
|
|
228
|
-
getContextCarrier(context?: Context): OTELCarrier | undefined;
|
|
229
|
-
$<T>(name: string, fn: (span: Span) => T): T;
|
|
230
|
-
$<T>(name: string, optionsOrFn: TracesSpanOptions, fn: (span: Span) => T): T;
|
|
231
|
-
startSpan(name: string, options?: SpanOptions, context?: Context): Span;
|
|
232
|
-
finish(): Promise<void>;
|
|
233
218
|
}
|
|
234
219
|
|
|
235
220
|
export { Traces as T };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
2
2
|
import vm, { isContext, runInContext } from 'node:vm';
|
|
3
3
|
import { dirname, basename, extname, normalize, resolve } from 'pathe';
|
|
4
|
-
import { l as loadEnvironment } from './init.
|
|
4
|
+
import { l as loadEnvironment } from './init.D-GGeAxo.js';
|
|
5
5
|
import { distDir } from '../path.js';
|
|
6
6
|
import { createCustomConsole } from './console.Cf-YriPC.js';
|
|
7
7
|
import fs from 'node:fs';
|
|
@@ -11,7 +11,7 @@ import { findNearestPackageData } from '@vitest/utils/resolver';
|
|
|
11
11
|
import { dirname as dirname$1 } from 'node:path';
|
|
12
12
|
import { CSS_LANGS_RE, KNOWN_ASSET_RE } from '@vitest/utils/constants';
|
|
13
13
|
import { getDefaultRequestStubs } from '../module-evaluator.js';
|
|
14
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.
|
|
14
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.BEYtrq5Y.js';
|
|
15
15
|
import { p as provideWorkerState } from './utils.DvEY5TfP.js';
|
|
16
16
|
|
|
17
17
|
function interopCommonJsModule(interopDefault, mod) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelReason, File, TestArtifact, TaskResultPack, TaskEventPack, FileSpecification, Task } from '@vitest/runner';
|
|
2
2
|
import { FetchFunctionOptions, FetchResult, EvaluatedModules } from 'vite/module-runner';
|
|
3
|
-
import { O as OTELCarrier, S as SerializedConfig
|
|
3
|
+
import { O as OTELCarrier, S as SerializedConfig } from './traces.d.Brik_NWu.js';
|
|
4
4
|
import { E as Environment } from './environment.d.CrsxCzP1.js';
|
|
5
5
|
import { SnapshotResult } from '@vitest/snapshot';
|
|
6
6
|
|
|
@@ -264,7 +264,6 @@ interface WorkerSetupContext {
|
|
|
264
264
|
config: SerializedConfig;
|
|
265
265
|
projectName: string;
|
|
266
266
|
rpc: WorkerRPC;
|
|
267
|
-
traces: Traces;
|
|
268
267
|
}
|
|
269
268
|
interface WorkerGlobalState {
|
|
270
269
|
ctx: ContextRPC;
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HookHandler, ConfigEnv, UserConfig } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.
|
|
4
|
-
export { b as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.
|
|
5
|
-
import { V as VitestPluginContext } from './chunks/plugin.d.
|
|
6
|
-
import { F as FakeTimerInstallOpts } from './chunks/traces.d.
|
|
3
|
+
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.C2PtoEFY.js';
|
|
4
|
+
export { b as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.C2PtoEFY.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.DGpEw-QV.js';
|
|
6
|
+
import { F as FakeTimerInstallOpts } from './chunks/traces.d.Brik_NWu.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/worker.d.Dxl5oW0C.js';
|
|
10
10
|
import 'vite/module-runner';
|
|
11
11
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
@@ -14,7 +14,7 @@ import 'node:stream';
|
|
|
14
14
|
import '@vitest/mocker';
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
16
|
import 'vitest/browser';
|
|
17
|
-
import './chunks/browser.d.
|
|
17
|
+
import './chunks/browser.d.Bq3zc1l_.js';
|
|
18
18
|
import '@vitest/pretty-format';
|
|
19
19
|
import '@vitest/utils/diff';
|
|
20
20
|
import '@vitest/expect';
|
|
@@ -26,7 +26,6 @@ import './chunks/coverage.d.BZtK59WP.js';
|
|
|
26
26
|
import '@vitest/snapshot/manager';
|
|
27
27
|
import 'node:console';
|
|
28
28
|
import 'node:fs';
|
|
29
|
-
import '@opentelemetry/api';
|
|
30
29
|
|
|
31
30
|
type VitestInlineConfig = InlineConfig;
|
|
32
31
|
declare module "vite" {
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.d.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, a as ReportContext } from './chunks/reporters.d.C2PtoEFY.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
|
-
import { A as AfterSuiteRunMeta } from './chunks/worker.d.
|
|
3
|
+
import { A as AfterSuiteRunMeta } from './chunks/worker.d.Dxl5oW0C.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
9
|
import 'vitest/browser';
|
|
10
|
-
import './chunks/traces.d.
|
|
10
|
+
import './chunks/traces.d.Brik_NWu.js';
|
|
11
11
|
import '@vitest/pretty-format';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/utils/diff';
|
|
14
|
-
import '
|
|
15
|
-
import './chunks/browser.d.D-d8eZY4.js';
|
|
14
|
+
import './chunks/browser.d.Bq3zc1l_.js';
|
|
16
15
|
import '@vitest/expect';
|
|
17
16
|
import 'vitest/optional-types.js';
|
|
18
17
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { S as SerializedTestSpecification } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
3
|
-
import './chunks/global.d.
|
|
1
|
+
import { S as SerializedTestSpecification } from './chunks/browser.d.Bq3zc1l_.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.Bq3zc1l_.js';
|
|
3
|
+
import './chunks/global.d.Dheepru6.js';
|
|
4
4
|
import { File, TestAnnotation, TestArtifact, TaskResultPack, TaskEventPack, Test, TaskPopulated } from '@vitest/runner';
|
|
5
5
|
export { CancelReason, ImportDuration, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskEventPack as RunnerTaskEventPack, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestAnnotationArtifact, TestArtifact, TestArtifactBase, TestArtifactLocation, TestArtifactRegistry, TestAttachment, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
|
|
6
6
|
import { Awaitable } from '@vitest/utils';
|
|
7
7
|
export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
8
|
-
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, b as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.
|
|
9
|
-
export { A as AfterSuiteRunMeta, C as ContextRPC, d as ContextTestEnvironment, c as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
10
|
-
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/traces.d.
|
|
11
|
-
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/traces.d.
|
|
8
|
+
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, b as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.Dxl5oW0C.js';
|
|
9
|
+
export { A as AfterSuiteRunMeta, C as ContextRPC, d as ContextTestEnvironment, c as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.Dxl5oW0C.js';
|
|
10
|
+
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/traces.d.Brik_NWu.js';
|
|
11
|
+
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/traces.d.Brik_NWu.js';
|
|
12
12
|
import { ExpectStatic } from '@vitest/expect';
|
|
13
13
|
export { Assertion, AsymmetricMatchersContaining, DeeplyAllowMatchers, ExpectPollOptions, ExpectStatic, JestAssertion, Matchers, chai } from '@vitest/expect';
|
|
14
14
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
@@ -23,7 +23,6 @@ export { DiffOptions } from '@vitest/utils/diff';
|
|
|
23
23
|
export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, TaskResult as BenchTaskResult } from 'tinybench';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
26
|
-
import '@opentelemetry/api';
|
|
27
26
|
import '@vitest/mocker';
|
|
28
27
|
import '@vitest/runner/utils';
|
|
29
28
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import 'vite/module-runner';
|
|
2
|
-
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.
|
|
2
|
+
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.RBEiFdiW.js';
|
|
3
3
|
import 'node:vm';
|
|
4
|
-
import './chunks/traces.d.B8ukBJqA.js';
|
|
5
4
|
import '@vitest/spy';
|
|
6
|
-
import './chunks/worker.d.
|
|
5
|
+
import './chunks/worker.d.Dxl5oW0C.js';
|
|
7
6
|
import '@vitest/runner';
|
|
7
|
+
import './chunks/traces.d.Brik_NWu.js';
|
|
8
|
+
import '@vitest/pretty-format';
|
|
9
|
+
import '@vitest/snapshot';
|
|
10
|
+
import '@vitest/utils/diff';
|
|
8
11
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
9
12
|
import '@vitest/utils';
|
|
10
|
-
import '@vitest/snapshot';
|
|
11
13
|
import '@vitest/mocker';
|
|
12
14
|
import './chunks/mocker.d.BE_2ls6u.js';
|
|
13
|
-
import '@vitest/pretty-format';
|
|
14
|
-
import '@vitest/utils/diff';
|
|
15
|
-
import '@opentelemetry/api';
|
package/dist/module-evaluator.js
CHANGED
|
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
3
3
|
import vm from 'node:vm';
|
|
4
4
|
import { isAbsolute } from 'pathe';
|
|
5
5
|
import { ssrModuleExportsKey, ssrImportMetaKey, ssrImportKey, ssrDynamicImportKey, ssrExportAllKey } from 'vite/module-runner';
|
|
6
|
-
import { T as Traces } from './chunks/traces.
|
|
6
|
+
import { T as Traces } from './chunks/traces.U4xDYhzZ.js';
|
|
7
7
|
|
|
8
8
|
const performanceNow = performance.now.bind(performance);
|
|
9
9
|
class ModuleDebug {
|
package/dist/module-runner.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { VitestModuleEvaluator } from './module-evaluator.js';
|
|
2
|
-
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.
|
|
2
|
+
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.BEYtrq5Y.js';
|
|
3
3
|
export { g as getWorkerState } from './chunks/utils.DvEY5TfP.js';
|
|
4
4
|
import 'node:module';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'node:vm';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'vite/module-runner';
|
|
9
|
-
import './chunks/traces.
|
|
9
|
+
import './chunks/traces.U4xDYhzZ.js';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import '@vitest/utils/helpers';
|
|
12
12
|
import './path.js';
|
package/dist/node.d.ts
CHANGED
|
@@ -3,23 +3,23 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
|
|
|
3
3
|
export { vite as Vite };
|
|
4
4
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
5
5
|
import { IncomingMessage } from 'node:http';
|
|
6
|
-
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as PoolWorker, l as PoolOptions, m as WorkerRequest, n as TestSequencer, L as Logger } from './chunks/reporters.d.
|
|
7
|
-
export { at as BaseCoverageOptions, Y as BenchmarkUserOptions, Z as BrowserBuiltinProvider, $ as BrowserCommand, a0 as BrowserCommandContext, a1 as BrowserConfigOptions, a2 as BrowserInstanceOption, a3 as BrowserModuleMocker, a4 as BrowserOrchestrator, a5 as BrowserProvider, a6 as BrowserProviderOption, a7 as BrowserScript, a8 as BrowserServerFactory, a9 as BrowserServerOptions, aa as BrowserServerState, ab as BrowserServerStateSession, ai as BuiltinEnvironment, ac as CDPSession, aj as CSSModuleScopeStrategy, au as CoverageIstanbulOptions, av as CoverageOptions, aw as CoverageProvider, ax as CoverageProviderModule, ay as CoverageReporter, c as CoverageV8Options, az as CustomProviderOptions, ak as DepsOptimizationOptions, al as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, t as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, o as OnTestsRerunHandler, ad as ParentProjectBrowser, am as Pool, q as PoolRunnerInitializer, r as PoolTask, ae as ProjectBrowser, an as ProjectConfig, a as ReportContext, aB as ReportedHookContext, aC as Reporter, ap as ResolveSnapshotPathHandler, aq as ResolveSnapshotPathHandlerContext, af as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ao as ResolvedProjectConfig, S as SerializedTestProject, u as TaskOptions, v as TestCase, w as TestCollection, x as TestDiagnostic, y as TestModule, z as TestModuleState, B as TestResult, D as TestResultFailed, E as TestResultPassed, F as TestResultSkipped, aD as TestRunEndReason, aA as TestRunResult, X as TestSequencerConstructor, G as TestState, K as TestSuite, N as TestSuiteState, ag as ToMatchScreenshotComparators, ah as ToMatchScreenshotOptions, ar as TypecheckConfig, U as UserWorkspaceConfig, as as VitestEnvironment, p as VitestPackageInstaller, W as WatcherTriggerPattern, s as WorkerResponse, _ as _BrowserNames, Q as experimental_getRunnerTask } from './chunks/reporters.d.
|
|
8
|
-
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.
|
|
6
|
+
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as PoolWorker, l as PoolOptions, m as WorkerRequest, n as TestSequencer, L as Logger } from './chunks/reporters.d.C2PtoEFY.js';
|
|
7
|
+
export { at as BaseCoverageOptions, Y as BenchmarkUserOptions, Z as BrowserBuiltinProvider, $ as BrowserCommand, a0 as BrowserCommandContext, a1 as BrowserConfigOptions, a2 as BrowserInstanceOption, a3 as BrowserModuleMocker, a4 as BrowserOrchestrator, a5 as BrowserProvider, a6 as BrowserProviderOption, a7 as BrowserScript, a8 as BrowserServerFactory, a9 as BrowserServerOptions, aa as BrowserServerState, ab as BrowserServerStateSession, ai as BuiltinEnvironment, ac as CDPSession, aj as CSSModuleScopeStrategy, au as CoverageIstanbulOptions, av as CoverageOptions, aw as CoverageProvider, ax as CoverageProviderModule, ay as CoverageReporter, c as CoverageV8Options, az as CustomProviderOptions, ak as DepsOptimizationOptions, al as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, t as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, o as OnTestsRerunHandler, ad as ParentProjectBrowser, am as Pool, q as PoolRunnerInitializer, r as PoolTask, ae as ProjectBrowser, an as ProjectConfig, a as ReportContext, aB as ReportedHookContext, aC as Reporter, ap as ResolveSnapshotPathHandler, aq as ResolveSnapshotPathHandlerContext, af as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ao as ResolvedProjectConfig, S as SerializedTestProject, u as TaskOptions, v as TestCase, w as TestCollection, x as TestDiagnostic, y as TestModule, z as TestModuleState, B as TestResult, D as TestResultFailed, E as TestResultPassed, F as TestResultSkipped, aD as TestRunEndReason, aA as TestRunResult, X as TestSequencerConstructor, G as TestState, K as TestSuite, N as TestSuiteState, ag as ToMatchScreenshotComparators, ah as ToMatchScreenshotOptions, ar as TypecheckConfig, U as UserWorkspaceConfig, as as VitestEnvironment, p as VitestPackageInstaller, W as WatcherTriggerPattern, s as WorkerResponse, _ as _BrowserNames, Q as experimental_getRunnerTask } from './chunks/reporters.d.C2PtoEFY.js';
|
|
8
|
+
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.DGpEw-QV.js';
|
|
9
9
|
import { Awaitable } from '@vitest/utils';
|
|
10
10
|
export { SerializedError } from '@vitest/utils';
|
|
11
|
-
import { R as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.
|
|
12
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
11
|
+
import { R as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.Dxl5oW0C.js';
|
|
12
|
+
export { T as TestExecutionType } from './chunks/worker.d.Dxl5oW0C.js';
|
|
13
13
|
import { Writable } from 'node:stream';
|
|
14
14
|
import { Debugger } from 'debug';
|
|
15
|
-
import './chunks/global.d.
|
|
15
|
+
import './chunks/global.d.Dheepru6.js';
|
|
16
16
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
17
|
-
export { b as RuntimeConfig } from './chunks/traces.d.
|
|
17
|
+
export { b as RuntimeConfig } from './chunks/traces.d.Brik_NWu.js';
|
|
18
18
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/mocker';
|
|
20
20
|
import '@vitest/utils/source-map';
|
|
21
21
|
import 'vitest/browser';
|
|
22
|
-
import './chunks/browser.d.
|
|
22
|
+
import './chunks/browser.d.Bq3zc1l_.js';
|
|
23
23
|
import '@vitest/pretty-format';
|
|
24
24
|
import '@vitest/snapshot';
|
|
25
25
|
import '@vitest/utils/diff';
|
|
@@ -33,7 +33,6 @@ import 'node:console';
|
|
|
33
33
|
import 'node:fs';
|
|
34
34
|
import 'vite/module-runner';
|
|
35
35
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
36
|
-
import '@opentelemetry/api';
|
|
37
36
|
|
|
38
37
|
type RawErrsMap = Map<string, TscErrorInfo[]>;
|
|
39
38
|
interface TscErrorInfo {
|
package/dist/node.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
3
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
4
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api
|
|
5
|
-
export { f as ForksPoolWorker, G as GitNotFoundError, F as TestsNotFoundError, T as ThreadsPoolWorker, h as TypecheckPoolWorker, b as VitestPackageInstaller, j as VmForksPoolWorker, k as VmThreadsPoolWorker, o as createDebugger, d as createMethodsRPC, n as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.BJh-POxZ.js';
|
|
5
|
+
export { f as ForksPoolWorker, G as GitNotFoundError, F as TestsNotFoundError, T as ThreadsPoolWorker, h as TypecheckPoolWorker, b as VitestPackageInstaller, j as VmForksPoolWorker, k as VmThreadsPoolWorker, o as createDebugger, d as createMethodsRPC, n as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.BJh-POxZ.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.D9QaLeSz.js';
|
|
7
7
|
import { r as resolveConfig$2 } from './chunks/coverage.CtyeYmKM.js';
|
|
8
8
|
export { b as BaseSequencer, a as resolveApiServerConfig } from './chunks/coverage.CtyeYmKM.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
@@ -44,7 +44,7 @@ import 'zlib';
|
|
|
44
44
|
import 'buffer';
|
|
45
45
|
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
46
46
|
import 'node:crypto';
|
|
47
|
-
import './chunks/traces.
|
|
47
|
+
import './chunks/traces.U4xDYhzZ.js';
|
|
48
48
|
import 'debug';
|
|
49
49
|
import '#module-evaluator';
|
|
50
50
|
import 'vite/module-runner';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
export { aR as BaseReporter, aS as BenchmarkBuiltinReporters, aE as BenchmarkReporter, aF as BenchmarkReportsMap, aT as BuiltinReporterOptions, aU as BuiltinReporters, aG as DefaultReporter, aH as DotReporter, aI as GithubActionsReporter, aJ as HangingProcessReporter, aL as JUnitReporter, aV as JsonAssertionResult, aK as JsonReporter, aW as JsonTestResult, aX as JsonTestResults, aB as ReportedHookContext, aC as Reporter, aM as ReportersMap, aN as TapFlatReporter, aO as TapReporter, aD as TestRunEndReason, aP as VerboseBenchmarkReporter, aQ as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aR as BaseReporter, aS as BenchmarkBuiltinReporters, aE as BenchmarkReporter, aF as BenchmarkReportsMap, aT as BuiltinReporterOptions, aU as BuiltinReporters, aG as DefaultReporter, aH as DotReporter, aI as GithubActionsReporter, aJ as HangingProcessReporter, aL as JUnitReporter, aV as JsonAssertionResult, aK as JsonReporter, aW as JsonTestResult, aX as JsonTestResults, aB as ReportedHookContext, aC as Reporter, aM as ReportersMap, aN as TapFlatReporter, aO as TapReporter, aD as TestRunEndReason, aP as VerboseBenchmarkReporter, aQ as VerboseReporter } from './chunks/reporters.d.C2PtoEFY.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
|
-
import './chunks/worker.d.
|
|
4
|
+
import './chunks/worker.d.Dxl5oW0C.js';
|
|
5
5
|
import 'vite/module-runner';
|
|
6
|
-
import './chunks/traces.d.
|
|
6
|
+
import './chunks/traces.d.Brik_NWu.js';
|
|
7
7
|
import '@vitest/pretty-format';
|
|
8
8
|
import '@vitest/snapshot';
|
|
9
9
|
import '@vitest/utils/diff';
|
|
10
|
-
import '@opentelemetry/api';
|
|
11
10
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
12
11
|
import 'node:stream';
|
|
13
12
|
import 'vite';
|
|
14
13
|
import '@vitest/mocker';
|
|
15
14
|
import '@vitest/utils/source-map';
|
|
16
15
|
import 'vitest/browser';
|
|
17
|
-
import './chunks/browser.d.
|
|
16
|
+
import './chunks/browser.d.Bq3zc1l_.js';
|
|
18
17
|
import '@vitest/expect';
|
|
19
18
|
import 'vitest/optional-types.js';
|
|
20
19
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TestContext, ImportDuration } from '@vitest/runner';
|
|
3
3
|
export { VitestRunner } from '@vitest/runner';
|
|
4
|
-
import { S as SerializedConfig, T as Traces } from './chunks/traces.d.
|
|
4
|
+
import { S as SerializedConfig, T as Traces } from './chunks/traces.d.Brik_NWu.js';
|
|
5
5
|
import '@vitest/pretty-format';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
7
|
import '@vitest/utils/diff';
|
|
8
|
-
import '@opentelemetry/api';
|
|
9
8
|
|
|
10
9
|
declare class NodeBenchmarkRunner implements VitestRunner {
|
|
11
10
|
config: SerializedConfig;
|
package/dist/worker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, B as BirpcOptions, R as RuntimeRPC, a as WorkerSetupContext } from './chunks/worker.d.
|
|
2
|
-
import { T as Traces } from './chunks/traces.d.
|
|
1
|
+
import { W as WorkerGlobalState, B as BirpcOptions, R as RuntimeRPC, a as WorkerSetupContext } from './chunks/worker.d.Dxl5oW0C.js';
|
|
2
|
+
import { T as Traces } from './chunks/traces.d.Brik_NWu.js';
|
|
3
3
|
import { Awaitable } from '@vitest/utils';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import 'vite/module-runner';
|
|
@@ -7,7 +7,6 @@ import './chunks/environment.d.CrsxCzP1.js';
|
|
|
7
7
|
import '@vitest/snapshot';
|
|
8
8
|
import '@vitest/pretty-format';
|
|
9
9
|
import '@vitest/utils/diff';
|
|
10
|
-
import '@opentelemetry/api';
|
|
11
10
|
|
|
12
11
|
/** @experimental */
|
|
13
12
|
declare function runBaseTests(method: "run" | "collect", state: WorkerGlobalState, traces: Traces): Promise<void>;
|
package/dist/worker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { r as runBaseTests } from './chunks/base.
|
|
2
|
-
export { i as init } from './chunks/init.
|
|
1
|
+
export { r as runBaseTests } from './chunks/base.CDEiaaLz.js';
|
|
2
|
+
export { i as init } from './chunks/init.D-GGeAxo.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
5
|
import './chunks/index.CQwQ_SLL.js';
|
|
@@ -25,7 +25,7 @@ import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
|
25
25
|
import './chunks/date.Bq6ZW5rf.js';
|
|
26
26
|
import './chunks/evaluatedModules.Dg1zASAC.js';
|
|
27
27
|
import 'vite/module-runner';
|
|
28
|
-
import './chunks/startModuleRunner.
|
|
28
|
+
import './chunks/startModuleRunner.BEYtrq5Y.js';
|
|
29
29
|
import 'node:fs';
|
|
30
30
|
import 'node:module';
|
|
31
31
|
import 'node:url';
|
|
@@ -33,7 +33,7 @@ import './path.js';
|
|
|
33
33
|
import 'node:path';
|
|
34
34
|
import '@vitest/utils/serialize';
|
|
35
35
|
import './module-evaluator.js';
|
|
36
|
-
import './chunks/traces.
|
|
36
|
+
import './chunks/traces.U4xDYhzZ.js';
|
|
37
37
|
import '@vitest/mocker';
|
|
38
38
|
import 'node:perf_hooks';
|
|
39
39
|
import './chunks/inspector.CvyFGlXm.js';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as runBaseTests, s as setupEnvironment } from '../chunks/base.
|
|
2
|
-
import { w as workerInit } from '../chunks/init-forks.
|
|
1
|
+
import { r as runBaseTests, s as setupEnvironment } from '../chunks/base.CDEiaaLz.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-forks.FphdQhPI.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
5
|
import '../chunks/index.CQwQ_SLL.js';
|
|
@@ -23,17 +23,17 @@ import '@vitest/utils/offset';
|
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
25
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
26
|
-
import '../chunks/init.
|
|
26
|
+
import '../chunks/init.D-GGeAxo.js';
|
|
27
27
|
import 'node:fs';
|
|
28
28
|
import 'node:module';
|
|
29
29
|
import 'node:url';
|
|
30
30
|
import 'vite/module-runner';
|
|
31
|
-
import '../chunks/startModuleRunner.
|
|
31
|
+
import '../chunks/startModuleRunner.BEYtrq5Y.js';
|
|
32
32
|
import '../path.js';
|
|
33
33
|
import 'node:path';
|
|
34
34
|
import '@vitest/utils/serialize';
|
|
35
35
|
import '../module-evaluator.js';
|
|
36
|
-
import '../chunks/traces.
|
|
36
|
+
import '../chunks/traces.U4xDYhzZ.js';
|
|
37
37
|
import '@vitest/mocker';
|
|
38
38
|
import '../chunks/index.QWbK7rHY.js';
|
|
39
39
|
import 'node:console';
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as setupEnvironment, r as runBaseTests } from '../chunks/base.
|
|
2
|
-
import { w as workerInit } from '../chunks/init-threads.
|
|
1
|
+
import { s as setupEnvironment, r as runBaseTests } from '../chunks/base.CDEiaaLz.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-threads.BfqfWDNi.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
5
|
import '../chunks/index.CQwQ_SLL.js';
|
|
@@ -23,17 +23,17 @@ import '@vitest/utils/offset';
|
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
25
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
26
|
-
import '../chunks/init.
|
|
26
|
+
import '../chunks/init.D-GGeAxo.js';
|
|
27
27
|
import 'node:fs';
|
|
28
28
|
import 'node:module';
|
|
29
29
|
import 'node:url';
|
|
30
30
|
import 'vite/module-runner';
|
|
31
|
-
import '../chunks/startModuleRunner.
|
|
31
|
+
import '../chunks/startModuleRunner.BEYtrq5Y.js';
|
|
32
32
|
import '../path.js';
|
|
33
33
|
import 'node:path';
|
|
34
34
|
import '@vitest/utils/serialize';
|
|
35
35
|
import '../module-evaluator.js';
|
|
36
|
-
import '../chunks/traces.
|
|
36
|
+
import '../chunks/traces.U4xDYhzZ.js';
|
|
37
37
|
import '@vitest/mocker';
|
|
38
38
|
import '../chunks/index.QWbK7rHY.js';
|
|
39
39
|
import 'node:console';
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { w as workerInit } from '../chunks/init-forks.
|
|
2
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
3
|
-
import '../chunks/init.
|
|
1
|
+
import { w as workerInit } from '../chunks/init-forks.FphdQhPI.js';
|
|
2
|
+
import { r as runVmTests } from '../chunks/vm.tWlKAMXr.js';
|
|
3
|
+
import '../chunks/init.D-GGeAxo.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:module';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'vite/module-runner';
|
|
9
|
-
import '../chunks/startModuleRunner.
|
|
9
|
+
import '../chunks/startModuleRunner.BEYtrq5Y.js';
|
|
10
10
|
import '@vitest/utils/helpers';
|
|
11
11
|
import '../path.js';
|
|
12
12
|
import 'node:path';
|
|
13
13
|
import '@vitest/utils/serialize';
|
|
14
14
|
import '../module-evaluator.js';
|
|
15
15
|
import 'node:vm';
|
|
16
|
-
import '../chunks/traces.
|
|
16
|
+
import '../chunks/traces.U4xDYhzZ.js';
|
|
17
17
|
import '@vitest/mocker';
|
|
18
18
|
import '../chunks/index.QWbK7rHY.js';
|
|
19
19
|
import 'node:console';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { w as workerInit } from '../chunks/init-threads.
|
|
2
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
1
|
+
import { w as workerInit } from '../chunks/init-threads.BfqfWDNi.js';
|
|
2
|
+
import { r as runVmTests } from '../chunks/vm.tWlKAMXr.js';
|
|
3
3
|
import 'node:worker_threads';
|
|
4
|
-
import '../chunks/init.
|
|
4
|
+
import '../chunks/init.D-GGeAxo.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:module';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'pathe';
|
|
9
9
|
import 'vite/module-runner';
|
|
10
|
-
import '../chunks/startModuleRunner.
|
|
10
|
+
import '../chunks/startModuleRunner.BEYtrq5Y.js';
|
|
11
11
|
import '@vitest/utils/helpers';
|
|
12
12
|
import '../path.js';
|
|
13
13
|
import 'node:path';
|
|
14
14
|
import '@vitest/utils/serialize';
|
|
15
15
|
import '../module-evaluator.js';
|
|
16
16
|
import 'node:vm';
|
|
17
|
-
import '../chunks/traces.
|
|
17
|
+
import '../chunks/traces.U4xDYhzZ.js';
|
|
18
18
|
import '@vitest/mocker';
|
|
19
19
|
import '../chunks/index.QWbK7rHY.js';
|
|
20
20
|
import 'node:console';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.12",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -135,10 +135,10 @@
|
|
|
135
135
|
"@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
|
|
136
136
|
"happy-dom": "*",
|
|
137
137
|
"jsdom": "*",
|
|
138
|
-
"@vitest/browser-
|
|
139
|
-
"@vitest/browser-
|
|
140
|
-
"@vitest/browser-
|
|
141
|
-
"@vitest/ui": "4.0.
|
|
138
|
+
"@vitest/browser-playwright": "4.0.12",
|
|
139
|
+
"@vitest/browser-preview": "4.0.12",
|
|
140
|
+
"@vitest/browser-webdriverio": "4.0.12",
|
|
141
|
+
"@vitest/ui": "4.0.12"
|
|
142
142
|
},
|
|
143
143
|
"peerDependenciesMeta": {
|
|
144
144
|
"@edge-runtime/vm": {
|
|
@@ -186,13 +186,13 @@
|
|
|
186
186
|
"tinyrainbow": "^3.0.3",
|
|
187
187
|
"vite": "^6.0.0 || ^7.0.0",
|
|
188
188
|
"why-is-node-running": "^2.3.0",
|
|
189
|
-
"@vitest/expect": "4.0.
|
|
190
|
-
"@vitest/
|
|
191
|
-
"@vitest/
|
|
192
|
-
"@vitest/
|
|
193
|
-
"@vitest/
|
|
194
|
-
"@vitest/
|
|
195
|
-
"@vitest/
|
|
189
|
+
"@vitest/expect": "4.0.12",
|
|
190
|
+
"@vitest/mocker": "4.0.12",
|
|
191
|
+
"@vitest/pretty-format": "4.0.12",
|
|
192
|
+
"@vitest/snapshot": "4.0.12",
|
|
193
|
+
"@vitest/spy": "4.0.12",
|
|
194
|
+
"@vitest/utils": "4.0.12",
|
|
195
|
+
"@vitest/runner": "4.0.12"
|
|
196
196
|
},
|
|
197
197
|
"devDependencies": {
|
|
198
198
|
"@antfu/install-pkg": "^1.1.0",
|