vitest 0.12.10 → 0.14.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/config.d.ts +1 -1
- package/dist/{chunk-api-setup.2405c167.js → chunk-api-setup.7945baf8.mjs} +4 -4
- package/dist/{chunk-constants.e8bc5d35.js → chunk-constants.41584d81.mjs} +1 -1
- package/dist/{chunk-defaults.a3120857.js → chunk-defaults.a820faeb.mjs} +3 -2
- package/dist/{chunk-install-pkg.73b84ae1.js → chunk-install-pkg.6f5930c3.mjs} +2 -2
- package/dist/chunk-integrations-globals.f0c5e97f.mjs +26 -0
- package/dist/{chunk-integrations-spy.bee66426.js → chunk-integrations-spy.674b628e.mjs} +0 -0
- package/dist/{chunk-magic-string.41232190.js → chunk-magic-string.efe26975.mjs} +0 -0
- package/dist/{chunk-runtime-chain.d2ed2f76.js → chunk-runtime-chain.6a3c6576.mjs} +8 -8
- package/dist/{chunk-runtime-mocker.13651a82.js → chunk-runtime-mocker.7cf95199.mjs} +4 -4
- package/dist/{chunk-runtime-rpc.d3d38fc1.js → chunk-runtime-rpc.44043bb4.mjs} +1 -1
- package/dist/{chunk-utils-global.eb9e6d32.js → chunk-utils-global.624991bc.mjs} +2 -2
- package/dist/{chunk-utils-source-map.6b6c39c8.js → chunk-utils-source-map.4408ba82.mjs} +7 -1
- package/dist/{chunk-vite-node-externalize.464ab3dd.js → chunk-vite-node-externalize.aaa06ea4.mjs} +8811 -8790
- package/dist/{chunk-vite-node-utils.eec5d968.js → chunk-vite-node-utils.d6687931.mjs} +12 -5
- package/dist/{cli.js → cli.mjs} +19 -19
- package/dist/config.cjs +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/{config.js → config.mjs} +2 -1
- package/dist/entry.mjs +17 -0
- package/dist/index.d.ts +15 -7
- package/dist/{index.js → index.mjs} +6 -6
- package/dist/node.d.ts +13 -6
- package/dist/node.mjs +32 -0
- package/dist/{spy.js → spy.mjs} +1 -1
- package/dist/{vendor-_commonjsHelpers.addc3445.js → vendor-_commonjsHelpers.4da45ef5.mjs} +0 -0
- package/dist/{vendor-entry.3113977a.js → vendor-entry.93b045ee.mjs} +7 -7
- package/dist/{vendor-index.405e58ef.js → vendor-index.98e769c1.mjs} +0 -0
- package/dist/{vendor-index.40be925a.js → vendor-index.a2a385d8.mjs} +407 -407
- package/dist/{worker.js → worker.mjs} +6 -6
- package/node.d.ts +1 -1
- package/package.json +8 -9
- package/vitest.mjs +1 -1
- package/dist/chunk-integrations-globals.6e996fa7.js +0 -26
- package/dist/entry.js +0 -17
- package/dist/node.js +0 -32
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as resolve, a as getWorkerState } from './chunk-utils-global.
|
|
2
|
-
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.
|
|
3
|
-
import { d as distDir } from './chunk-constants.
|
|
4
|
-
import { e as executeInViteNode } from './chunk-runtime-mocker.
|
|
5
|
-
import { r as rpc } from './chunk-runtime-rpc.
|
|
1
|
+
import { l as resolve, a as getWorkerState } from './chunk-utils-global.624991bc.mjs';
|
|
2
|
+
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.d6687931.mjs';
|
|
3
|
+
import { d as distDir } from './chunk-constants.41584d81.mjs';
|
|
4
|
+
import { e as executeInViteNode } from './chunk-runtime-mocker.7cf95199.mjs';
|
|
5
|
+
import { r as rpc } from './chunk-runtime-rpc.44043bb4.mjs';
|
|
6
6
|
import 'tty';
|
|
7
7
|
import 'local-pkg';
|
|
8
8
|
import 'path';
|
|
@@ -35,7 +35,7 @@ async function startViteNode(ctx) {
|
|
|
35
35
|
const { config } = ctx;
|
|
36
36
|
const { run: run2 } = (await executeInViteNode({
|
|
37
37
|
files: [
|
|
38
|
-
resolve(distDir, "entry.
|
|
38
|
+
resolve(distDir, "entry.mjs")
|
|
39
39
|
],
|
|
40
40
|
fetchModule(id) {
|
|
41
41
|
return rpc().fetch(id);
|
package/node.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './dist/node'
|
|
1
|
+
export * from './dist/node.js'
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.12.10",
|
|
3
|
+
"version": "0.14.0",
|
|
5
4
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
6
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
6
|
"license": "MIT",
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
24
|
"types": "./dist/index.d.ts",
|
|
26
|
-
"import": "./dist/index.
|
|
25
|
+
"import": "./dist/index.mjs"
|
|
27
26
|
},
|
|
28
27
|
"./*": "./*",
|
|
29
28
|
"./globals": {
|
|
@@ -34,12 +33,12 @@
|
|
|
34
33
|
},
|
|
35
34
|
"./node": {
|
|
36
35
|
"types": "./dist/node.d.ts",
|
|
37
|
-
"import": "./dist/node.
|
|
36
|
+
"import": "./dist/node.mjs"
|
|
38
37
|
},
|
|
39
38
|
"./config": {
|
|
40
39
|
"types": "./config.d.ts",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
40
|
+
"require": "./dist/config.cjs",
|
|
41
|
+
"import": "./dist/config.mjs"
|
|
43
42
|
}
|
|
44
43
|
},
|
|
45
44
|
"main": "./dist/index.js",
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
"@types/node": "^17.0.35",
|
|
98
97
|
"@types/prompts": "^2.4.0",
|
|
99
98
|
"@types/sinonjs__fake-timers": "^8.1.2",
|
|
100
|
-
"@vitest/ui": "0.
|
|
99
|
+
"@vitest/ui": "0.14.0",
|
|
101
100
|
"birpc": "^0.2.3",
|
|
102
101
|
"c8": "^7.11.3",
|
|
103
102
|
"cac": "^6.7.12",
|
|
@@ -120,11 +119,11 @@
|
|
|
120
119
|
"pkg-types": "^0.3.2",
|
|
121
120
|
"pretty-format": "^27.5.1",
|
|
122
121
|
"prompts": "^2.4.2",
|
|
123
|
-
"rollup": "^2.
|
|
122
|
+
"rollup": "^2.75.3",
|
|
124
123
|
"source-map-js": "^1.0.2",
|
|
125
124
|
"strip-ansi": "^7.0.1",
|
|
126
125
|
"typescript": "^4.7.2",
|
|
127
|
-
"vite-node": "0.
|
|
126
|
+
"vite-node": "0.14.0",
|
|
128
127
|
"ws": "^8.7.0"
|
|
129
128
|
},
|
|
130
129
|
"scripts": {
|
package/vitest.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import './dist/cli.
|
|
2
|
+
import './dist/cli.mjs'
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { g as globalApis } from './chunk-constants.e8bc5d35.js';
|
|
2
|
-
import { i as index } from './vendor-entry.3113977a.js';
|
|
3
|
-
import 'url';
|
|
4
|
-
import './chunk-utils-global.eb9e6d32.js';
|
|
5
|
-
import 'tty';
|
|
6
|
-
import 'local-pkg';
|
|
7
|
-
import 'path';
|
|
8
|
-
import 'fs';
|
|
9
|
-
import './chunk-runtime-chain.d2ed2f76.js';
|
|
10
|
-
import 'chai';
|
|
11
|
-
import './vendor-_commonjsHelpers.addc3445.js';
|
|
12
|
-
import './chunk-runtime-rpc.d3d38fc1.js';
|
|
13
|
-
import './chunk-utils-source-map.6b6c39c8.js';
|
|
14
|
-
import './chunk-integrations-spy.bee66426.js';
|
|
15
|
-
import 'tinyspy';
|
|
16
|
-
import 'util';
|
|
17
|
-
import './chunk-defaults.a3120857.js';
|
|
18
|
-
import 'module';
|
|
19
|
-
|
|
20
|
-
function registerApiGlobally() {
|
|
21
|
-
globalApis.forEach((api) => {
|
|
22
|
-
globalThis[api] = index[api];
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { registerApiGlobally };
|
package/dist/entry.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { r as run } from './vendor-entry.3113977a.js';
|
|
2
|
-
import 'fs';
|
|
3
|
-
import './chunk-utils-global.eb9e6d32.js';
|
|
4
|
-
import 'tty';
|
|
5
|
-
import 'local-pkg';
|
|
6
|
-
import 'path';
|
|
7
|
-
import './chunk-runtime-chain.d2ed2f76.js';
|
|
8
|
-
import 'chai';
|
|
9
|
-
import './vendor-_commonjsHelpers.addc3445.js';
|
|
10
|
-
import './chunk-runtime-rpc.d3d38fc1.js';
|
|
11
|
-
import './chunk-utils-source-map.6b6c39c8.js';
|
|
12
|
-
import './chunk-integrations-spy.bee66426.js';
|
|
13
|
-
import 'tinyspy';
|
|
14
|
-
import 'util';
|
|
15
|
-
import './chunk-defaults.a3120857.js';
|
|
16
|
-
import 'module';
|
|
17
|
-
import 'url';
|
package/dist/node.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.464ab3dd.js';
|
|
2
|
-
export { V as VitestRunner } from './chunk-runtime-mocker.13651a82.js';
|
|
3
|
-
import 'buffer';
|
|
4
|
-
import 'path';
|
|
5
|
-
import 'child_process';
|
|
6
|
-
import 'process';
|
|
7
|
-
import './vendor-index.40be925a.js';
|
|
8
|
-
import './vendor-_commonjsHelpers.addc3445.js';
|
|
9
|
-
import 'fs';
|
|
10
|
-
import 'assert';
|
|
11
|
-
import 'events';
|
|
12
|
-
import 'stream';
|
|
13
|
-
import 'util';
|
|
14
|
-
import 'url';
|
|
15
|
-
import 'os';
|
|
16
|
-
import './chunk-utils-global.eb9e6d32.js';
|
|
17
|
-
import 'tty';
|
|
18
|
-
import 'local-pkg';
|
|
19
|
-
import 'vite';
|
|
20
|
-
import './chunk-constants.e8bc5d35.js';
|
|
21
|
-
import 'readline';
|
|
22
|
-
import './chunk-vite-node-utils.eec5d968.js';
|
|
23
|
-
import 'module';
|
|
24
|
-
import 'vm';
|
|
25
|
-
import 'debug';
|
|
26
|
-
import './chunk-defaults.a3120857.js';
|
|
27
|
-
import 'worker_threads';
|
|
28
|
-
import 'tinypool';
|
|
29
|
-
import 'perf_hooks';
|
|
30
|
-
import './chunk-utils-source-map.6b6c39c8.js';
|
|
31
|
-
import './chunk-magic-string.41232190.js';
|
|
32
|
-
import './vendor-index.405e58ef.js';
|