vitest 0.8.3 → 0.9.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/{chunk-api-setup.175eacf7.js → chunk-api-setup.e8071f5b.js} +4 -4
- package/dist/{chunk-constants.6062c404.js → chunk-constants.596ee4d5.js} +1 -1
- package/dist/{chunk-defaults.e5535971.js → chunk-defaults.731639a8.js} +4 -3
- package/dist/chunk-integrations-globals.d1145578.js +23 -0
- package/dist/{chunk-runtime-chain.766f27fd.js → chunk-runtime-chain.a5280da7.js} +232 -171
- package/dist/{chunk-runtime-mocker.def94aba.js → chunk-runtime-mocker.ff55be7d.js} +32 -35
- package/dist/chunk-runtime-rpc.3f693817.js +7 -0
- package/dist/{chunk-utils-base.8408f73a.js → chunk-utils-global.35d3b35d.js} +18 -1
- package/dist/{chunk-utils-timers.7bdeea22.js → chunk-utils-timers.73950dcb.js} +13 -10
- package/dist/{chunk-vite-node-externalize.ecc58a1f.js → chunk-vite-node-externalize.2004587d.js} +233 -76
- package/dist/{chunk-vite-node-utils.3c7ce184.js → chunk-vite-node-utils.5fa30ee7.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/config.cjs +3 -2
- package/dist/config.d.ts +26 -2
- package/dist/config.js +3 -2
- package/dist/entry.js +85 -53
- package/dist/index.d.ts +29 -10
- package/dist/index.js +5 -6
- package/dist/node.d.ts +21 -4
- package/dist/node.js +7 -8
- package/dist/{jest-mock.js → spy.js} +3 -0
- package/dist/worker.js +5 -6
- package/package.json +16 -16
- package/dist/chunk-integrations-globals.ade0c248.js +0 -24
- package/dist/chunk-runtime-rpc.e8aa1ebe.js +0 -8
- package/dist/chunk-utils-global.7bcfa03c.js +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.9.0",
|
|
4
5
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"vite",
|
|
@@ -13,19 +14,15 @@
|
|
|
13
14
|
"url": "https://github.com/vitest-dev/vitest/issues"
|
|
14
15
|
},
|
|
15
16
|
"license": "MIT",
|
|
17
|
+
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
16
18
|
"repository": {
|
|
17
19
|
"type": "git",
|
|
18
20
|
"url": "git+https://github.com/vitest-dev/vitest.git"
|
|
19
21
|
},
|
|
20
22
|
"funding": "https://github.com/sponsors/antfu",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"dist",
|
|
25
|
-
"bin",
|
|
26
|
-
"*.d.ts",
|
|
27
|
-
"*.mjs"
|
|
28
|
-
],
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
29
26
|
"exports": {
|
|
30
27
|
".": {
|
|
31
28
|
"import": "./dist/index.js",
|
|
@@ -48,9 +45,12 @@
|
|
|
48
45
|
"types": "./config.d.ts"
|
|
49
46
|
}
|
|
50
47
|
},
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
"files": [
|
|
49
|
+
"dist",
|
|
50
|
+
"bin",
|
|
51
|
+
"*.d.ts",
|
|
52
|
+
"*.mjs"
|
|
53
|
+
],
|
|
54
54
|
"bin": {
|
|
55
55
|
"vitest": "./vitest.mjs"
|
|
56
56
|
},
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"local-pkg": "^0.4.1",
|
|
82
82
|
"tinypool": "^0.1.2",
|
|
83
83
|
"tinyspy": "^0.3.0",
|
|
84
|
-
"vite": "^2.
|
|
84
|
+
"vite": "^2.9.1"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@antfu/install-pkg": "^0.1.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@types/node": "^17.0.23",
|
|
94
94
|
"@types/prompts": "^2.4.0",
|
|
95
95
|
"@types/sinonjs__fake-timers": "^8.1.2",
|
|
96
|
-
"@vitest/ui": "0.
|
|
96
|
+
"@vitest/ui": "0.9.0",
|
|
97
97
|
"birpc": "^0.2.2",
|
|
98
98
|
"c8": "^7.11.0",
|
|
99
99
|
"cac": "^6.7.12",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"fast-glob": "^3.2.11",
|
|
105
105
|
"find-up": "^6.3.0",
|
|
106
106
|
"flatted": "^3.2.5",
|
|
107
|
-
"happy-dom": "^2.
|
|
107
|
+
"happy-dom": "^2.55.0",
|
|
108
108
|
"jsdom": "^19.0.0",
|
|
109
109
|
"log-update": "^5.0.0",
|
|
110
110
|
"magic-string": "^0.26.1",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"source-map-js": "^1.0.2",
|
|
121
121
|
"strip-ansi": "^7.0.1",
|
|
122
122
|
"typescript": "^4.6.3",
|
|
123
|
-
"vite-node": "0.
|
|
123
|
+
"vite-node": "0.9.0",
|
|
124
124
|
"ws": "^8.5.0"
|
|
125
125
|
},
|
|
126
126
|
"engines": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { g as globalApis } from './chunk-constants.6062c404.js';
|
|
2
|
-
import { i as index } from './chunk-runtime-chain.766f27fd.js';
|
|
3
|
-
import 'url';
|
|
4
|
-
import './chunk-utils-base.8408f73a.js';
|
|
5
|
-
import 'path';
|
|
6
|
-
import 'tty';
|
|
7
|
-
import 'local-pkg';
|
|
8
|
-
import 'util';
|
|
9
|
-
import './chunk-utils-global.7bcfa03c.js';
|
|
10
|
-
import './chunk-utils-timers.7bdeea22.js';
|
|
11
|
-
import 'chai';
|
|
12
|
-
import './vendor-_commonjsHelpers.34b404ce.js';
|
|
13
|
-
import './chunk-runtime-rpc.e8aa1ebe.js';
|
|
14
|
-
import 'fs';
|
|
15
|
-
import './jest-mock.js';
|
|
16
|
-
import 'tinyspy';
|
|
17
|
-
|
|
18
|
-
function registerApiGlobally() {
|
|
19
|
-
globalApis.forEach((api) => {
|
|
20
|
-
globalThis[api] = index[api];
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { registerApiGlobally };
|