vitest 2.0.0-beta.1 → 2.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 +1 -1
- package/dist/browser.d.ts +22 -2
- package/dist/browser.js +5 -3
- package/dist/chunks/{integrations-globals.B5Jl0grA.js → integrations-globals.CC2ed6Py.js} +9 -9
- package/dist/chunks/{node-git.CCI8evVZ.js → node-git.ZtkbKc8u.js} +14 -15
- package/dist/chunks/{runtime-console.CUES-L8X.js → runtime-console.Ckl0vEQr.js} +76 -31
- package/dist/chunks/{runtime-runBaseTests._dXkRAZc.js → runtime-runBaseTests.BXW_BJeO.js} +40 -32
- package/dist/cli.js +3 -3
- package/dist/config.cjs +43 -20
- package/dist/config.d.ts +2 -2
- package/dist/config.js +43 -21
- package/dist/coverage.d.ts +4 -4
- package/dist/coverage.js +125 -37
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/dist/execute.d.ts +2 -2
- package/dist/execute.js +2 -2
- package/dist/index.d.ts +20 -30
- package/dist/index.js +9 -9
- package/dist/node.d.ts +22 -9
- package/dist/node.js +25 -15
- package/dist/path.js +4 -1
- package/dist/{reporters-MGvT5U9f.d.ts → reporters-fiIq_dT9.d.ts} +310 -148
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +8 -8
- package/dist/runners.d.ts +4 -2
- package/dist/runners.js +103 -57
- package/dist/{suite-8WAe-urM.d.ts → suite-D4aoU9rI.d.ts} +1 -1
- package/dist/suite.d.ts +2 -2
- package/dist/suite.js +2 -2
- package/dist/utils.d.ts +1 -5
- package/dist/utils.js +1 -6
- package/dist/vendor/{base.VFkIJ66g.js → base.C2DbLEfT.js} +4 -3
- package/dist/vendor/{base._gnK9Slw.js → base.CTYV4Gnz.js} +24 -17
- package/dist/vendor/{benchmark.BNLebNi5.js → benchmark.CMp8QfyL.js} +13 -14
- package/dist/vendor/{cac.DzKZaJu2.js → cac.BcJW7n2j.js} +127 -51
- package/dist/vendor/{cli-api.DTeni0Qq.js → cli-api.C8t8m4__.js} +2771 -1711
- package/dist/vendor/{constants.5SOfHUj0.js → constants.BWsVtsAj.js} +6 -22
- package/dist/vendor/{coverage.ChSqD-qS.js → coverage.BhYSDdTT.js} +27 -11
- package/dist/vendor/{date.BKM1wewY.js → date.W2xKR2qe.js} +5 -3
- package/dist/vendor/{execute.CLLNVNnK.js → execute.T3gg2ZK6.js} +177 -63
- package/dist/vendor/{index.BfoZyXD1.js → index.-dbR4KUi.js} +17 -9
- package/dist/vendor/{index.CRxYS9H3.js → index.BC5zhX9y.js} +1201 -491
- package/dist/vendor/{index.DP-km6lF.js → index.BMmMjLIQ.js} +64 -51
- package/dist/vendor/{index._7XLd8Kd.js → index.C9Thslzw.js} +2 -1
- package/dist/vendor/{index.CmILuxzC.js → index.CQJ2m700.js} +3 -3
- package/dist/vendor/{index.DeR1hhfY.js → index.D4nqnQWz.js} +71 -74
- package/dist/vendor/{rpc.DRDE9Pu1.js → rpc.BGx7q_k2.js} +30 -19
- package/dist/vendor/{run-once.DLomgGUH.js → run-once.Db8Hgq9X.js} +2 -1
- package/dist/vendor/{setup-common.XeoZAW8t.js → setup-common.uqZOEWuR.js} +30 -15
- package/dist/vendor/spy.Cf_4R5Oe.js +22 -0
- package/dist/vendor/{tasks.WC7M-K-v.js → tasks.DhVtQBtW.js} +3 -1
- package/dist/vendor/{utils.D5gGkwyH.js → utils.DSO2UK15.js} +41 -26
- package/dist/vendor/{utils.CUjzkRH7.js → utils.DkxLWvS1.js} +12 -5
- package/dist/vendor/{vi.ClD3hi7L.js → vi.BPjl8cAZ.js} +350 -166
- package/dist/vendor/{vm.Bi3bljci.js → vm.CycSoHnJ.js} +151 -86
- package/dist/worker.js +31 -15
- package/dist/workers/forks.js +4 -4
- package/dist/workers/runVmTests.js +14 -13
- package/dist/workers/threads.js +4 -4
- package/dist/workers/vmForks.js +6 -6
- package/dist/workers/vmThreads.js +6 -6
- package/dist/workers.d.ts +2 -2
- package/dist/workers.js +9 -9
- package/package.json +22 -22
- package/suppress-warnings.cjs +2 -4
package/dist/node.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.
|
|
2
|
-
export { p as parseCLI } from './vendor/cac.
|
|
3
|
-
|
|
1
|
+
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, g as getFilePoolName, r as registerConsoleShortcuts, e as resolveApiServerConfig, f as resolveConfig, d as resolveFsAllow, s as startVitest } from './vendor/cli-api.C8t8m4__.js';
|
|
2
|
+
export { p as parseCLI } from './vendor/cac.BcJW7n2j.js';
|
|
3
|
+
import createDebug from 'debug';
|
|
4
|
+
export { distDir, rootDir } from './path.js';
|
|
5
|
+
export { e as BaseSequencer } from './vendor/index.BC5zhX9y.js';
|
|
6
|
+
export { createServer, isFileServingAllowed } from 'vite';
|
|
4
7
|
import 'pathe';
|
|
5
|
-
import './vendor/constants.
|
|
6
|
-
import './vendor/coverage.
|
|
7
|
-
import './vendor/index.
|
|
8
|
+
import './vendor/constants.BWsVtsAj.js';
|
|
9
|
+
import './vendor/coverage.BhYSDdTT.js';
|
|
10
|
+
import './vendor/index.D4nqnQWz.js';
|
|
8
11
|
import 'node:console';
|
|
9
|
-
import 'vite';
|
|
10
12
|
import 'node:path';
|
|
11
13
|
import 'node:url';
|
|
12
14
|
import 'node:process';
|
|
@@ -15,8 +17,8 @@ import 'node:worker_threads';
|
|
|
15
17
|
import './vendor/_commonjsHelpers.BFTU3MAI.js';
|
|
16
18
|
import 'os';
|
|
17
19
|
import 'path';
|
|
18
|
-
import './vendor/index.DP-km6lF.js';
|
|
19
20
|
import 'util';
|
|
21
|
+
import './vendor/index.BMmMjLIQ.js';
|
|
20
22
|
import 'stream';
|
|
21
23
|
import 'events';
|
|
22
24
|
import 'fs';
|
|
@@ -25,11 +27,10 @@ import 'vite-node/client';
|
|
|
25
27
|
import '@vitest/snapshot/manager';
|
|
26
28
|
import 'vite-node/server';
|
|
27
29
|
import '@vitest/runner/utils';
|
|
28
|
-
import './vendor/base.
|
|
30
|
+
import './vendor/base.CTYV4Gnz.js';
|
|
29
31
|
import '@vitest/utils';
|
|
30
32
|
import './vendor/env.bmJgw1qP.js';
|
|
31
33
|
import 'std-env';
|
|
32
|
-
import './path.js';
|
|
33
34
|
import './vendor/index.BpSiYbpB.js';
|
|
34
35
|
import 'zlib';
|
|
35
36
|
import 'buffer';
|
|
@@ -52,16 +53,25 @@ import 'node:util';
|
|
|
52
53
|
import 'vite-node/utils';
|
|
53
54
|
import 'magic-string';
|
|
54
55
|
import '@vitest/utils/ast';
|
|
55
|
-
import './vendor/
|
|
56
|
-
import './vendor/index._7XLd8Kd.js';
|
|
56
|
+
import './vendor/index.C9Thslzw.js';
|
|
57
57
|
import './vendor/global.7bFbnyXl.js';
|
|
58
58
|
import 'node:readline';
|
|
59
59
|
import 'readline';
|
|
60
|
-
import './vendor/
|
|
60
|
+
import './vendor/utils.DSO2UK15.js';
|
|
61
|
+
import './vendor/tasks.DhVtQBtW.js';
|
|
61
62
|
import 'node:perf_hooks';
|
|
62
|
-
import './chunks/runtime-console.
|
|
63
|
+
import './chunks/runtime-console.Ckl0vEQr.js';
|
|
63
64
|
import 'node:stream';
|
|
64
|
-
import './vendor/date.
|
|
65
|
+
import './vendor/date.W2xKR2qe.js';
|
|
65
66
|
import 'execa';
|
|
66
67
|
import 'module';
|
|
67
68
|
import 'assert';
|
|
69
|
+
|
|
70
|
+
function createDebugger(namespace) {
|
|
71
|
+
const debug = createDebug(namespace);
|
|
72
|
+
if (debug.enabled) {
|
|
73
|
+
return debug;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { createDebugger };
|
package/dist/path.js
CHANGED
|
@@ -2,6 +2,9 @@ import url from 'node:url';
|
|
|
2
2
|
import { resolve } from 'pathe';
|
|
3
3
|
|
|
4
4
|
const rootDir = resolve(url.fileURLToPath(import.meta.url), "../../");
|
|
5
|
-
const distDir = resolve(
|
|
5
|
+
const distDir = resolve(
|
|
6
|
+
url.fileURLToPath(import.meta.url),
|
|
7
|
+
"../../dist"
|
|
8
|
+
);
|
|
6
9
|
|
|
7
10
|
export { distDir, rootDir };
|