vitest 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +4 -1
- package/dist/browser.js +1 -1
- package/dist/chunks/{integrations-globals.trMeEBob.js → integrations-globals.2J_Aii2q.js} +3 -3
- package/dist/chunks/{runtime-console.tUKE_2UJ.js → runtime-console.kbFEN7E-.js} +14 -6
- package/dist/chunks/{runtime-runBaseTests.SKlFOhuq.js → runtime-runBaseTests.3fVSWBsC.js} +11 -9
- package/dist/cli-wrapper.js +1 -1
- package/dist/cli.js +6 -6
- package/dist/config.cjs +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -0
- package/dist/coverage.d.ts +1 -1
- package/dist/environments.d.ts +1 -1
- package/dist/execute.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/node.d.ts +2 -2
- package/dist/node.js +6 -6
- package/dist/{reporters-P7C2ytIv.d.ts → reporters-LqC_WI4d.d.ts} +36 -8
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +3 -3
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +3 -3
- package/dist/{suite-a18diDsI.d.ts → suite-ynYMzeLu.d.ts} +1 -1
- package/dist/suite.d.ts +2 -2
- package/dist/vendor/{base.nhvUBzQY.js → base.BjeeYg4o.js} +1 -1
- package/dist/vendor/{cac.RvTIWZBK.js → cac.qnW6GNL2.js} +156 -74
- package/dist/vendor/{constants.K-Wf1PUy.js → constants.5J7I254_.js} +2 -1
- package/dist/vendor/{index.LNWuEnUT.js → index.-ITFwqG_.js} +1 -1
- package/dist/vendor/{index.BeX1oZht.js → index.12jbrDSD.js} +1 -1
- package/dist/vendor/{index.e9RDLAeW.js → index.kSaPvGW6.js} +32 -7
- package/dist/vendor/inspector.IgLX3ur5.js +54 -0
- package/dist/vendor/{setup-common.vyF1kALR.js → setup-common.A1De6efh.js} +8 -1
- package/dist/vendor/{utils.w0xgzP1h.js → utils.0uYuCbzo.js} +5 -2
- package/dist/vendor/{vi.JYQecGiw.js → vi.Fxjax7rQ.js} +21 -20
- package/dist/vendor/{vm.cAHVDF92.js → vm.I_IsyNig.js} +2 -2
- package/dist/worker.js +2 -39
- package/dist/workers/forks.js +2 -2
- package/dist/workers/runVmTests.js +10 -4
- package/dist/workers/threads.js +2 -2
- package/dist/workers/vmForks.js +7 -7
- package/dist/workers/vmThreads.js +7 -7
- package/dist/workers.d.ts +1 -1
- package/dist/workers.js +8 -7
- package/package.json +11 -11
|
@@ -6,17 +6,24 @@ let globalSetup = false;
|
|
|
6
6
|
async function setupCommonEnv(config) {
|
|
7
7
|
resetRunOnceCounter();
|
|
8
8
|
setupDefines(config.defines);
|
|
9
|
+
setupEnv(config.env);
|
|
9
10
|
if (globalSetup)
|
|
10
11
|
return;
|
|
11
12
|
globalSetup = true;
|
|
12
13
|
setSafeTimers();
|
|
13
14
|
if (config.globals)
|
|
14
|
-
(await import('../chunks/integrations-globals.
|
|
15
|
+
(await import('../chunks/integrations-globals.2J_Aii2q.js')).registerApiGlobally();
|
|
15
16
|
}
|
|
16
17
|
function setupDefines(defines) {
|
|
17
18
|
for (const key in defines)
|
|
18
19
|
globalThis[key] = defines[key];
|
|
19
20
|
}
|
|
21
|
+
function setupEnv(env) {
|
|
22
|
+
if (typeof process === "undefined")
|
|
23
|
+
return;
|
|
24
|
+
for (const key in env)
|
|
25
|
+
process.env[key] = env[key];
|
|
26
|
+
}
|
|
20
27
|
async function loadDiffConfig(config, executor) {
|
|
21
28
|
if (typeof config.diff !== "string")
|
|
22
29
|
return;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { parseRegexp } from '@vitest/utils';
|
|
2
2
|
|
|
3
|
+
var _a, _b;
|
|
3
4
|
const REGEXP_WRAP_PREFIX = "$$vitest:";
|
|
5
|
+
const processSend = (_a = process.send) == null ? void 0 : _a.bind(process);
|
|
6
|
+
const processOn = (_b = process.on) == null ? void 0 : _b.bind(process);
|
|
4
7
|
function createThreadsRpcOptions({ port }) {
|
|
5
8
|
return {
|
|
6
9
|
post: (v) => {
|
|
@@ -16,10 +19,10 @@ function createForksRpcOptions(nodeV8) {
|
|
|
16
19
|
serialize: nodeV8.serialize,
|
|
17
20
|
deserialize: (v) => nodeV8.deserialize(Buffer.from(v)),
|
|
18
21
|
post(v) {
|
|
19
|
-
|
|
22
|
+
processSend(v);
|
|
20
23
|
},
|
|
21
24
|
on(fn) {
|
|
22
|
-
|
|
25
|
+
processOn("message", (message, ...extras) => {
|
|
23
26
|
if (message == null ? void 0 : message.__tinypool_worker_message__)
|
|
24
27
|
return;
|
|
25
28
|
return fn(message, ...extras);
|
|
@@ -3330,10 +3330,11 @@ function createVitest() {
|
|
|
3330
3330
|
let _mockedDate = null;
|
|
3331
3331
|
let _config = null;
|
|
3332
3332
|
const workerState = getWorkerState();
|
|
3333
|
-
|
|
3333
|
+
let _timers;
|
|
3334
|
+
const timers = () => _timers || (_timers = new FakeTimers({
|
|
3334
3335
|
global: globalThis,
|
|
3335
3336
|
config: workerState.config.fakeTimers
|
|
3336
|
-
});
|
|
3337
|
+
}));
|
|
3337
3338
|
const _stubsGlobal = /* @__PURE__ */ new Map();
|
|
3338
3339
|
const _stubsEnv = /* @__PURE__ */ new Map();
|
|
3339
3340
|
const getImporter = () => {
|
|
@@ -3353,73 +3354,73 @@ function createVitest() {
|
|
|
3353
3354
|
}
|
|
3354
3355
|
}
|
|
3355
3356
|
if (config)
|
|
3356
|
-
|
|
3357
|
+
timers().configure({ ...workerState.config.fakeTimers, ...config });
|
|
3357
3358
|
else
|
|
3358
|
-
|
|
3359
|
-
|
|
3359
|
+
timers().configure(workerState.config.fakeTimers);
|
|
3360
|
+
timers().useFakeTimers();
|
|
3360
3361
|
return utils;
|
|
3361
3362
|
},
|
|
3362
3363
|
isFakeTimers() {
|
|
3363
|
-
return
|
|
3364
|
+
return timers().isFakeTimers();
|
|
3364
3365
|
},
|
|
3365
3366
|
useRealTimers() {
|
|
3366
|
-
|
|
3367
|
+
timers().useRealTimers();
|
|
3367
3368
|
_mockedDate = null;
|
|
3368
3369
|
return utils;
|
|
3369
3370
|
},
|
|
3370
3371
|
runOnlyPendingTimers() {
|
|
3371
|
-
|
|
3372
|
+
timers().runOnlyPendingTimers();
|
|
3372
3373
|
return utils;
|
|
3373
3374
|
},
|
|
3374
3375
|
async runOnlyPendingTimersAsync() {
|
|
3375
|
-
await
|
|
3376
|
+
await timers().runOnlyPendingTimersAsync();
|
|
3376
3377
|
return utils;
|
|
3377
3378
|
},
|
|
3378
3379
|
runAllTimers() {
|
|
3379
|
-
|
|
3380
|
+
timers().runAllTimers();
|
|
3380
3381
|
return utils;
|
|
3381
3382
|
},
|
|
3382
3383
|
async runAllTimersAsync() {
|
|
3383
|
-
await
|
|
3384
|
+
await timers().runAllTimersAsync();
|
|
3384
3385
|
return utils;
|
|
3385
3386
|
},
|
|
3386
3387
|
runAllTicks() {
|
|
3387
|
-
|
|
3388
|
+
timers().runAllTicks();
|
|
3388
3389
|
return utils;
|
|
3389
3390
|
},
|
|
3390
3391
|
advanceTimersByTime(ms) {
|
|
3391
|
-
|
|
3392
|
+
timers().advanceTimersByTime(ms);
|
|
3392
3393
|
return utils;
|
|
3393
3394
|
},
|
|
3394
3395
|
async advanceTimersByTimeAsync(ms) {
|
|
3395
|
-
await
|
|
3396
|
+
await timers().advanceTimersByTimeAsync(ms);
|
|
3396
3397
|
return utils;
|
|
3397
3398
|
},
|
|
3398
3399
|
advanceTimersToNextTimer() {
|
|
3399
|
-
|
|
3400
|
+
timers().advanceTimersToNextTimer();
|
|
3400
3401
|
return utils;
|
|
3401
3402
|
},
|
|
3402
3403
|
async advanceTimersToNextTimerAsync() {
|
|
3403
|
-
await
|
|
3404
|
+
await timers().advanceTimersToNextTimerAsync();
|
|
3404
3405
|
return utils;
|
|
3405
3406
|
},
|
|
3406
3407
|
getTimerCount() {
|
|
3407
|
-
return
|
|
3408
|
+
return timers().getTimerCount();
|
|
3408
3409
|
},
|
|
3409
3410
|
setSystemTime(time) {
|
|
3410
3411
|
const date = time instanceof Date ? time : new Date(time);
|
|
3411
3412
|
_mockedDate = date;
|
|
3412
|
-
|
|
3413
|
+
timers().setSystemTime(date);
|
|
3413
3414
|
return utils;
|
|
3414
3415
|
},
|
|
3415
3416
|
getMockedSystemTime() {
|
|
3416
3417
|
return _mockedDate;
|
|
3417
3418
|
},
|
|
3418
3419
|
getRealSystemTime() {
|
|
3419
|
-
return
|
|
3420
|
+
return timers().getRealSystemTime();
|
|
3420
3421
|
},
|
|
3421
3422
|
clearAllTimers() {
|
|
3422
|
-
|
|
3423
|
+
timers().clearAllTimers();
|
|
3423
3424
|
return utils;
|
|
3424
3425
|
},
|
|
3425
3426
|
// mocks
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import vm, { isContext } from 'node:vm';
|
|
2
2
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
3
3
|
import { dirname, basename, extname, normalize, join, resolve } from 'pathe';
|
|
4
|
-
import { createCustomConsole } from '../chunks/runtime-console.
|
|
4
|
+
import { createCustomConsole } from '../chunks/runtime-console.kbFEN7E-.js';
|
|
5
5
|
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.2_yoIC01.js';
|
|
6
6
|
import { distDir } from '../path.js';
|
|
7
7
|
import { dirname as dirname$1 } from 'node:path';
|
|
@@ -691,7 +691,7 @@ async function runVmTests(state) {
|
|
|
691
691
|
provideWorkerState(context, state);
|
|
692
692
|
context.process = process;
|
|
693
693
|
context.global = context;
|
|
694
|
-
context.console = state.config.disableConsoleIntercept ? console : createCustomConsole(
|
|
694
|
+
context.console = state.config.disableConsoleIntercept ? console : createCustomConsole();
|
|
695
695
|
context.setImmediate = setImmediate;
|
|
696
696
|
context.clearImmediate = clearImmediate;
|
|
697
697
|
const stubs = getDefaultRequestStubs(context);
|
package/dist/worker.js
CHANGED
|
@@ -4,10 +4,11 @@ import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client';
|
|
|
4
4
|
import { resolve, normalize } from 'pathe';
|
|
5
5
|
import { e as environments } from './vendor/index.GVFv9dZ0.js';
|
|
6
6
|
import { i as isChildProcess, s as setProcessTitle } from './vendor/base.Xt0Omgh7.js';
|
|
7
|
-
import {
|
|
7
|
+
import { s as setupInspect } from './vendor/inspector.IgLX3ur5.js';
|
|
8
8
|
import { c as createRuntimeRpc, a as rpcDone } from './vendor/rpc.joBhAkyK.js';
|
|
9
9
|
import 'node:console';
|
|
10
10
|
import '@vitest/utils';
|
|
11
|
+
import 'node:module';
|
|
11
12
|
import './vendor/index.8bPxjt7g.js';
|
|
12
13
|
import './vendor/global.CkGT_TMy.js';
|
|
13
14
|
|
|
@@ -50,44 +51,6 @@ async function loadEnvironment(ctx, rpc) {
|
|
|
50
51
|
return environment;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
const __require = createRequire(import.meta.url);
|
|
54
|
-
let inspector;
|
|
55
|
-
let session;
|
|
56
|
-
function setupInspect(ctx) {
|
|
57
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
58
|
-
const config = ctx.config;
|
|
59
|
-
const isEnabled = config.inspect || config.inspectBrk;
|
|
60
|
-
if (isEnabled) {
|
|
61
|
-
inspector = __require("node:inspector");
|
|
62
|
-
const isOpen = inspector.url() !== void 0;
|
|
63
|
-
if (!isOpen) {
|
|
64
|
-
inspector.open();
|
|
65
|
-
if (config.inspectBrk) {
|
|
66
|
-
inspector.waitForDebugger();
|
|
67
|
-
const firstTestFile = ctx.files[0];
|
|
68
|
-
if (firstTestFile) {
|
|
69
|
-
session = new inspector.Session();
|
|
70
|
-
session.connect();
|
|
71
|
-
session.post("Debugger.enable");
|
|
72
|
-
session.post("Debugger.setBreakpointByUrl", {
|
|
73
|
-
lineNumber: 0,
|
|
74
|
-
url: new URL(firstTestFile, import.meta.url).href
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
const isIsolatedSingleThread = config.pool === "threads" && ((_b = (_a = config.poolOptions) == null ? void 0 : _a.threads) == null ? void 0 : _b.isolate) === false && ((_d = (_c = config.poolOptions) == null ? void 0 : _c.threads) == null ? void 0 : _d.singleThread);
|
|
81
|
-
const isIsolatedSingleFork = config.pool === "forks" && ((_f = (_e = config.poolOptions) == null ? void 0 : _e.forks) == null ? void 0 : _f.isolate) === false && ((_h = (_g = config.poolOptions) == null ? void 0 : _g.forks) == null ? void 0 : _h.singleFork);
|
|
82
|
-
const keepOpen = config.watch && (isIsolatedSingleFork || isIsolatedSingleThread);
|
|
83
|
-
return function cleanup() {
|
|
84
|
-
if (isEnabled && !keepOpen && inspector) {
|
|
85
|
-
inspector.close();
|
|
86
|
-
session == null ? void 0 : session.disconnect();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
54
|
if (isChildProcess())
|
|
92
55
|
setProcessTitle(`vitest ${workerId}`);
|
|
93
56
|
async function run(ctx) {
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
|
-
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.
|
|
3
|
-
import { r as runBaseTests } from '../vendor/base.
|
|
2
|
+
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.0uYuCbzo.js';
|
|
3
|
+
import { r as runBaseTests } from '../vendor/base.BjeeYg4o.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'vite-node/client';
|
|
6
6
|
import '../vendor/global.CkGT_TMy.js';
|
|
@@ -6,11 +6,12 @@ import { performance } from 'node:perf_hooks';
|
|
|
6
6
|
import { startTests } from '@vitest/runner';
|
|
7
7
|
import { setupColors, createColors } from '@vitest/utils';
|
|
8
8
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
9
|
-
import { V as VitestSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from '../vendor/index.
|
|
9
|
+
import { V as VitestSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from '../vendor/index.-ITFwqG_.js';
|
|
10
10
|
import { a as startCoverageInsideWorker, s as stopCoverageInsideWorker } from '../vendor/coverage.E7sG1b3r.js';
|
|
11
11
|
import { g as getWorkerState } from '../vendor/global.CkGT_TMy.js';
|
|
12
|
-
import { V as VitestIndex } from '../vendor/index.
|
|
13
|
-
import { s as setupCommonEnv } from '../vendor/setup-common.
|
|
12
|
+
import { V as VitestIndex } from '../vendor/index.12jbrDSD.js';
|
|
13
|
+
import { s as setupCommonEnv } from '../vendor/setup-common.A1De6efh.js';
|
|
14
|
+
import { c as closeInspector } from '../vendor/inspector.IgLX3ur5.js';
|
|
14
15
|
import 'chai';
|
|
15
16
|
import '@vitest/snapshot/environment';
|
|
16
17
|
import 'pathe';
|
|
@@ -23,7 +24,7 @@ import '@vitest/runner/utils';
|
|
|
23
24
|
import '../vendor/index.ir9i0ywP.js';
|
|
24
25
|
import 'std-env';
|
|
25
26
|
import '../vendor/run-once.Olz_Zkd8.js';
|
|
26
|
-
import '../vendor/vi.
|
|
27
|
+
import '../vendor/vi.Fxjax7rQ.js';
|
|
27
28
|
import '../vendor/_commonjsHelpers.jjO7Zipk.js';
|
|
28
29
|
import '@vitest/expect';
|
|
29
30
|
import '@vitest/snapshot';
|
|
@@ -61,6 +62,11 @@ async function run(files, config, executor) {
|
|
|
61
62
|
if (config.chaiConfig)
|
|
62
63
|
setupChaiConfig(config.chaiConfig);
|
|
63
64
|
const runner = await resolveTestRunner(config, executor);
|
|
65
|
+
workerState.onCancel.then((reason) => {
|
|
66
|
+
var _a;
|
|
67
|
+
closeInspector(config);
|
|
68
|
+
(_a = runner.onCancel) == null ? void 0 : _a.call(runner, reason);
|
|
69
|
+
});
|
|
64
70
|
workerState.durations.prepare = performance.now() - workerState.durations.prepare;
|
|
65
71
|
const { vi } = VitestIndex;
|
|
66
72
|
for (const file of files) {
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as runBaseTests } from '../vendor/base.
|
|
2
|
-
import { a as createThreadsRpcOptions } from '../vendor/utils.
|
|
1
|
+
import { r as runBaseTests } from '../vendor/base.BjeeYg4o.js';
|
|
2
|
+
import { a as createThreadsRpcOptions } from '../vendor/utils.0uYuCbzo.js';
|
|
3
3
|
import 'vite-node/client';
|
|
4
4
|
import '../vendor/global.CkGT_TMy.js';
|
|
5
5
|
import '../vendor/execute.2_yoIC01.js';
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
|
-
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.
|
|
3
|
-
import { r as runVmTests } from '../vendor/vm.
|
|
2
|
+
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.0uYuCbzo.js';
|
|
3
|
+
import { r as runVmTests } from '../vendor/vm.I_IsyNig.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'node:vm';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'pathe';
|
|
8
|
-
import '../chunks/runtime-console.
|
|
8
|
+
import '../chunks/runtime-console.kbFEN7E-.js';
|
|
9
9
|
import 'node:stream';
|
|
10
10
|
import 'node:console';
|
|
11
11
|
import 'node:path';
|
|
12
12
|
import '../vendor/date.Ns1pGd_X.js';
|
|
13
|
+
import '../vendor/index.ir9i0ywP.js';
|
|
14
|
+
import 'std-env';
|
|
15
|
+
import '@vitest/runner/utils';
|
|
16
|
+
import '../vendor/global.CkGT_TMy.js';
|
|
13
17
|
import '../vendor/execute.2_yoIC01.js';
|
|
14
18
|
import 'vite-node/client';
|
|
15
19
|
import 'vite-node/utils';
|
|
@@ -19,10 +23,6 @@ import 'node:fs';
|
|
|
19
23
|
import '../vendor/base.Xt0Omgh7.js';
|
|
20
24
|
import 'node:module';
|
|
21
25
|
import 'vite-node/constants';
|
|
22
|
-
import '../vendor/index.ir9i0ywP.js';
|
|
23
|
-
import 'std-env';
|
|
24
|
-
import '@vitest/runner/utils';
|
|
25
|
-
import '../vendor/global.CkGT_TMy.js';
|
|
26
26
|
|
|
27
27
|
class ForksVmWorker {
|
|
28
28
|
getRpcOptions() {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { a as createThreadsRpcOptions } from '../vendor/utils.
|
|
2
|
-
import { r as runVmTests } from '../vendor/vm.
|
|
1
|
+
import { a as createThreadsRpcOptions } from '../vendor/utils.0uYuCbzo.js';
|
|
2
|
+
import { r as runVmTests } from '../vendor/vm.I_IsyNig.js';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import 'node:vm';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'pathe';
|
|
7
|
-
import '../chunks/runtime-console.
|
|
7
|
+
import '../chunks/runtime-console.kbFEN7E-.js';
|
|
8
8
|
import 'node:stream';
|
|
9
9
|
import 'node:console';
|
|
10
10
|
import 'node:path';
|
|
11
11
|
import '../vendor/date.Ns1pGd_X.js';
|
|
12
|
+
import '../vendor/index.ir9i0ywP.js';
|
|
13
|
+
import 'std-env';
|
|
14
|
+
import '@vitest/runner/utils';
|
|
15
|
+
import '../vendor/global.CkGT_TMy.js';
|
|
12
16
|
import '../vendor/execute.2_yoIC01.js';
|
|
13
17
|
import 'vite-node/client';
|
|
14
18
|
import 'vite-node/utils';
|
|
@@ -18,10 +22,6 @@ import 'node:fs';
|
|
|
18
22
|
import '../vendor/base.Xt0Omgh7.js';
|
|
19
23
|
import 'node:module';
|
|
20
24
|
import 'vite-node/constants';
|
|
21
|
-
import '../vendor/index.ir9i0ywP.js';
|
|
22
|
-
import 'std-env';
|
|
23
|
-
import '@vitest/runner/utils';
|
|
24
|
-
import '../vendor/global.CkGT_TMy.js';
|
|
25
25
|
|
|
26
26
|
class ThreadsVmWorker {
|
|
27
27
|
getRpcOptions(ctx) {
|
package/dist/workers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v8 from 'v8';
|
|
2
|
-
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-
|
|
2
|
+
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-LqC_WI4d.js';
|
|
3
3
|
import { Awaitable } from '@vitest/utils';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import '@vitest/runner';
|
package/dist/workers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './vendor/utils.
|
|
1
|
+
export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './vendor/utils.0uYuCbzo.js';
|
|
2
2
|
export { p as provideWorkerState } from './vendor/global.CkGT_TMy.js';
|
|
3
3
|
export { run as runVitestWorker } from './worker.js';
|
|
4
|
-
export { r as runVmTests } from './vendor/vm.
|
|
5
|
-
export { r as runBaseTests } from './vendor/base.
|
|
4
|
+
export { r as runVmTests } from './vendor/vm.I_IsyNig.js';
|
|
5
|
+
export { r as runBaseTests } from './vendor/base.BjeeYg4o.js';
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'tinypool';
|
|
@@ -11,20 +11,21 @@ import 'pathe';
|
|
|
11
11
|
import './vendor/index.GVFv9dZ0.js';
|
|
12
12
|
import 'node:console';
|
|
13
13
|
import './vendor/base.Xt0Omgh7.js';
|
|
14
|
+
import './vendor/inspector.IgLX3ur5.js';
|
|
14
15
|
import 'node:module';
|
|
15
16
|
import './vendor/rpc.joBhAkyK.js';
|
|
16
17
|
import './vendor/index.8bPxjt7g.js';
|
|
17
18
|
import 'node:vm';
|
|
18
|
-
import './chunks/runtime-console.
|
|
19
|
+
import './chunks/runtime-console.kbFEN7E-.js';
|
|
19
20
|
import 'node:stream';
|
|
20
21
|
import 'node:path';
|
|
21
22
|
import './vendor/date.Ns1pGd_X.js';
|
|
23
|
+
import './vendor/index.ir9i0ywP.js';
|
|
24
|
+
import 'std-env';
|
|
25
|
+
import '@vitest/runner/utils';
|
|
22
26
|
import './vendor/execute.2_yoIC01.js';
|
|
23
27
|
import 'vite-node/utils';
|
|
24
28
|
import '@vitest/utils/error';
|
|
25
29
|
import './path.js';
|
|
26
30
|
import 'node:fs';
|
|
27
31
|
import 'vite-node/constants';
|
|
28
|
-
import './vendor/index.ir9i0ywP.js';
|
|
29
|
-
import 'std-env';
|
|
30
|
-
import '@vitest/runner/utils';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"@types/node": "^18.0.0 || >=20.0.0",
|
|
116
116
|
"happy-dom": "*",
|
|
117
117
|
"jsdom": "*",
|
|
118
|
-
"@vitest/
|
|
119
|
-
"@vitest/
|
|
118
|
+
"@vitest/ui": "1.5.0",
|
|
119
|
+
"@vitest/browser": "1.5.0"
|
|
120
120
|
},
|
|
121
121
|
"peerDependenciesMeta": {
|
|
122
122
|
"@edge-runtime/vm": {
|
|
@@ -150,15 +150,15 @@
|
|
|
150
150
|
"std-env": "^3.5.0",
|
|
151
151
|
"strip-literal": "^2.0.0",
|
|
152
152
|
"tinybench": "^2.5.1",
|
|
153
|
-
"tinypool": "^0.8.
|
|
153
|
+
"tinypool": "^0.8.3",
|
|
154
154
|
"vite": "^5.0.0",
|
|
155
155
|
"why-is-node-running": "^2.2.2",
|
|
156
|
-
"@vitest/expect": "1.
|
|
157
|
-
"@vitest/
|
|
158
|
-
"@vitest/spy": "1.
|
|
159
|
-
"@vitest/
|
|
160
|
-
"
|
|
161
|
-
"
|
|
156
|
+
"@vitest/expect": "1.5.0",
|
|
157
|
+
"@vitest/snapshot": "1.5.0",
|
|
158
|
+
"@vitest/spy": "1.5.0",
|
|
159
|
+
"@vitest/utils": "1.5.0",
|
|
160
|
+
"vite-node": "1.5.0",
|
|
161
|
+
"@vitest/runner": "1.5.0"
|
|
162
162
|
},
|
|
163
163
|
"devDependencies": {
|
|
164
164
|
"@ampproject/remapping": "^2.2.1",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"find-up": "^6.3.0",
|
|
183
183
|
"flatted": "^3.2.9",
|
|
184
184
|
"get-tsconfig": "^4.7.3",
|
|
185
|
-
"happy-dom": "^
|
|
185
|
+
"happy-dom": "^14.3.10",
|
|
186
186
|
"jsdom": "^24.0.0",
|
|
187
187
|
"log-update": "^5.0.1",
|
|
188
188
|
"micromatch": "^4.0.5",
|