vitest 0.32.2 → 0.32.4
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/LICENSE.md +33 -4
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +22 -5
- package/dist/child.js +3 -3
- package/dist/{chunk-api-setup.05e3917b.js → chunk-api-setup.8f785c4a.js} +18 -11
- package/dist/{chunk-install-pkg.62047ee6.js → chunk-install-pkg.3fc886f2.js} +69 -55
- package/dist/{chunk-integrations-globals.a56dee90.js → chunk-integrations-globals.0093e2ed.js} +5 -5
- package/dist/{chunk-node-git.4c43bd73.js → chunk-node-git.c410fed8.js} +3 -2
- package/dist/cli-wrapper.js +2 -2
- package/dist/cli.js +8 -8
- package/dist/config.d.ts +1 -1
- package/dist/coverage.d.ts +1 -1
- package/dist/entry.js +9 -9
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +60 -40
- package/dist/index.js +6 -6
- package/dist/loader.js +140 -4
- package/dist/node.d.ts +3 -3
- package/dist/node.js +9 -9
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +24 -19
- package/dist/suite.d.ts +1 -0
- package/dist/{types-2b1c412e.d.ts → types-198fd1d9.d.ts} +302 -77
- package/dist/vendor-_commonjsHelpers.7d1333e8.js +7 -0
- package/dist/{vendor-cli-api.f9adf98c.js → vendor-cli-api.cb31e1db.js} +281 -229
- package/dist/{vendor-coverage.de2180ed.js → vendor-coverage.2e41927a.js} +1 -1
- package/dist/{vendor-execute.001ae440.js → vendor-execute.3576af13.js} +14 -16
- package/dist/{vendor-index.c1e09929.js → vendor-index.1f85e5f1.js} +52 -39
- package/dist/{vendor-index.fad2598b.js → vendor-index.23ac4e13.js} +1 -1
- package/dist/{vendor-index.0f133dbe.js → vendor-index.2af39fbb.js} +5 -3
- package/dist/{vendor-index.fc98d30f.js → vendor-index.98139333.js} +4 -22
- package/dist/{vendor-index.87ab04c3.js → vendor-index.cc463d9e.js} +2 -1
- package/dist/{vendor-rpc.4d3d7a54.js → vendor-rpc.ad5b08c7.js} +10 -10
- package/dist/{vendor-run-once.69ce7172.js → vendor-run-once.1fa85ba7.js} +2 -2
- package/dist/vendor-vi.dd6706cb.js +3421 -0
- package/dist/worker.js +3 -3
- package/package.json +21 -22
- package/dist/vendor-_commonjsHelpers.76cdd49e.js +0 -3
- package/dist/vendor-setup.common.f1cf2231.js +0 -20
- package/dist/vendor-vi.74cf3ef7.js +0 -3354
- /package/dist/{vendor-index.75f2b63d.js → vendor-environments.75f2b63d.js} +0 -0
package/dist/worker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { performance } from 'node:perf_hooks';
|
|
2
|
-
import { c as createBirpc } from './vendor-index.
|
|
2
|
+
import { c as createBirpc } from './vendor-index.cc463d9e.js';
|
|
3
3
|
import { workerId } from 'tinypool';
|
|
4
4
|
import { g as getWorkerState } from './vendor-global.6795f91f.js';
|
|
5
|
-
import { s as startViteNode, m as moduleCache, a as mockMap } from './vendor-execute.
|
|
5
|
+
import { s as startViteNode, m as moduleCache, a as mockMap } from './vendor-execute.3576af13.js';
|
|
6
6
|
import { s as setupInspect } from './vendor-inspector.47fc8cbb.js';
|
|
7
|
-
import {
|
|
7
|
+
import { r as rpcDone } from './vendor-rpc.ad5b08c7.js';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import 'vite-node/client';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.32.
|
|
4
|
+
"version": "0.32.4",
|
|
5
5
|
"description": "A blazing fast unit test framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -132,35 +132,34 @@
|
|
|
132
132
|
"@types/chai": "^4.3.5",
|
|
133
133
|
"@types/chai-subset": "^1.3.3",
|
|
134
134
|
"@types/node": "*",
|
|
135
|
-
"acorn": "^8.
|
|
135
|
+
"acorn": "^8.9.0",
|
|
136
136
|
"acorn-walk": "^8.2.0",
|
|
137
137
|
"cac": "^6.7.14",
|
|
138
138
|
"chai": "^4.3.7",
|
|
139
|
-
"concordance": "^5.0.4",
|
|
140
139
|
"debug": "^4.3.4",
|
|
141
140
|
"local-pkg": "^0.4.3",
|
|
142
141
|
"magic-string": "^0.30.0",
|
|
143
|
-
"pathe": "^1.1.
|
|
142
|
+
"pathe": "^1.1.1",
|
|
144
143
|
"picocolors": "^1.0.0",
|
|
145
|
-
"std-env": "^3.3.
|
|
144
|
+
"std-env": "^3.3.3",
|
|
146
145
|
"strip-literal": "^1.0.1",
|
|
147
146
|
"tinybench": "^2.5.0",
|
|
148
147
|
"tinypool": "^0.5.0",
|
|
149
148
|
"vite": "^3.0.0 || ^4.0.0",
|
|
150
149
|
"why-is-node-running": "^2.2.2",
|
|
151
|
-
"@vitest/expect": "0.32.
|
|
152
|
-
"@vitest/runner": "0.32.
|
|
153
|
-
"
|
|
154
|
-
"@vitest/
|
|
155
|
-
"@vitest/spy": "0.32.
|
|
156
|
-
"
|
|
150
|
+
"@vitest/expect": "0.32.4",
|
|
151
|
+
"@vitest/runner": "0.32.4",
|
|
152
|
+
"@vitest/snapshot": "0.32.4",
|
|
153
|
+
"@vitest/utils": "0.32.4",
|
|
154
|
+
"@vitest/spy": "0.32.4",
|
|
155
|
+
"vite-node": "0.32.4"
|
|
157
156
|
},
|
|
158
157
|
"devDependencies": {
|
|
159
158
|
"@ampproject/remapping": "^2.2.1",
|
|
160
159
|
"@antfu/install-pkg": "^0.1.1",
|
|
161
|
-
"@edge-runtime/vm": "3.0.
|
|
160
|
+
"@edge-runtime/vm": "3.0.3",
|
|
162
161
|
"@jridgewell/trace-mapping": "^0.3.18",
|
|
163
|
-
"@sinonjs/fake-timers": "^
|
|
162
|
+
"@sinonjs/fake-timers": "^11.0.0",
|
|
164
163
|
"@types/diff": "^5.0.3",
|
|
165
164
|
"@types/estree": "^1.0.1",
|
|
166
165
|
"@types/istanbul-lib-coverage": "^2.0.4",
|
|
@@ -174,24 +173,24 @@
|
|
|
174
173
|
"cli-truncate": "^3.1.0",
|
|
175
174
|
"event-target-polyfill": "^0.0.3",
|
|
176
175
|
"execa": "^7.1.1",
|
|
177
|
-
"expect-type": "^0.
|
|
176
|
+
"expect-type": "^0.16.0",
|
|
178
177
|
"fast-glob": "^3.2.12",
|
|
179
178
|
"find-up": "^6.3.0",
|
|
180
179
|
"flatted": "^3.2.7",
|
|
181
|
-
"get-tsconfig": "^4.
|
|
182
|
-
"happy-dom": "^9.
|
|
180
|
+
"get-tsconfig": "^4.6.2",
|
|
181
|
+
"happy-dom": "^9.20.3",
|
|
183
182
|
"jsdom": "^22.1.0",
|
|
184
183
|
"log-update": "^5.0.1",
|
|
185
184
|
"micromatch": "^4.0.5",
|
|
186
|
-
"mlly": "^1.
|
|
185
|
+
"mlly": "^1.4.0",
|
|
187
186
|
"p-limit": "^4.0.0",
|
|
188
187
|
"pkg-types": "^1.0.3",
|
|
189
|
-
"playwright": "^1.
|
|
190
|
-
"pretty-format": "^
|
|
188
|
+
"playwright": "^1.35.1",
|
|
189
|
+
"pretty-format": "^29.5.0",
|
|
191
190
|
"prompts": "^2.4.2",
|
|
192
|
-
"safaridriver": "^0.0.
|
|
193
|
-
"strip-ansi": "^7.0
|
|
194
|
-
"webdriverio": "^8.
|
|
191
|
+
"safaridriver": "^0.0.5",
|
|
192
|
+
"strip-ansi": "^7.1.0",
|
|
193
|
+
"webdriverio": "^8.11.2",
|
|
195
194
|
"ws": "^8.13.0"
|
|
196
195
|
},
|
|
197
196
|
"scripts": {
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { setSafeTimers } from '@vitest/utils';
|
|
2
|
-
import { r as resetRunOnceCounter } from './vendor-run-once.69ce7172.js';
|
|
3
|
-
|
|
4
|
-
let globalSetup = false;
|
|
5
|
-
async function setupCommonEnv(config) {
|
|
6
|
-
resetRunOnceCounter();
|
|
7
|
-
setupDefines(config.defines);
|
|
8
|
-
if (globalSetup)
|
|
9
|
-
return;
|
|
10
|
-
globalSetup = true;
|
|
11
|
-
setSafeTimers();
|
|
12
|
-
if (config.globals)
|
|
13
|
-
(await import('./chunk-integrations-globals.a56dee90.js')).registerApiGlobally();
|
|
14
|
-
}
|
|
15
|
-
function setupDefines(defines) {
|
|
16
|
-
for (const key in defines)
|
|
17
|
-
globalThis[key] = defines[key];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { setupCommonEnv as s };
|