vitest 0.20.1 → 0.21.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 +9 -1882
- package/dist/browser.mjs +7 -7
- package/dist/{chunk-api-setup.7c4c8879.mjs → chunk-api-setup.89eb0e7a.mjs} +5 -5
- package/dist/{chunk-constants.16825f0c.mjs → chunk-constants.9da1ef26.mjs} +1 -1
- package/dist/{chunk-defaults.1c51d585.mjs → chunk-defaults.8390340d.mjs} +2 -2
- package/dist/{chunk-integrations-globals.56a11010.mjs → chunk-integrations-globals.a798d352.mjs} +6 -6
- package/dist/{chunk-mock-date.9160e13b.mjs → chunk-mock-date.ea3b3121.mjs} +10 -7
- package/dist/{chunk-node-git.43dbdd42.mjs → chunk-node-git.e0dc0a7e.mjs} +1 -1
- package/dist/{chunk-runtime-chain.b6c2cdbc.mjs → chunk-runtime-chain.44b4224d.mjs} +30 -21
- package/dist/{chunk-runtime-error.0aa0dc06.mjs → chunk-runtime-error.95e53764.mjs} +12 -11
- package/dist/{chunk-runtime-hooks.3ee34848.mjs → chunk-runtime-hooks.291644ec.mjs} +4 -4
- package/dist/{chunk-runtime-mocker.0a8f7c5e.mjs → chunk-runtime-mocker.6190d6a3.mjs} +19 -11
- package/dist/{chunk-runtime-rpc.dbf0b31d.mjs → chunk-runtime-rpc.fc50dcc0.mjs} +1 -1
- package/dist/{chunk-utils-source-map.8198ebd9.mjs → chunk-utils-source-map.d307e4ea.mjs} +1 -1
- package/dist/{chunk-vite-node-client.a247c2c2.mjs → chunk-vite-node-client.b59ba135.mjs} +2 -2
- package/dist/{chunk-vite-node-debug.c5887932.mjs → chunk-vite-node-debug.dbce2e1f.mjs} +1 -1
- package/dist/{chunk-vite-node-externalize.fce5b934.mjs → chunk-vite-node-externalize.80bed9b3.mjs} +36 -19
- package/dist/{chunk-vite-node-utils.9dfd1e3f.mjs → chunk-vite-node-utils.96438e82.mjs} +2 -2
- package/dist/cli.mjs +7 -7
- package/dist/config.d.ts +2 -67
- package/dist/entry.mjs +7 -7
- package/dist/global-644546f7.d.ts +1777 -0
- package/dist/index-3f764034.d.ts +164 -0
- package/dist/index.d.ts +29 -1898
- package/dist/index.mjs +5 -5
- package/dist/loader.mjs +72 -15
- package/dist/mocker-5e2a8e41.d.ts +3 -0
- package/dist/node.d.ts +7 -1662
- package/dist/node.mjs +8 -8
- package/dist/suite.mjs +4 -4
- package/dist/worker.mjs +6 -6
- package/package.json +10 -10
package/dist/node.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.
|
|
2
|
-
export { V as VitestRunner } from './chunk-runtime-mocker.
|
|
3
|
-
import './chunk-mock-date.
|
|
1
|
+
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.80bed9b3.mjs';
|
|
2
|
+
export { V as VitestRunner } from './chunk-runtime-mocker.6190d6a3.mjs';
|
|
3
|
+
import './chunk-mock-date.ea3b3121.mjs';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
7
|
-
import './chunk-defaults.
|
|
7
|
+
import './chunk-defaults.8390340d.mjs';
|
|
8
8
|
import 'fs';
|
|
9
9
|
import 'module';
|
|
10
10
|
import 'url';
|
|
11
11
|
import 'vite';
|
|
12
12
|
import 'process';
|
|
13
|
-
import './chunk-constants.
|
|
13
|
+
import './chunk-constants.9da1ef26.mjs';
|
|
14
14
|
import 'os';
|
|
15
15
|
import 'util';
|
|
16
16
|
import 'stream';
|
|
17
17
|
import 'events';
|
|
18
18
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
19
|
-
import './chunk-vite-node-client.
|
|
19
|
+
import './chunk-vite-node-client.b59ba135.mjs';
|
|
20
20
|
import 'vm';
|
|
21
|
-
import './chunk-vite-node-utils.
|
|
21
|
+
import './chunk-vite-node-utils.96438e82.mjs';
|
|
22
22
|
import 'assert';
|
|
23
23
|
import 'debug';
|
|
24
24
|
import 'worker_threads';
|
|
25
25
|
import 'tinypool';
|
|
26
26
|
import 'perf_hooks';
|
|
27
|
-
import './chunk-utils-source-map.
|
|
27
|
+
import './chunk-utils-source-map.d307e4ea.mjs';
|
|
28
28
|
import './chunk-utils-timers.b48455ed.mjs';
|
|
29
29
|
import 'crypto';
|
|
30
30
|
import './vendor-index.61438b77.mjs';
|
package/dist/suite.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import 'util';
|
|
2
|
-
import './chunk-mock-date.
|
|
3
|
-
export { e as clearCollectorContext, o as createSuiteHooks, f as defaultSuite, d as describe, g as getCurrentSuite, i as it, s as suite, t as test } from './chunk-runtime-chain.
|
|
2
|
+
import './chunk-mock-date.ea3b3121.mjs';
|
|
3
|
+
export { e as clearCollectorContext, o as createSuiteHooks, f as defaultSuite, d as describe, g as getCurrentSuite, i as it, s as suite, t as test } from './chunk-runtime-chain.44b4224d.mjs';
|
|
4
4
|
import './chunk-utils-global.fa20c2f6.mjs';
|
|
5
5
|
import 'path';
|
|
6
6
|
import 'tty';
|
|
7
7
|
import 'local-pkg';
|
|
8
8
|
import 'chai';
|
|
9
9
|
import './vendor-_commonjsHelpers.4da45ef5.mjs';
|
|
10
|
-
import './chunk-runtime-rpc.
|
|
10
|
+
import './chunk-runtime-rpc.fc50dcc0.mjs';
|
|
11
11
|
import './chunk-utils-timers.b48455ed.mjs';
|
|
12
12
|
import 'fs';
|
|
13
|
-
import './chunk-utils-source-map.
|
|
13
|
+
import './chunk-utils-source-map.d307e4ea.mjs';
|
|
14
14
|
import './spy.mjs';
|
|
15
15
|
import 'tinyspy';
|
package/dist/worker.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { y as resolve } from './chunk-mock-date.
|
|
2
|
-
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-client.
|
|
1
|
+
import { y as resolve } from './chunk-mock-date.ea3b3121.mjs';
|
|
2
|
+
import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-client.b59ba135.mjs';
|
|
3
3
|
import { workerId } from 'tinypool';
|
|
4
|
-
import { d as distDir } from './chunk-constants.
|
|
5
|
-
import { e as executeInViteNode } from './chunk-runtime-mocker.
|
|
6
|
-
import { r as rpc } from './chunk-runtime-rpc.
|
|
4
|
+
import { d as distDir } from './chunk-constants.9da1ef26.mjs';
|
|
5
|
+
import { e as executeInViteNode } from './chunk-runtime-mocker.6190d6a3.mjs';
|
|
6
|
+
import { r as rpc } from './chunk-runtime-rpc.fc50dcc0.mjs';
|
|
7
7
|
import { g as getWorkerState } from './chunk-utils-global.fa20c2f6.mjs';
|
|
8
8
|
import 'path';
|
|
9
9
|
import 'tty';
|
|
@@ -11,7 +11,7 @@ import 'local-pkg';
|
|
|
11
11
|
import 'module';
|
|
12
12
|
import 'url';
|
|
13
13
|
import 'vm';
|
|
14
|
-
import './chunk-vite-node-utils.
|
|
14
|
+
import './chunk-vite-node-utils.96438e82.mjs';
|
|
15
15
|
import 'fs';
|
|
16
16
|
import 'assert';
|
|
17
17
|
import 'util';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@antfu/install-pkg": "^0.1.0",
|
|
105
|
-
"@edge-runtime/vm": "1.1.0-beta.
|
|
105
|
+
"@edge-runtime/vm": "1.1.0-beta.23",
|
|
106
106
|
"@sinonjs/fake-timers": "^9.1.2",
|
|
107
107
|
"@types/diff": "^5.0.2",
|
|
108
|
-
"@types/jsdom": "^
|
|
108
|
+
"@types/jsdom": "^20.0.0",
|
|
109
109
|
"@types/micromatch": "^4.0.2",
|
|
110
110
|
"@types/natural-compare": "^1.4.1",
|
|
111
111
|
"@types/prompts": "^2.4.0",
|
|
112
112
|
"@types/sinonjs__fake-timers": "^8.1.2",
|
|
113
|
-
"@vitest/ui": "0.
|
|
113
|
+
"@vitest/ui": "0.21.0",
|
|
114
114
|
"birpc": "^0.2.3",
|
|
115
|
-
"c8": "^7.
|
|
115
|
+
"c8": "^7.12.0",
|
|
116
116
|
"cac": "^6.7.12",
|
|
117
117
|
"chai-subset": "^1.6.0",
|
|
118
118
|
"cli-truncate": "^3.1.0",
|
|
@@ -121,12 +121,12 @@
|
|
|
121
121
|
"fast-glob": "^3.2.11",
|
|
122
122
|
"find-up": "^6.3.0",
|
|
123
123
|
"flatted": "^3.2.6",
|
|
124
|
-
"happy-dom": "^6.0.
|
|
125
|
-
"jsdom": "^
|
|
124
|
+
"happy-dom": "^6.0.4",
|
|
125
|
+
"jsdom": "^20.0.0",
|
|
126
126
|
"log-update": "^5.0.1",
|
|
127
127
|
"magic-string": "^0.26.2",
|
|
128
128
|
"micromatch": "^4.0.5",
|
|
129
|
-
"mlly": "^0.5.
|
|
129
|
+
"mlly": "^0.5.5",
|
|
130
130
|
"natural-compare": "^1.4.0",
|
|
131
131
|
"p-limit": "^4.0.0",
|
|
132
132
|
"pathe": "^0.2.0",
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
"pkg-types": "^0.3.3",
|
|
135
135
|
"pretty-format": "^27.5.1",
|
|
136
136
|
"prompts": "^2.4.2",
|
|
137
|
-
"rollup": "^2.77.
|
|
137
|
+
"rollup": "^2.77.2",
|
|
138
138
|
"source-map-js": "^1.0.2",
|
|
139
139
|
"strip-ansi": "^7.0.1",
|
|
140
140
|
"typescript": "^4.7.4",
|
|
141
|
-
"vite-node": "0.
|
|
141
|
+
"vite-node": "0.21.0",
|
|
142
142
|
"ws": "^8.8.1"
|
|
143
143
|
},
|
|
144
144
|
"scripts": {
|