vitest 0.23.2 → 0.24.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 +3 -3
- package/dist/browser.js +24 -0
- package/dist/{chunk-api-setup.11cfd513.mjs → chunk-api-setup.33222ae9.js} +20 -20
- package/dist/{chunk-constants.71e8a211.mjs → chunk-constants.22640ce4.js} +0 -0
- package/dist/{chunk-env-node.ceb43f1c.mjs → chunk-env-node.700b7e95.js} +2 -1
- package/dist/{chunk-install-pkg.3aa3eae6.mjs → chunk-install-pkg.107b0cd7.js} +56 -20
- package/dist/{chunk-integrations-coverage.99c020eb.mjs → chunk-integrations-coverage.cca09977.js} +0 -0
- package/dist/chunk-integrations-globals.f50b2307.js +25 -0
- package/dist/{chunk-magic-string.56b2b543.mjs → chunk-magic-string.cacfbf9d.js} +53 -7
- package/dist/{chunk-mock-date.2917be60.mjs → chunk-mock-date.b1b404e8.js} +3 -3
- package/dist/{chunk-node-git.a44b4872.mjs → chunk-node-git.6d82fb34.js} +5 -5
- package/dist/{chunk-runtime-chain.7a7f3c3b.mjs → chunk-runtime-chain.4dd0a07a.js} +22 -22
- package/dist/{chunk-runtime-error.2723946b.mjs → chunk-runtime-error.38d92035.js} +29 -19
- package/dist/{chunk-runtime-hooks.1a0bc3fd.mjs → chunk-runtime-hooks.72f95cdb.js} +6 -6
- package/dist/{chunk-runtime-mocker.8d4a2494.mjs → chunk-runtime-mocker.623b90b6.js} +20 -10
- package/dist/{chunk-runtime-rpc.00a890d2.mjs → chunk-runtime-rpc.4f6f88e8.js} +2 -2
- package/dist/{chunk-utils-source-map.2be5aa48.mjs → chunk-utils-source-map.175ffa40.js} +10 -6
- package/dist/{chunk-utils-timers.b48455ed.mjs → chunk-utils-timers.ab764c0c.js} +0 -0
- package/dist/{chunk-vite-node-client.da0a17ff.mjs → chunk-vite-node-client.4dd32c96.js} +2 -2
- package/dist/{chunk-vite-node-debug.536c4c5b.mjs → chunk-vite-node-debug.77d9dcea.js} +1 -1
- package/dist/{chunk-vite-node-externalize.f55c4577.mjs → chunk-vite-node-externalize.a2e9daf4.js} +1138 -1083
- package/dist/{chunk-vite-node-utils.473cd0b2.mjs → chunk-vite-node-utils.c8c74a41.js} +39 -15
- package/dist/{cli-wrapper.mjs → cli-wrapper.js} +9 -7
- package/dist/{cli.mjs → cli.js} +14 -14
- package/dist/config.d.ts +1 -1
- package/dist/{config.mjs → config.js} +0 -0
- package/dist/{entry.mjs → entry.js} +12 -12
- package/dist/environments.d.ts +1 -1
- package/dist/{environments.mjs → environments.js} +1 -1
- package/dist/{global-d05ffb3f.d.ts → global-6d79484b.d.ts} +16 -4
- package/dist/{index-60e2a8e1.d.ts → index-e0804ba8.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/{index.mjs → index.js} +9 -9
- package/dist/{loader.mjs → loader.js} +3 -3
- package/dist/node.d.ts +2 -2
- package/dist/node.js +37 -0
- package/dist/{spy.mjs → spy.js} +0 -0
- package/dist/suite.js +16 -0
- package/dist/{vendor-_commonjsHelpers.4da45ef5.mjs → vendor-_commonjsHelpers.addc3445.js} +0 -0
- package/dist/{vendor-index.fbec8a81.mjs → vendor-index.07e6fc5a.js} +2 -2
- package/dist/{vendor-index.0557b03a.mjs → vendor-index.534e612c.js} +1 -1
- package/dist/{vendor-index.29636037.mjs → vendor-index.8919d83a.js} +1 -1
- package/dist/{vendor-index.2ae8040a.mjs → vendor-index.95542d0a.js} +1 -1
- package/dist/{vendor-index.ae96af6e.mjs → vendor-index.9f20a9be.js} +0 -0
- package/dist/{vendor-index.9d9196cc.mjs → vendor-index.c902d578.js} +0 -0
- package/dist/{worker.mjs → worker.js} +8 -8
- package/index.cjs +0 -0
- package/package.json +30 -23
- package/vitest.mjs +1 -1
- package/dist/browser.mjs +0 -24
- package/dist/chunk-integrations-globals.ad5b1b51.mjs +0 -25
- package/dist/node.mjs +0 -37
- package/dist/suite.mjs +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.24.0",
|
|
4
5
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
5
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
7
|
"license": "MIT",
|
|
@@ -22,8 +23,14 @@
|
|
|
22
23
|
],
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
25
|
-
"
|
|
26
|
-
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./index.d.cts",
|
|
28
|
+
"default": "./index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
}
|
|
27
34
|
},
|
|
28
35
|
"./*": "./*",
|
|
29
36
|
"./globals": {
|
|
@@ -34,24 +41,24 @@
|
|
|
34
41
|
},
|
|
35
42
|
"./node": {
|
|
36
43
|
"types": "./dist/node.d.ts",
|
|
37
|
-
"import": "./dist/node.
|
|
44
|
+
"import": "./dist/node.js"
|
|
38
45
|
},
|
|
39
46
|
"./environments": {
|
|
40
47
|
"types": "./dist/environments.d.ts",
|
|
41
|
-
"import": "./dist/environments.
|
|
48
|
+
"import": "./dist/environments.js"
|
|
42
49
|
},
|
|
43
50
|
"./browser": {
|
|
44
51
|
"types": "./dist/browser.d.ts",
|
|
45
|
-
"import": "./dist/browser.
|
|
52
|
+
"import": "./dist/browser.js"
|
|
46
53
|
},
|
|
47
54
|
"./config": {
|
|
48
55
|
"types": "./config.d.ts",
|
|
49
56
|
"require": "./dist/config.cjs",
|
|
50
|
-
"import": "./dist/config.
|
|
57
|
+
"import": "./dist/config.js"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"main": "./dist/index.
|
|
54
|
-
"module": "./dist/index.
|
|
60
|
+
"main": "./dist/index.js",
|
|
61
|
+
"module": "./dist/index.js",
|
|
55
62
|
"types": "./dist/index.d.ts",
|
|
56
63
|
"bin": {
|
|
57
64
|
"vitest": "./vitest.mjs"
|
|
@@ -97,14 +104,14 @@
|
|
|
97
104
|
"chai": "^4.3.6",
|
|
98
105
|
"debug": "^4.3.4",
|
|
99
106
|
"local-pkg": "^0.4.2",
|
|
100
|
-
"strip-literal": "^0.4.
|
|
101
|
-
"tinybench": "^2.1
|
|
107
|
+
"strip-literal": "^0.4.2",
|
|
108
|
+
"tinybench": "^2.2.1",
|
|
102
109
|
"tinypool": "^0.3.0",
|
|
103
110
|
"tinyspy": "^1.0.2",
|
|
104
|
-
"vite": "^
|
|
111
|
+
"vite": "^3.0.0"
|
|
105
112
|
},
|
|
106
113
|
"devDependencies": {
|
|
107
|
-
"@antfu/install-pkg": "^0.1.
|
|
114
|
+
"@antfu/install-pkg": "^0.1.1",
|
|
108
115
|
"@edge-runtime/vm": "1.1.0-beta.31",
|
|
109
116
|
"@sinonjs/fake-timers": "^9.1.2",
|
|
110
117
|
"@types/diff": "^5.0.2",
|
|
@@ -113,7 +120,7 @@
|
|
|
113
120
|
"@types/natural-compare": "^1.4.1",
|
|
114
121
|
"@types/prompts": "^2.4.0",
|
|
115
122
|
"@types/sinonjs__fake-timers": "^8.1.2",
|
|
116
|
-
"@vitest/ui": "0.
|
|
123
|
+
"@vitest/ui": "0.24.0",
|
|
117
124
|
"birpc": "^0.2.3",
|
|
118
125
|
"cac": "^6.7.14",
|
|
119
126
|
"chai-subset": "^1.6.0",
|
|
@@ -121,28 +128,28 @@
|
|
|
121
128
|
"diff": "^5.1.0",
|
|
122
129
|
"event-target-polyfill": "^0.0.3",
|
|
123
130
|
"execa": "^6.1.0",
|
|
124
|
-
"fast-glob": "^3.2.
|
|
131
|
+
"fast-glob": "^3.2.12",
|
|
125
132
|
"find-up": "^6.3.0",
|
|
126
133
|
"flatted": "^3.2.7",
|
|
127
134
|
"happy-dom": "^6.0.4",
|
|
128
|
-
"jsdom": "^20.0.
|
|
135
|
+
"jsdom": "^20.0.1",
|
|
129
136
|
"log-update": "^5.0.1",
|
|
130
|
-
"magic-string": "^0.26.
|
|
137
|
+
"magic-string": "^0.26.5",
|
|
131
138
|
"micromatch": "^4.0.5",
|
|
132
|
-
"mlly": "^0.5.
|
|
139
|
+
"mlly": "^0.5.16",
|
|
133
140
|
"natural-compare": "^1.4.0",
|
|
134
141
|
"p-limit": "^4.0.0",
|
|
135
142
|
"pathe": "^0.2.0",
|
|
136
143
|
"picocolors": "^1.0.0",
|
|
137
|
-
"pkg-types": "^0.3.
|
|
144
|
+
"pkg-types": "^0.3.5",
|
|
138
145
|
"pretty-format": "^27.5.1",
|
|
139
146
|
"prompts": "^2.4.2",
|
|
140
|
-
"rollup": "^2.79.
|
|
147
|
+
"rollup": "^2.79.1",
|
|
141
148
|
"source-map-js": "^1.0.2",
|
|
142
149
|
"strip-ansi": "^7.0.1",
|
|
143
|
-
"typescript": "^4.8.
|
|
144
|
-
"vite-node": "0.
|
|
145
|
-
"ws": "^8.
|
|
150
|
+
"typescript": "^4.8.4",
|
|
151
|
+
"vite-node": "0.24.0",
|
|
152
|
+
"ws": "^8.9.0"
|
|
146
153
|
},
|
|
147
154
|
"scripts": {
|
|
148
155
|
"build": "rimraf dist && rollup -c",
|
package/vitest.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import './dist/cli-wrapper.
|
|
2
|
+
import './dist/cli-wrapper.js'
|
package/dist/browser.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export { c as createExpect, d as describe, e as expect, i as it, s as suite, t as test } from './chunk-runtime-chain.7a7f3c3b.mjs';
|
|
2
|
-
export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach } from './chunk-runtime-hooks.1a0bc3fd.mjs';
|
|
3
|
-
export { a as setupGlobalEnv, s as startTests } from './chunk-runtime-error.2723946b.mjs';
|
|
4
|
-
import * as chai from 'chai';
|
|
5
|
-
export { chai };
|
|
6
|
-
export { assert, should } from 'chai';
|
|
7
|
-
import 'util';
|
|
8
|
-
import './chunk-mock-date.2917be60.mjs';
|
|
9
|
-
import 'path';
|
|
10
|
-
import './chunk-constants.71e8a211.mjs';
|
|
11
|
-
import 'tty';
|
|
12
|
-
import 'url';
|
|
13
|
-
import 'local-pkg';
|
|
14
|
-
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
15
|
-
import './chunk-runtime-rpc.00a890d2.mjs';
|
|
16
|
-
import './chunk-utils-timers.b48455ed.mjs';
|
|
17
|
-
import 'fs';
|
|
18
|
-
import './chunk-utils-source-map.2be5aa48.mjs';
|
|
19
|
-
import './spy.mjs';
|
|
20
|
-
import 'tinyspy';
|
|
21
|
-
import 'perf_hooks';
|
|
22
|
-
import './chunk-integrations-coverage.99c020eb.mjs';
|
|
23
|
-
import './chunk-env-node.ceb43f1c.mjs';
|
|
24
|
-
import 'console';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { k as globalApis } from './chunk-constants.71e8a211.mjs';
|
|
2
|
-
import { i as index } from './chunk-runtime-hooks.1a0bc3fd.mjs';
|
|
3
|
-
import 'tty';
|
|
4
|
-
import 'url';
|
|
5
|
-
import 'path';
|
|
6
|
-
import './chunk-runtime-chain.7a7f3c3b.mjs';
|
|
7
|
-
import 'util';
|
|
8
|
-
import './chunk-mock-date.2917be60.mjs';
|
|
9
|
-
import 'local-pkg';
|
|
10
|
-
import 'chai';
|
|
11
|
-
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
12
|
-
import './chunk-runtime-rpc.00a890d2.mjs';
|
|
13
|
-
import './chunk-utils-timers.b48455ed.mjs';
|
|
14
|
-
import 'fs';
|
|
15
|
-
import './chunk-utils-source-map.2be5aa48.mjs';
|
|
16
|
-
import './spy.mjs';
|
|
17
|
-
import 'tinyspy';
|
|
18
|
-
|
|
19
|
-
function registerApiGlobally() {
|
|
20
|
-
globalApis.forEach((api) => {
|
|
21
|
-
globalThis[api] = index[api];
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { registerApiGlobally };
|
package/dist/node.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.f55c4577.mjs';
|
|
2
|
-
export { V as VitestRunner } from './chunk-runtime-mocker.8d4a2494.mjs';
|
|
3
|
-
import './chunk-constants.71e8a211.mjs';
|
|
4
|
-
import 'tty';
|
|
5
|
-
import 'url';
|
|
6
|
-
import 'path';
|
|
7
|
-
import './chunk-integrations-coverage.99c020eb.mjs';
|
|
8
|
-
import 'local-pkg';
|
|
9
|
-
import './chunk-env-node.ceb43f1c.mjs';
|
|
10
|
-
import 'console';
|
|
11
|
-
import './chunk-mock-date.2917be60.mjs';
|
|
12
|
-
import 'vite';
|
|
13
|
-
import 'process';
|
|
14
|
-
import 'fs';
|
|
15
|
-
import 'os';
|
|
16
|
-
import 'util';
|
|
17
|
-
import 'stream';
|
|
18
|
-
import 'events';
|
|
19
|
-
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
20
|
-
import './chunk-vite-node-client.da0a17ff.mjs';
|
|
21
|
-
import 'module';
|
|
22
|
-
import 'vm';
|
|
23
|
-
import './chunk-vite-node-utils.473cd0b2.mjs';
|
|
24
|
-
import 'assert';
|
|
25
|
-
import 'debug';
|
|
26
|
-
import 'perf_hooks';
|
|
27
|
-
import 'worker_threads';
|
|
28
|
-
import 'tinypool';
|
|
29
|
-
import './chunk-utils-source-map.2be5aa48.mjs';
|
|
30
|
-
import './chunk-utils-timers.b48455ed.mjs';
|
|
31
|
-
import 'crypto';
|
|
32
|
-
import './vendor-index.9d9196cc.mjs';
|
|
33
|
-
import './vendor-index.29636037.mjs';
|
|
34
|
-
import './chunk-magic-string.56b2b543.mjs';
|
|
35
|
-
import 'strip-literal';
|
|
36
|
-
import 'readline';
|
|
37
|
-
import './vendor-index.ae96af6e.mjs';
|
package/dist/suite.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import 'util';
|
|
2
|
-
import './chunk-mock-date.2917be60.mjs';
|
|
3
|
-
export { b as bench, f as clearCollectorContext, p as createSuiteHooks, h as defaultSuite, d as describe, g as getCurrentSuite, i as it, s as suite, t as test } from './chunk-runtime-chain.7a7f3c3b.mjs';
|
|
4
|
-
import 'path';
|
|
5
|
-
import './chunk-constants.71e8a211.mjs';
|
|
6
|
-
import 'tty';
|
|
7
|
-
import 'url';
|
|
8
|
-
import 'local-pkg';
|
|
9
|
-
import 'chai';
|
|
10
|
-
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
11
|
-
import './chunk-runtime-rpc.00a890d2.mjs';
|
|
12
|
-
import './chunk-utils-timers.b48455ed.mjs';
|
|
13
|
-
import 'fs';
|
|
14
|
-
import './chunk-utils-source-map.2be5aa48.mjs';
|
|
15
|
-
import './spy.mjs';
|
|
16
|
-
import 'tinyspy';
|