vitest 4.0.0-beta.10 → 4.0.0-beta.11
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/LICENSE.md +81 -0
- package/dist/browser.d.ts +9 -5
- package/dist/browser.js +8 -5
- package/dist/chunks/{benchmark.CJUa-Hsa.js → benchmark.LXhJ0F0X.js} +2 -2
- package/dist/chunks/{browser.d.yFAklsD1.d.ts → browser.d.Dx7DO_Ce.d.ts} +1 -1
- package/dist/chunks/{cac.DCxo_nSu.js → cac.elvK37c9.js} +8 -8
- package/dist/chunks/{cli-api.BJJXh9BV.js → cli-api.C7plPyhs.js} +64 -34
- package/dist/chunks/{console.7h5kHUIf.js → console.CiTi59Jy.js} +2 -2
- package/dist/chunks/{coverage.BCU-r2QL.js → coverage.CG6Uhorw.js} +14 -18
- package/dist/chunks/{globals.DG-S3xFe.js → globals.BjvYA-AD.js} +7 -5
- package/dist/chunks/{index.CMfqw92x.js → index.AZOjjqWP.js} +2 -2
- package/dist/chunks/{index.BjKEiSn0.js → index.BhY64fF0.js} +3 -3
- package/dist/chunks/{index.BIP7prJq.js → index.BwBttQPf.js} +67 -71
- package/dist/chunks/{moduleRunner.d.D9nBoC4p.d.ts → moduleRunner.d.BNa-CL9e.d.ts} +1 -1
- package/dist/chunks/{node.CyipiPvJ.js → node.BsdMi6DV.js} +2 -2
- package/dist/chunks/{plugin.d.BMVSnsGV.d.ts → plugin.d.C5phQR6o.d.ts} +1 -1
- package/dist/chunks/{reporters.d.BUWjmRYq.d.ts → reporters.d.CVzhsTvK.d.ts} +16 -11
- package/dist/chunks/{resolveSnapshotEnvironment.Bkht6Yor.js → resolveSnapshotEnvironment.DQVamkje.js} +5 -5
- package/dist/chunks/{rpc.BKr6mtxz.js → rpc.jKGRSXIH.js} +2 -2
- package/dist/chunks/{setup-common.uiMcU3cv.js → setup-common.NAWRuMRP.js} +3 -3
- package/dist/chunks/{startModuleRunner.p67gbNo9.js → startModuleRunner.oAuCu1yL.js} +27 -10
- package/dist/chunks/{test.BiqSKISg.js → test.KC5tH8hC.js} +6 -6
- package/dist/chunks/{typechecker.DB-fIMaH.js → typechecker.gXq-5P3n.js} +640 -7
- package/dist/chunks/{utils.D2R2NiOH.js → utils.DGKhod2J.js} +1 -1
- package/dist/chunks/{vi.ZPgvtBao.js → vi.CiJ0Laa6.js} +4 -2
- package/dist/chunks/{worker.d.BDsXGkwh.d.ts → worker.d.B_Fd9M_w.d.ts} +1 -76
- package/dist/{worker.js → chunks/worker.rPGLlbkW.js} +65 -32
- package/dist/cli.js +7 -5
- package/dist/config.d.ts +5 -5
- package/dist/coverage.d.ts +3 -3
- package/dist/coverage.js +3 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -5
- package/dist/module-evaluator.d.ts +2 -2
- package/dist/module-evaluator.js +1 -1
- package/dist/module-runner.js +5 -5
- package/dist/node.d.ts +12 -9
- package/dist/node.js +16 -12
- package/dist/reporters.d.ts +3 -3
- package/dist/reporters.js +7 -5
- package/dist/runners.js +8 -6
- package/dist/snapshot.js +3 -3
- package/dist/suite.js +4 -3
- package/dist/{chunks/base.Cjha6usc.js → worker-base.js} +88 -14
- package/dist/{chunks/vm.Ca0Y0W5f.js → worker-vm.js} +69 -8
- package/dist/workers/runVmTests.js +12 -9
- package/package.json +20 -19
- package/browser.d.ts +0 -1
- package/dist/chunks/moduleTransport.I-bgQy0S.js +0 -19
- package/dist/chunks/resolver.Bx6lE0iq.js +0 -119
- package/dist/chunks/utils.C2YI6McM.js +0 -52
- package/dist/chunks/worker.d.BNcX_2mH.d.ts +0 -8
- package/dist/workers/forks.js +0 -67
- package/dist/workers/threads.js +0 -55
- package/dist/workers/vmForks.js +0 -48
- package/dist/workers/vmThreads.js +0 -38
- package/dist/workers.d.ts +0 -38
- package/dist/workers.js +0 -48
- package/execute.d.ts +0 -1
- package/utils.d.ts +0 -1
- package/workers.d.ts +0 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { chai as chai$1, equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, ASYMMETRIC_MATCHERS_OBJECT, getState, setState, addCustomEqualityTesters, customMatchers } from '@vitest/expect';
|
|
2
2
|
import { getCurrentTest } from '@vitest/runner';
|
|
3
3
|
import { getNames, getTestName } from '@vitest/runner/utils';
|
|
4
|
-
import { g as getWorkerState, i as isChildProcess, w as waitForImportsToResolve, r as resetModules } from './utils.
|
|
5
|
-
import { getSafeTimers
|
|
4
|
+
import { g as getWorkerState, i as isChildProcess, w as waitForImportsToResolve, r as resetModules } from './utils.DGKhod2J.js';
|
|
5
|
+
import { getSafeTimers } from '@vitest/utils/timers';
|
|
6
6
|
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers.BFTU3MAI.js';
|
|
7
7
|
import { stripSnapshotIndentation, addSerializer, SnapshotClient } from '@vitest/snapshot';
|
|
8
8
|
import '@vitest/utils/error';
|
|
9
|
+
import { assertTypes, createSimpleStackTrace } from '@vitest/utils/helpers';
|
|
9
10
|
import { fn, spyOn, restoreAllMocks, resetAllMocks, clearAllMocks, isMockFunction } from '@vitest/spy';
|
|
11
|
+
import '@vitest/utils/offset';
|
|
10
12
|
import { parseSingleStack } from '@vitest/utils/source-map';
|
|
11
13
|
import { R as RealDate, r as resetDate, m as mockDate } from './date.-jtEtIeV.js';
|
|
12
14
|
|
|
@@ -7,80 +7,6 @@ import { SnapshotResult } from '@vitest/snapshot';
|
|
|
7
7
|
type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;
|
|
8
8
|
type ReturnType<T> = T extends (...args: any) => infer R ? R : never;
|
|
9
9
|
type PromisifyFn<T> = ReturnType<T> extends Promise<any> ? T : (...args: ArgumentsType<T>) => Promise<Awaited<ReturnType<T>>>;
|
|
10
|
-
type BirpcResolver = (name: string, resolved: (...args: unknown[]) => unknown) => ((...args: unknown[]) => unknown) | undefined;
|
|
11
|
-
interface ChannelOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Function to post raw message
|
|
14
|
-
*/
|
|
15
|
-
post: (data: any, ...extras: any[]) => any | Promise<any>;
|
|
16
|
-
/**
|
|
17
|
-
* Listener to receive raw message
|
|
18
|
-
*/
|
|
19
|
-
on: (fn: (data: any, ...extras: any[]) => void) => any | Promise<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Clear the listener when `$close` is called
|
|
22
|
-
*/
|
|
23
|
-
off?: (fn: (data: any, ...extras: any[]) => void) => any | Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* Custom function to serialize data
|
|
26
|
-
*
|
|
27
|
-
* by default it passes the data as-is
|
|
28
|
-
*/
|
|
29
|
-
serialize?: (data: any) => any;
|
|
30
|
-
/**
|
|
31
|
-
* Custom function to deserialize data
|
|
32
|
-
*
|
|
33
|
-
* by default it passes the data as-is
|
|
34
|
-
*/
|
|
35
|
-
deserialize?: (data: any) => any;
|
|
36
|
-
/**
|
|
37
|
-
* Call the methods with the RPC context or the original functions object
|
|
38
|
-
*/
|
|
39
|
-
bind?: 'rpc' | 'functions';
|
|
40
|
-
}
|
|
41
|
-
interface EventOptions<Remote> {
|
|
42
|
-
/**
|
|
43
|
-
* Names of remote functions that do not need response.
|
|
44
|
-
*/
|
|
45
|
-
eventNames?: (keyof Remote)[];
|
|
46
|
-
/**
|
|
47
|
-
* Maximum timeout for waiting for response, in milliseconds.
|
|
48
|
-
*
|
|
49
|
-
* @default 60_000
|
|
50
|
-
*/
|
|
51
|
-
timeout?: number;
|
|
52
|
-
/**
|
|
53
|
-
* Custom resolver to resolve function to be called
|
|
54
|
-
*
|
|
55
|
-
* For advanced use cases only
|
|
56
|
-
*/
|
|
57
|
-
resolver?: BirpcResolver;
|
|
58
|
-
/**
|
|
59
|
-
* Custom error handler
|
|
60
|
-
*
|
|
61
|
-
* @deprecated use `onFunctionError` and `onGeneralError` instead
|
|
62
|
-
*/
|
|
63
|
-
onError?: (error: Error, functionName: string, args: any[]) => boolean | void;
|
|
64
|
-
/**
|
|
65
|
-
* Custom error handler for errors occurred in local functions being called
|
|
66
|
-
*
|
|
67
|
-
* @returns `true` to prevent the error from being thrown
|
|
68
|
-
*/
|
|
69
|
-
onFunctionError?: (error: Error, functionName: string, args: any[]) => boolean | void;
|
|
70
|
-
/**
|
|
71
|
-
* Custom error handler for errors occurred during serialization or messsaging
|
|
72
|
-
*
|
|
73
|
-
* @returns `true` to prevent the error from being thrown
|
|
74
|
-
*/
|
|
75
|
-
onGeneralError?: (error: Error, functionName?: string, args?: any[]) => boolean | void;
|
|
76
|
-
/**
|
|
77
|
-
* Custom error handler for timeouts
|
|
78
|
-
*
|
|
79
|
-
* @returns `true` to prevent the error from being thrown
|
|
80
|
-
*/
|
|
81
|
-
onTimeoutError?: (functionName: string, args: any[]) => boolean | void;
|
|
82
|
-
}
|
|
83
|
-
type BirpcOptions<Remote> = EventOptions<Remote> & ChannelOptions;
|
|
84
10
|
type BirpcFn<T> = PromisifyFn<T> & {
|
|
85
11
|
/**
|
|
86
12
|
* Send event without asking for response
|
|
@@ -134,7 +60,6 @@ interface ContextTestEnvironment {
|
|
|
134
60
|
type TestExecutionMethod = "run" | "collect";
|
|
135
61
|
interface ContextRPC {
|
|
136
62
|
pool: string;
|
|
137
|
-
worker: string;
|
|
138
63
|
workerId: number;
|
|
139
64
|
config: SerializedConfig;
|
|
140
65
|
projectName: string;
|
|
@@ -172,4 +97,4 @@ interface WorkerGlobalState {
|
|
|
172
97
|
onFilterStackTrace?: (trace: string) => string;
|
|
173
98
|
}
|
|
174
99
|
|
|
175
|
-
export type {
|
|
100
|
+
export type { BirpcReturn as B, ContextRPC as C, RunnerRPC as R, TestExecutionMethod as T, WorkerGlobalState as W, RuntimeRPC as a, ContextTestEnvironment as b };
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { pathToFileURL } from 'node:url';
|
|
2
1
|
import { createStackString, parseStacktrace } from '@vitest/utils/source-map';
|
|
3
2
|
import { ModuleRunner, EvaluatedModules } from 'vite/module-runner';
|
|
4
3
|
import { readFileSync } from 'node:fs';
|
|
5
4
|
import { isBuiltin } from 'node:module';
|
|
5
|
+
import { pathToFileURL } from 'node:url';
|
|
6
6
|
import { resolve } from 'pathe';
|
|
7
|
-
import {
|
|
8
|
-
import { e as environments } from './
|
|
9
|
-
import { s as setupInspect } from './
|
|
10
|
-
import { c as createRuntimeRpc, a as rpcDone } from './
|
|
11
|
-
import { i as isChildProcess } from './
|
|
12
|
-
import { d as disposeInternalListeners } from './chunks/utils.C2YI6McM.js';
|
|
13
|
-
import 'node:console';
|
|
14
|
-
import '@vitest/utils';
|
|
15
|
-
import './chunks/index.Bgo3tNWt.js';
|
|
7
|
+
import { b as VitestTransport } from './startModuleRunner.oAuCu1yL.js';
|
|
8
|
+
import { e as environments } from './index.DIWhzsUh.js';
|
|
9
|
+
import { s as setupInspect } from './inspector.CvQD-Nie.js';
|
|
10
|
+
import { c as createRuntimeRpc, a as rpcDone } from './rpc.jKGRSXIH.js';
|
|
11
|
+
import { i as isChildProcess } from './utils.DGKhod2J.js';
|
|
16
12
|
|
|
17
13
|
function isBuiltinEnvironment(env) {
|
|
18
14
|
return env in environments;
|
|
@@ -66,13 +62,60 @@ async function loadEnvironment(ctx, rpc) {
|
|
|
66
62
|
};
|
|
67
63
|
}
|
|
68
64
|
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
|
|
65
|
+
const REGEXP_WRAP_PREFIX = "$$vitest:", processSend = process.send?.bind(process), processOn = process.on?.bind(process), processOff = process.off?.bind(process), dispose = [];
|
|
66
|
+
function createThreadsRpcOptions({ port }) {
|
|
67
|
+
return {
|
|
68
|
+
post: (v) => {
|
|
69
|
+
port.postMessage(v);
|
|
70
|
+
},
|
|
71
|
+
on: (fn) => {
|
|
72
|
+
port.addListener("message", fn);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
+
function disposeInternalListeners() {
|
|
77
|
+
for (const fn of dispose) try {
|
|
78
|
+
fn();
|
|
79
|
+
} catch {}
|
|
80
|
+
dispose.length = 0;
|
|
81
|
+
}
|
|
82
|
+
function createForksRpcOptions(nodeV8) {
|
|
83
|
+
return {
|
|
84
|
+
serialize: nodeV8.serialize,
|
|
85
|
+
deserialize: (v) => nodeV8.deserialize(Buffer.from(v)),
|
|
86
|
+
post(v) {
|
|
87
|
+
processSend(v);
|
|
88
|
+
},
|
|
89
|
+
on(fn) {
|
|
90
|
+
const handler = (message, ...extras) => {
|
|
91
|
+
if (!message?.__tinypool_worker_message__) return fn(message, ...extras);
|
|
92
|
+
};
|
|
93
|
+
processOn("message", handler), dispose.push(() => processOff("message", handler));
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Reverts the wrapping done by `utils/config-helpers.ts`'s `wrapSerializableConfig`
|
|
99
|
+
*/
|
|
100
|
+
function unwrapSerializableConfig(config) {
|
|
101
|
+
if (config.testNamePattern && typeof config.testNamePattern === "string") {
|
|
102
|
+
const testNamePattern = config.testNamePattern;
|
|
103
|
+
if (testNamePattern.startsWith(REGEXP_WRAP_PREFIX)) config.testNamePattern = parseRegexp(testNamePattern.slice(9));
|
|
104
|
+
}
|
|
105
|
+
if (config.defines && Array.isArray(config.defines.keys) && config.defines.original) {
|
|
106
|
+
const { keys, original } = config.defines, defines = {};
|
|
107
|
+
// Apply all keys from the original. Entries which had undefined value are missing from original now
|
|
108
|
+
for (const key of keys) defines[key] = original[key];
|
|
109
|
+
config.defines = defines;
|
|
110
|
+
}
|
|
111
|
+
return config;
|
|
112
|
+
}
|
|
113
|
+
function parseRegexp(input) {
|
|
114
|
+
// Parse input
|
|
115
|
+
// eslint-disable-next-line regexp/no-misleading-capturing-group
|
|
116
|
+
const m = input.match(/(\/?)(.+)\1([a-z]*)/i);
|
|
117
|
+
// Create the regular expression
|
|
118
|
+
return m ? m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3]) ? new RegExp(input) : new RegExp(m[2], m[3]) : /$^/;
|
|
76
119
|
}
|
|
77
120
|
|
|
78
121
|
if (isChildProcess()) {
|
|
@@ -83,9 +126,9 @@ if (isChildProcess()) {
|
|
|
83
126
|
process.exit();
|
|
84
127
|
});
|
|
85
128
|
}
|
|
86
|
-
const resolvingModules = /* @__PURE__ */ new Set();
|
|
129
|
+
const resolvingModules = /* @__PURE__ */ new Set(), globalListeners = /* @__PURE__ */ new Set();
|
|
87
130
|
// this is what every pool executes when running tests
|
|
88
|
-
async function execute(method, ctx) {
|
|
131
|
+
async function execute(method, ctx, worker) {
|
|
89
132
|
disposeInternalListeners();
|
|
90
133
|
const prepareStart = performance.now(), cleanups = [setupInspect(ctx)];
|
|
91
134
|
process.env.VITEST_WORKER_ID = String(ctx.workerId);
|
|
@@ -93,11 +136,6 @@ async function execute(method, ctx) {
|
|
|
93
136
|
process.env.VITEST_POOL_ID = String(poolId);
|
|
94
137
|
let environmentLoader;
|
|
95
138
|
try {
|
|
96
|
-
// worker is a filepath or URL to a file that exposes a default export with "getRpcOptions" and "runTests" methods
|
|
97
|
-
if (ctx.worker[0] === ".") throw new Error(`Path to the test runner cannot be relative, received "${ctx.worker}"`);
|
|
98
|
-
const file = ctx.worker.startsWith("file:") ? ctx.worker : pathToFileURL(ctx.worker).toString(), testRunnerModule = await import(file);
|
|
99
|
-
if (!testRunnerModule.default || typeof testRunnerModule.default !== "object") throw new TypeError(`Test worker object should be exposed as a default export. Received "${typeof testRunnerModule.default}"`);
|
|
100
|
-
const worker = testRunnerModule.default;
|
|
101
139
|
if (!worker.getRpcOptions || typeof worker.getRpcOptions !== "function") throw new TypeError(`Test worker should expose "getRpcOptions" method. Received "${typeof worker.getRpcOptions}".`);
|
|
102
140
|
// RPC is used to communicate between worker (be it a thread worker or child process or a custom implementation) and the main thread
|
|
103
141
|
const { rpc, onCancel } = createRuntimeRpc(worker.getRpcOptions(ctx));
|
|
@@ -122,7 +160,7 @@ async function execute(method, ctx) {
|
|
|
122
160
|
prepare: prepareStart
|
|
123
161
|
},
|
|
124
162
|
rpc,
|
|
125
|
-
onCleanup: (listener) =>
|
|
163
|
+
onCleanup: (listener) => globalListeners.add(listener),
|
|
126
164
|
providedContext: ctx.providedContext,
|
|
127
165
|
onFilterStackTrace(stack) {
|
|
128
166
|
return createStackString(parseStacktrace(stack));
|
|
@@ -135,14 +173,9 @@ async function execute(method, ctx) {
|
|
|
135
173
|
await Promise.all(cleanups.map((fn) => fn())), await rpcDone().catch(() => {}), environmentLoader?.close();
|
|
136
174
|
}
|
|
137
175
|
}
|
|
138
|
-
function run(ctx) {
|
|
139
|
-
return execute("run", ctx);
|
|
140
|
-
}
|
|
141
|
-
function collect(ctx) {
|
|
142
|
-
return execute("collect", ctx);
|
|
143
|
-
}
|
|
144
176
|
async function teardown() {
|
|
145
|
-
|
|
177
|
+
const promises = [...globalListeners].map((l) => l());
|
|
178
|
+
await Promise.all(promises);
|
|
146
179
|
}
|
|
147
180
|
function createImportMetaEnvProxy() {
|
|
148
181
|
// packages/vitest/src/node/plugins/index.ts:146
|
|
@@ -164,4 +197,4 @@ function createImportMetaEnvProxy() {
|
|
|
164
197
|
});
|
|
165
198
|
}
|
|
166
199
|
|
|
167
|
-
export {
|
|
200
|
+
export { createThreadsRpcOptions as a, createForksRpcOptions as c, execute as e, teardown as t, unwrapSerializableConfig as u };
|
package/dist/cli.js
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { c as createCLI } from './chunks/cac.
|
|
2
|
-
import '@vitest/utils';
|
|
1
|
+
import { c as createCLI } from './chunks/cac.elvK37c9.js';
|
|
2
|
+
import '@vitest/utils/helpers';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
6
|
import './chunks/constants.D_Q9UYh-.js';
|
|
7
|
-
import './chunks/index.
|
|
7
|
+
import './chunks/index.BwBttQPf.js';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
|
-
import './chunks/typechecker.
|
|
10
|
+
import './chunks/typechecker.gXq-5P3n.js';
|
|
11
11
|
import 'node:os';
|
|
12
12
|
import 'node:perf_hooks';
|
|
13
|
-
import '@vitest/utils/source-map';
|
|
14
13
|
import 'tinyexec';
|
|
15
14
|
import './path.js';
|
|
16
15
|
import 'node:path';
|
|
17
16
|
import 'node:url';
|
|
18
17
|
import '@vitest/runner/utils';
|
|
19
18
|
import 'vite';
|
|
19
|
+
import '@vitest/utils/source-map';
|
|
20
20
|
import './chunks/env.D4Lgay0q.js';
|
|
21
21
|
import 'std-env';
|
|
22
22
|
import 'node:util';
|
|
23
23
|
import 'node:console';
|
|
24
24
|
import 'node:stream';
|
|
25
|
+
import '@vitest/utils/display';
|
|
26
|
+
import '@vitest/utils/offset';
|
|
25
27
|
import 'node:module';
|
|
26
28
|
|
|
27
29
|
createCLI().parse();
|
package/dist/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.
|
|
5
|
-
import { V as VitestPluginContext } from './chunks/plugin.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.CVzhsTvK.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.CVzhsTvK.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.C5phQR6o.js';
|
|
6
6
|
import { F as FakeTimerInstallOpts } from './chunks/config.d.B_LthbQq.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
@@ -10,8 +10,8 @@ import './chunks/environment.d.BsToaxti.js';
|
|
|
10
10
|
import 'node:stream';
|
|
11
11
|
import '@vitest/mocker';
|
|
12
12
|
import '@vitest/utils/source-map';
|
|
13
|
-
import './chunks/browser.d.
|
|
14
|
-
import './chunks/worker.d.
|
|
13
|
+
import './chunks/browser.d.Dx7DO_Ce.js';
|
|
14
|
+
import './chunks/worker.d.B_Fd9M_w.js';
|
|
15
15
|
import 'vite/module-runner';
|
|
16
16
|
import '@vitest/snapshot';
|
|
17
17
|
import '@vitest/pretty-format';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.CVzhsTvK.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/environment.d.BsToaxti.js';
|
|
4
4
|
import '@vitest/runner';
|
|
@@ -6,8 +6,8 @@ import '@vitest/utils';
|
|
|
6
6
|
import 'node:stream';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
|
-
import './chunks/browser.d.
|
|
10
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/browser.d.Dx7DO_Ce.js';
|
|
10
|
+
import './chunks/worker.d.B_Fd9M_w.js';
|
|
11
11
|
import 'vite/module-runner';
|
|
12
12
|
import './chunks/config.d.B_LthbQq.js';
|
|
13
13
|
import '@vitest/pretty-format';
|
package/dist/coverage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as BaseCoverageProvider } from './chunks/coverage.
|
|
1
|
+
export { B as BaseCoverageProvider } from './chunks/coverage.CG6Uhorw.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:path';
|
|
4
|
-
import '@vitest/utils';
|
|
4
|
+
import '@vitest/utils/helpers';
|
|
5
5
|
import 'pathe';
|
|
6
6
|
import 'picomatch';
|
|
7
7
|
import 'tinyglobby';
|
|
@@ -24,9 +24,8 @@ import 'node:tty';
|
|
|
24
24
|
import 'node:events';
|
|
25
25
|
import './chunks/index.Bgo3tNWt.js';
|
|
26
26
|
import 'tinypool';
|
|
27
|
-
import './chunks/typechecker.
|
|
27
|
+
import './chunks/typechecker.gXq-5P3n.js';
|
|
28
28
|
import 'node:perf_hooks';
|
|
29
|
-
import '@vitest/utils/source-map';
|
|
30
29
|
import 'tinyexec';
|
|
31
30
|
import './path.js';
|
|
32
31
|
import '@vitest/runner/utils';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as SerializedTestSpecification } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
1
|
+
import { S as SerializedTestSpecification } from './chunks/browser.d.Dx7DO_Ce.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.Dx7DO_Ce.js';
|
|
3
3
|
import './chunks/global.d.BK3X7FW1.js';
|
|
4
4
|
import { File, TestAnnotation, TaskResultPack, TaskEventPack, TaskPopulated } from '@vitest/runner';
|
|
5
5
|
export { CancelReason, HookCleanupCallback, HookListener, 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, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
6
|
-
import {
|
|
7
|
-
export { C as ContextRPC,
|
|
6
|
+
import { B as BirpcReturn } from './chunks/worker.d.B_Fd9M_w.js';
|
|
7
|
+
export { C as ContextRPC, b as ContextTestEnvironment, R as RunnerRPC, a as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.B_Fd9M_w.js';
|
|
8
8
|
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.B_LthbQq.js';
|
|
9
9
|
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.d.B_LthbQq.js';
|
|
10
10
|
import { b as Awaitable, U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/environment.d.BsToaxti.js';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.
|
|
2
|
-
export { b as bench } from './chunks/benchmark.
|
|
3
|
-
export { a as assertType } from './chunks/index.
|
|
1
|
+
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.CiJ0Laa6.js';
|
|
2
|
+
export { b as bench } from './chunks/benchmark.LXhJ0F0X.js';
|
|
3
|
+
export { a as assertType } from './chunks/index.AZOjjqWP.js';
|
|
4
4
|
export { expectTypeOf } from 'expect-type';
|
|
5
5
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
6
6
|
export { EvaluatedModules } from 'vite/module-runner';
|
|
7
7
|
export { chai } from '@vitest/expect';
|
|
8
8
|
import '@vitest/runner/utils';
|
|
9
|
-
import './chunks/utils.
|
|
10
|
-
import '@vitest/utils';
|
|
9
|
+
import './chunks/utils.DGKhod2J.js';
|
|
10
|
+
import '@vitest/utils/timers';
|
|
11
11
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/utils/error';
|
|
14
|
+
import '@vitest/utils/helpers';
|
|
14
15
|
import '@vitest/spy';
|
|
16
|
+
import '@vitest/utils/offset';
|
|
15
17
|
import '@vitest/utils/source-map';
|
|
16
18
|
import './chunks/date.-jtEtIeV.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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.BNa-CL9e.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/worker.d.
|
|
5
|
+
import './chunks/worker.d.B_Fd9M_w.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import './chunks/config.d.B_LthbQq.js';
|
|
8
8
|
import '@vitest/pretty-format';
|
package/dist/module-evaluator.js
CHANGED
|
@@ -162,7 +162,7 @@ class VitestModuleEvaluator {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
createRequire(filename) {
|
|
165
|
-
return filename
|
|
165
|
+
return filename[0] === "\0" || !isAbsolute(filename) ? () => ({}) : this.vm ? this.vm.externalModulesExecutor.createRequire(filename) : createRequire(filename);
|
|
166
166
|
}
|
|
167
167
|
shouldInterop(path, mod) {
|
|
168
168
|
// never interop ESM modules
|
package/dist/module-runner.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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.
|
|
3
|
-
export { g as getWorkerState } from './chunks/utils.
|
|
2
|
+
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.oAuCu1yL.js';
|
|
3
|
+
export { g as getWorkerState } from './chunks/utils.DGKhod2J.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
9
|
import 'node:fs';
|
|
10
|
-
import '@vitest/utils';
|
|
10
|
+
import '@vitest/utils/helpers';
|
|
11
11
|
import './path.js';
|
|
12
12
|
import 'node:path';
|
|
13
|
-
import '@vitest/utils/
|
|
13
|
+
import '@vitest/utils/serialize';
|
|
14
14
|
import '@vitest/mocker';
|
|
15
|
-
import '
|
|
15
|
+
import '@vitest/utils/timers';
|
package/dist/node.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ 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 Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.
|
|
7
|
-
export { al as BaseCoverageOptions, G as BenchmarkUserOptions, K as BrowserBuiltinProvider, N as BrowserCommand, Q as BrowserCommandContext, X as BrowserConfigOptions, Y as BrowserInstanceOption, Z as BrowserModuleMocker, _ as BrowserOrchestrator, $ as BrowserProvider, a0 as BrowserProviderOption, a1 as BrowserScript, a2 as BrowserServerState, a3 as BrowserServerStateSession, aa as BuiltinEnvironment, a4 as CDPSession, ab as CSSModuleScopeStrategy, am as CoverageIstanbulOptions, an as CoverageOptions, ao as CoverageProvider, ap as CoverageProviderModule, aq as CoverageReporter, c as CoverageV8Options, ar as CustomProviderOptions, ac as DepsOptimizationOptions, ad as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a5 as ParentProjectBrowser, ae as PoolOptions, a6 as ProjectBrowser, af as ProjectConfig, b as ReportContext, at as ReportedHookContext, au as Reporter, ah as ResolveSnapshotPathHandler, ai as ResolveSnapshotPathHandlerContext, a7 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ag as ResolvedProjectConfig, S as SerializedTestProject, p as TaskOptions, q as TestCase, r as TestCollection, s as TestDiagnostic, t as TestModule, u as TestModuleState, v as TestResult, w as TestResultFailed, x as TestResultPassed, y as TestResultSkipped, av as TestRunEndReason, as as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, a8 as ToMatchScreenshotComparators, a9 as ToMatchScreenshotOptions, aj as TypecheckConfig, U as UserWorkspaceConfig, ak as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.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 Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.CVzhsTvK.js';
|
|
7
|
+
export { al as BaseCoverageOptions, G as BenchmarkUserOptions, K as BrowserBuiltinProvider, N as BrowserCommand, Q as BrowserCommandContext, X as BrowserConfigOptions, Y as BrowserInstanceOption, Z as BrowserModuleMocker, _ as BrowserOrchestrator, $ as BrowserProvider, a0 as BrowserProviderOption, a1 as BrowserScript, a2 as BrowserServerState, a3 as BrowserServerStateSession, aa as BuiltinEnvironment, a4 as CDPSession, ab as CSSModuleScopeStrategy, am as CoverageIstanbulOptions, an as CoverageOptions, ao as CoverageProvider, ap as CoverageProviderModule, aq as CoverageReporter, c as CoverageV8Options, ar as CustomProviderOptions, ac as DepsOptimizationOptions, ad as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a5 as ParentProjectBrowser, ae as PoolOptions, a6 as ProjectBrowser, af as ProjectConfig, b as ReportContext, at as ReportedHookContext, au as Reporter, ah as ResolveSnapshotPathHandler, ai as ResolveSnapshotPathHandlerContext, a7 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ag as ResolvedProjectConfig, S as SerializedTestProject, p as TaskOptions, q as TestCase, r as TestCollection, s as TestDiagnostic, t as TestModule, u as TestModuleState, v as TestResult, w as TestResultFailed, x as TestResultPassed, y as TestResultSkipped, av as TestRunEndReason, as as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, a8 as ToMatchScreenshotComparators, a9 as ToMatchScreenshotOptions, aj as TypecheckConfig, U as UserWorkspaceConfig, ak as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.CVzhsTvK.js';
|
|
8
8
|
import { Awaitable } from '@vitest/utils';
|
|
9
9
|
export { SerializedError } from '@vitest/utils';
|
|
10
|
-
import {
|
|
11
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
10
|
+
import { a as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.B_Fd9M_w.js';
|
|
11
|
+
export { T as TestExecutionType } from './chunks/worker.d.B_Fd9M_w.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
14
|
-
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.C5phQR6o.js';
|
|
14
|
+
import { MessagePort } from 'node:worker_threads';
|
|
15
15
|
import { Debugger } from 'debug';
|
|
16
16
|
import './chunks/global.d.BK3X7FW1.js';
|
|
17
17
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
@@ -20,7 +20,7 @@ export { generateFileHash } from '@vitest/runner/utils';
|
|
|
20
20
|
import './chunks/environment.d.BsToaxti.js';
|
|
21
21
|
import '@vitest/mocker';
|
|
22
22
|
import '@vitest/utils/source-map';
|
|
23
|
-
import './chunks/browser.d.
|
|
23
|
+
import './chunks/browser.d.Dx7DO_Ce.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
|
26
26
|
import '@vitest/utils/diff';
|
|
@@ -33,7 +33,6 @@ import '@vitest/snapshot/manager';
|
|
|
33
33
|
import 'node:fs';
|
|
34
34
|
import 'node:console';
|
|
35
35
|
import 'vite/module-runner';
|
|
36
|
-
import 'node:worker_threads';
|
|
37
36
|
|
|
38
37
|
type RawErrsMap = Map<string, TscErrorInfo[]>;
|
|
39
38
|
interface TscErrorInfo {
|
|
@@ -152,6 +151,10 @@ declare class BaseSequencer implements TestSequencer {
|
|
|
152
151
|
|
|
153
152
|
declare function registerConsoleShortcuts(ctx: Vitest, stdin: NodeJS.ReadStream | undefined, stdout: NodeJS.WriteStream | Writable): () => void;
|
|
154
153
|
|
|
154
|
+
interface WorkerContext extends ContextRPC {
|
|
155
|
+
port: MessagePort;
|
|
156
|
+
}
|
|
157
|
+
|
|
155
158
|
declare function createViteLogger(console: Logger, level?: LogLevel, options?: LoggerOptions): Logger$1;
|
|
156
159
|
|
|
157
160
|
declare const rootDir: string;
|
|
@@ -166,4 +169,4 @@ declare const createViteServer: typeof vite.createServer;
|
|
|
166
169
|
declare const rolldownVersion: string | undefined;
|
|
167
170
|
|
|
168
171
|
export { ApiConfig, BaseSequencer, GitNotFoundError, Pool, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, Vitest, VitestOptions, VitestPlugin, VitestRunMode, createDebugger, createMethodsRPC, createViteLogger, createViteServer, createVitest, distDir, escapeTestName, getFilePoolName, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rolldownVersion, rootDir, startVitest, version };
|
|
169
|
-
export type { CliParseOptions, ProcessPool, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget };
|
|
172
|
+
export type { CliParseOptions, ProcessPool, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget, WorkerContext };
|
package/dist/node.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, h as createDebugger, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
7
|
-
import { r as resolveConfig$2 } from './chunks/coverage.
|
|
8
|
-
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.
|
|
9
|
-
import { slash, deepClone } from '@vitest/utils';
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.C7plPyhs.js';
|
|
5
|
+
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, h as createDebugger, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.C7plPyhs.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.elvK37c9.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.CG6Uhorw.js';
|
|
8
|
+
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.CG6Uhorw.js';
|
|
9
|
+
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
10
|
import { f as findUp } from './chunks/index.X0nbfr6-.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
12
12
|
import { c as configFiles } from './chunks/constants.D_Q9UYh-.js';
|
|
@@ -18,18 +18,20 @@ import 'node:path';
|
|
|
18
18
|
import 'node:os';
|
|
19
19
|
import '@vitest/snapshot/manager';
|
|
20
20
|
import './chunks/index.Bgo3tNWt.js';
|
|
21
|
-
import './chunks/index.
|
|
21
|
+
import './chunks/index.BwBttQPf.js';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import './chunks/typechecker.
|
|
23
|
+
import './chunks/typechecker.gXq-5P3n.js';
|
|
24
24
|
import 'node:perf_hooks';
|
|
25
|
-
import '@vitest/utils/source-map';
|
|
26
25
|
import 'tinyexec';
|
|
26
|
+
import '@vitest/utils/source-map';
|
|
27
27
|
import 'tinyrainbow';
|
|
28
28
|
import './chunks/env.D4Lgay0q.js';
|
|
29
29
|
import 'std-env';
|
|
30
30
|
import 'node:util';
|
|
31
31
|
import 'node:console';
|
|
32
32
|
import 'node:stream';
|
|
33
|
+
import '@vitest/utils/display';
|
|
34
|
+
import '@vitest/utils/offset';
|
|
33
35
|
import 'node:module';
|
|
34
36
|
import 'events';
|
|
35
37
|
import 'https';
|
|
@@ -46,17 +48,19 @@ import 'node:crypto';
|
|
|
46
48
|
import 'debug';
|
|
47
49
|
import '#module-evaluator';
|
|
48
50
|
import 'vite/module-runner';
|
|
51
|
+
import '@vitest/utils/highlight';
|
|
49
52
|
import 'node:url';
|
|
50
53
|
import 'picomatch';
|
|
51
54
|
import 'tinyglobby';
|
|
52
55
|
import 'magic-string';
|
|
53
56
|
import '@vitest/mocker/node';
|
|
54
57
|
import './chunks/defaults.CXFFjsi8.js';
|
|
55
|
-
import '
|
|
58
|
+
import '@vitest/utils/constants';
|
|
59
|
+
import '@vitest/utils/resolver';
|
|
56
60
|
import 'es-module-lexer';
|
|
57
|
-
import './chunks/index.
|
|
61
|
+
import './chunks/index.BhY64fF0.js';
|
|
58
62
|
import 'node:assert';
|
|
59
|
-
import '@vitest/utils/
|
|
63
|
+
import '@vitest/utils/serialize';
|
|
60
64
|
import 'node:readline';
|
|
61
65
|
import 'node:process';
|
|
62
66
|
import 'node:v8';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aJ as BaseReporter, aK as BenchmarkBuiltinReporters, aw as BenchmarkReporter, ax as BenchmarkReportsMap, aL as BuiltinReporterOptions, aM as BuiltinReporters, ay as DefaultReporter, az as DotReporter, aA as GithubActionsReporter, aB as HangingProcessReporter, aD as JUnitReporter, aN as JsonAssertionResult, aC as JsonReporter, aO as JsonTestResult, aP as JsonTestResults, at as ReportedHookContext, au as Reporter, aE as ReportersMap, aF as TapFlatReporter, aG as TapReporter, av as TestRunEndReason, aH as VerboseBenchmarkReporter, aI as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aJ as BaseReporter, aK as BenchmarkBuiltinReporters, aw as BenchmarkReporter, ax as BenchmarkReportsMap, aL as BuiltinReporterOptions, aM as BuiltinReporters, ay as DefaultReporter, az as DotReporter, aA as GithubActionsReporter, aB as HangingProcessReporter, aD as JUnitReporter, aN as JsonAssertionResult, aC as JsonReporter, aO as JsonTestResult, aP as JsonTestResults, at as ReportedHookContext, au as Reporter, aE as ReportersMap, aF as TapFlatReporter, aG as TapReporter, av as TestRunEndReason, aH as VerboseBenchmarkReporter, aI as VerboseReporter } from './chunks/reporters.d.CVzhsTvK.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/environment.d.BsToaxti.js';
|
|
@@ -6,8 +6,8 @@ import 'node:stream';
|
|
|
6
6
|
import 'vite';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
|
-
import './chunks/browser.d.
|
|
10
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/browser.d.Dx7DO_Ce.js';
|
|
10
|
+
import './chunks/worker.d.B_Fd9M_w.js';
|
|
11
11
|
import 'vite/module-runner';
|
|
12
12
|
import './chunks/config.d.B_LthbQq.js';
|
|
13
13
|
import '@vitest/pretty-format';
|
package/dist/reporters.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
export { 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, V as VerboseReporter } from './chunks/index.
|
|
2
|
-
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.
|
|
1
|
+
export { 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, V as VerboseReporter } from './chunks/index.BwBttQPf.js';
|
|
2
|
+
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.BhY64fF0.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
|
6
|
-
import './chunks/typechecker.
|
|
6
|
+
import './chunks/typechecker.gXq-5P3n.js';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:perf_hooks';
|
|
9
|
-
import '@vitest/utils/source-map';
|
|
10
9
|
import 'tinyexec';
|
|
11
10
|
import './path.js';
|
|
12
11
|
import 'node:path';
|
|
13
12
|
import 'node:url';
|
|
14
13
|
import '@vitest/runner/utils';
|
|
15
|
-
import '@vitest/utils';
|
|
14
|
+
import '@vitest/utils/helpers';
|
|
16
15
|
import 'vite';
|
|
16
|
+
import '@vitest/utils/source-map';
|
|
17
17
|
import 'tinyrainbow';
|
|
18
18
|
import './chunks/env.D4Lgay0q.js';
|
|
19
19
|
import 'std-env';
|
|
20
20
|
import 'node:util';
|
|
21
21
|
import 'node:console';
|
|
22
22
|
import 'node:stream';
|
|
23
|
+
import '@vitest/utils/display';
|
|
24
|
+
import '@vitest/utils/offset';
|
|
23
25
|
import 'node:module';
|