vitest 1.5.2 → 1.5.3
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 +1 -1
- package/dist/browser.js +1 -1
- package/dist/chunks/{integrations-globals.k0N5-dd1.js → integrations-globals.Hr6znn-f.js} +5 -4
- package/dist/chunks/{runtime-console.kbFEN7E-.js → runtime-console.EO5ha7qv.js} +3 -3
- package/dist/chunks/{runtime-runBaseTests.-x-nNuJ_.js → runtime-runBaseTests.l6qXp5eU.js} +11 -10
- package/dist/cli.js +1 -1
- package/dist/config.cjs +2 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +2 -1
- 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 +6 -5
- package/dist/node.d.ts +2 -2
- package/dist/node.js +9 -8
- package/dist/{reporters-xEmem8D4.d.ts → reporters-BXNXFKfg.d.ts} +1 -2
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +8 -7
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +6 -5
- package/dist/{suite-HPAKvIxA.d.ts → suite-KPWE530F.d.ts} +1 -1
- package/dist/suite.d.ts +3 -3
- package/dist/suite.js +5 -4
- package/dist/vendor/{base.gAwDs8Jc.js → base.oIzAvGLe.js} +1 -1
- package/dist/vendor/{benchmark.eeqk2rd8.js → benchmark.yGkUTKnC.js} +1 -1
- package/dist/vendor/{cac.8mXc9Oj6.js → cac.RDd_SGOd.js} +2 -2
- package/dist/vendor/{cli-api._n4_Wp_j.js → cli-api.AmIc1Dmz.js} +21 -10
- package/dist/vendor/env.AtSIuHFg.js +7 -0
- package/dist/vendor/{index.gHZzsRJQ.js → index.Fm6OikHU.js} +1 -1
- package/dist/vendor/{index.0RrMQKD8.js → index.QVcwRDVW.js} +1 -1
- package/dist/vendor/{index.ir9i0ywP.js → index.SMVOaj7F.js} +2 -6
- package/dist/vendor/{index.GlXSU9xI.js → index.X7lgIMc_.js} +519 -529
- package/dist/vendor/{setup-common.7SXMSI--.js → setup-common.5nUd4r76.js} +1 -1
- package/dist/vendor/{vm.I_IsyNig.js → vm.i4FO5N37.js} +4 -2
- package/dist/workers/forks.js +1 -1
- package/dist/workers/runVmTests.js +6 -5
- package/dist/workers/threads.js +1 -1
- package/dist/workers/vmForks.js +4 -4
- package/dist/workers/vmThreads.js +4 -4
- package/dist/workers.d.ts +1 -1
- package/dist/workers.js +5 -5
- package/package.json +9 -9
|
@@ -12,7 +12,7 @@ async function setupCommonEnv(config) {
|
|
|
12
12
|
globalSetup = true;
|
|
13
13
|
setSafeTimers();
|
|
14
14
|
if (config.globals)
|
|
15
|
-
(await import('../chunks/integrations-globals.
|
|
15
|
+
(await import('../chunks/integrations-globals.Hr6znn-f.js')).registerApiGlobally();
|
|
16
16
|
}
|
|
17
17
|
function setupDefines(defines) {
|
|
18
18
|
for (const key in defines)
|
|
@@ -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.EO5ha7qv.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';
|
|
@@ -9,8 +9,10 @@ import { statSync, existsSync, readFileSync } from 'node:fs';
|
|
|
9
9
|
import { isNodeBuiltin, isPrimitive, toArray, getCachedData, setCacheData } from 'vite-node/utils';
|
|
10
10
|
import { createRequire, Module } from 'node:module';
|
|
11
11
|
import { CSS_LANGS_RE, KNOWN_ASSET_RE } from 'vite-node/constants';
|
|
12
|
-
import '
|
|
12
|
+
import '@vitest/runner/utils';
|
|
13
|
+
import '@vitest/utils';
|
|
13
14
|
import { p as provideWorkerState } from './global.CkGT_TMy.js';
|
|
15
|
+
import './env.AtSIuHFg.js';
|
|
14
16
|
|
|
15
17
|
const _require = createRequire(import.meta.url);
|
|
16
18
|
const requiresCache = /* @__PURE__ */ new WeakMap();
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
2
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.0uYuCbzo.js';
|
|
3
|
-
import { r as runBaseTests } from '../vendor/base.
|
|
3
|
+
import { r as runBaseTests } from '../vendor/base.oIzAvGLe.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'vite-node/client';
|
|
6
6
|
import '../vendor/global.CkGT_TMy.js';
|
|
@@ -6,11 +6,11 @@ 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.Fm6OikHU.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.QVcwRDVW.js';
|
|
13
|
+
import { s as setupCommonEnv } from '../vendor/setup-common.5nUd4r76.js';
|
|
14
14
|
import { c as closeInspector } from '../vendor/inspector.IgLX3ur5.js';
|
|
15
15
|
import 'chai';
|
|
16
16
|
import '@vitest/snapshot/environment';
|
|
@@ -19,9 +19,10 @@ import '../path.js';
|
|
|
19
19
|
import 'node:url';
|
|
20
20
|
import '../vendor/rpc.joBhAkyK.js';
|
|
21
21
|
import '../vendor/index.8bPxjt7g.js';
|
|
22
|
-
import '../vendor/benchmark.
|
|
22
|
+
import '../vendor/benchmark.yGkUTKnC.js';
|
|
23
23
|
import '@vitest/runner/utils';
|
|
24
|
-
import '../vendor/index.
|
|
24
|
+
import '../vendor/index.SMVOaj7F.js';
|
|
25
|
+
import '../vendor/env.AtSIuHFg.js';
|
|
25
26
|
import 'std-env';
|
|
26
27
|
import '../vendor/run-once.Olz_Zkd8.js';
|
|
27
28
|
import '../vendor/vi.Y_w82WR8.js';
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as runBaseTests } from '../vendor/base.
|
|
1
|
+
import { r as runBaseTests } from '../vendor/base.oIzAvGLe.js';
|
|
2
2
|
import { a as createThreadsRpcOptions } from '../vendor/utils.0uYuCbzo.js';
|
|
3
3
|
import 'vite-node/client';
|
|
4
4
|
import '../vendor/global.CkGT_TMy.js';
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
2
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.0uYuCbzo.js';
|
|
3
|
-
import { r as runVmTests } from '../vendor/vm.
|
|
3
|
+
import { r as runVmTests } from '../vendor/vm.i4FO5N37.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.EO5ha7qv.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
13
|
import '@vitest/runner/utils';
|
|
16
14
|
import '../vendor/global.CkGT_TMy.js';
|
|
15
|
+
import '../vendor/env.AtSIuHFg.js';
|
|
16
|
+
import 'std-env';
|
|
17
17
|
import '../vendor/execute.2_yoIC01.js';
|
|
18
18
|
import 'vite-node/client';
|
|
19
19
|
import 'vite-node/utils';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as createThreadsRpcOptions } from '../vendor/utils.0uYuCbzo.js';
|
|
2
|
-
import { r as runVmTests } from '../vendor/vm.
|
|
2
|
+
import { r as runVmTests } from '../vendor/vm.i4FO5N37.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.EO5ha7qv.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
12
|
import '@vitest/runner/utils';
|
|
15
13
|
import '../vendor/global.CkGT_TMy.js';
|
|
14
|
+
import '../vendor/env.AtSIuHFg.js';
|
|
15
|
+
import 'std-env';
|
|
16
16
|
import '../vendor/execute.2_yoIC01.js';
|
|
17
17
|
import 'vite-node/client';
|
|
18
18
|
import 'vite-node/utils';
|
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-BXNXFKfg.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
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.i4FO5N37.js';
|
|
5
|
+
export { r as runBaseTests } from './vendor/base.oIzAvGLe.js';
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'tinypool';
|
|
@@ -16,13 +16,13 @@ import 'node:module';
|
|
|
16
16
|
import './vendor/rpc.joBhAkyK.js';
|
|
17
17
|
import './vendor/index.8bPxjt7g.js';
|
|
18
18
|
import 'node:vm';
|
|
19
|
-
import './chunks/runtime-console.
|
|
19
|
+
import './chunks/runtime-console.EO5ha7qv.js';
|
|
20
20
|
import 'node:stream';
|
|
21
21
|
import 'node:path';
|
|
22
22
|
import './vendor/date.Ns1pGd_X.js';
|
|
23
|
-
import './vendor/index.ir9i0ywP.js';
|
|
24
|
-
import 'std-env';
|
|
25
23
|
import '@vitest/runner/utils';
|
|
24
|
+
import './vendor/env.AtSIuHFg.js';
|
|
25
|
+
import 'std-env';
|
|
26
26
|
import './vendor/execute.2_yoIC01.js';
|
|
27
27
|
import 'vite-node/utils';
|
|
28
28
|
import '@vitest/utils/error';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.3",
|
|
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/browser": "1.5.
|
|
119
|
-
"@vitest/ui": "1.5.
|
|
118
|
+
"@vitest/browser": "1.5.3",
|
|
119
|
+
"@vitest/ui": "1.5.3"
|
|
120
120
|
},
|
|
121
121
|
"peerDependenciesMeta": {
|
|
122
122
|
"@edge-runtime/vm": {
|
|
@@ -153,12 +153,12 @@
|
|
|
153
153
|
"tinypool": "^0.8.3",
|
|
154
154
|
"vite": "^5.0.0",
|
|
155
155
|
"why-is-node-running": "^2.2.2",
|
|
156
|
-
"@vitest/expect": "1.5.
|
|
157
|
-
"@vitest/
|
|
158
|
-
"
|
|
159
|
-
"@vitest/
|
|
160
|
-
"
|
|
161
|
-
"@vitest/
|
|
156
|
+
"@vitest/expect": "1.5.3",
|
|
157
|
+
"@vitest/snapshot": "1.5.3",
|
|
158
|
+
"vite-node": "1.5.3",
|
|
159
|
+
"@vitest/runner": "1.5.3",
|
|
160
|
+
"@vitest/spy": "1.5.3",
|
|
161
|
+
"@vitest/utils": "1.5.3"
|
|
162
162
|
},
|
|
163
163
|
"devDependencies": {
|
|
164
164
|
"@ampproject/remapping": "^2.2.1",
|