vitest 3.0.0-beta.4 → 3.0.1
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 +2 -2
- package/dist/browser.js +1 -1
- package/dist/chunks/{base.BJ8KO-VX.js → base.gZAre3Yy.js} +3 -3
- package/dist/chunks/{cac.BAYqQ2aM.js → cac.Davy6Tyx.js} +24 -24
- package/dist/chunks/{cli-api.Dhl34Trr.js → cli-api.DO-hp2Kx.js} +1031 -162
- package/dist/chunks/{console.CN7AiMGV.js → console.BxE0RUCr.js} +3 -3
- package/dist/chunks/{creator.Ot9GlSGw.js → creator.B8v1wNyQ.js} +3 -3
- package/dist/chunks/{execute.BMOaRArH.js → execute.4vt3NSmG.js} +3 -4
- package/dist/chunks/global.CnI8_G5V.d.ts +133 -0
- package/dist/chunks/{globals.C5RQxaV3.js → globals.BSNBk3vE.js} +2 -2
- package/dist/chunks/{index.BQbxGbG9.js → index.Bf4FgyZN.js} +1 -1
- package/dist/chunks/{index.BJDntFik.js → index.Bh7wTRhh.js} +8 -8
- package/dist/chunks/{index.B2M9nD1V.js → index.C2XSkjNu.js} +5 -5
- package/dist/chunks/{index.DQboAxJm.js → index.DfqWks-F.js} +2 -1
- package/dist/chunks/{index.CAueP3cK.js → index.DyQPL4DO.js} +200 -945
- package/dist/chunks/{index.68735LiX.js → index.TH3f4LSA.js} +2 -2
- package/dist/chunks/{index.K90BXFOx.js → index.cYxyd29h.js} +12 -12
- package/dist/chunks/{inspector.DKLceBVD.js → inspector.CU9GlB9I.js} +1 -1
- package/dist/chunks/{reporters.Dcdq51WE.d.ts → reporters.Y8BYiXBN.d.ts} +340 -239
- package/dist/chunks/{resolveConfig.kZFMjKCQ.js → resolveConfig.DATSOo7x.js} +150 -65
- package/dist/chunks/{rpc.C3q9uwRX.js → rpc.Bf456uf4.js} +1 -2
- package/dist/chunks/{runBaseTests.URiUrnWK.js → runBaseTests.Ba8jtu6O.js} +8 -8
- package/dist/chunks/{setup-common.D0zLenuv.js → setup-common.jLbIuaww.js} +1 -1
- package/dist/chunks/{RandomSequencer.DB__To1b.js → typechecker.ChNaIV36.js} +62 -115
- package/dist/chunks/{utils.yHKcm4dz.js → utils.DJWL04yX.js} +1 -1
- package/dist/chunks/{vi.Da_PT3Vw.js → vi.CjhMlMwf.js} +6 -6
- package/dist/chunks/{vite.DzluO1Kj.d.ts → vite.CQ0dHgkN.d.ts} +1 -1
- package/dist/chunks/{vm.DrFVeTXo.js → vm.CUw7ChSp.js} +5 -5
- package/dist/chunks/{worker.BIVMnzXw.d.ts → worker.B1y96qmv.d.ts} +1 -1
- package/dist/chunks/{worker.Hz_LAzfd.d.ts → worker.CIpff8Eg.d.ts} +2 -4
- package/dist/cli.js +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.ts +3 -3
- package/dist/config.js +1 -1
- package/dist/coverage.d.ts +1 -1
- package/dist/coverage.js +12 -11
- package/dist/environments.js +1 -1
- package/dist/execute.d.ts +1 -1
- package/dist/execute.js +1 -1
- package/dist/index.d.ts +17 -118
- package/dist/index.js +2 -2
- package/dist/node.d.ts +11 -8
- package/dist/node.js +27 -25
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +4 -6
- package/dist/runners.d.ts +1 -0
- package/dist/runners.js +10 -10
- package/dist/worker.js +5 -5
- package/dist/workers/forks.js +2 -2
- package/dist/workers/runVmTests.js +7 -7
- package/dist/workers/threads.js +2 -2
- package/dist/workers/vmForks.js +3 -3
- package/dist/workers/vmThreads.js +3 -3
- package/dist/workers.d.ts +2 -2
- package/dist/workers.js +8 -8
- package/package.json +17 -17
- package/dist/chunks/types.BOjykUpq.d.ts +0 -27
package/dist/workers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { p as provideWorkerState } from './chunks/utils.C8RiOc4B.js';
|
|
2
2
|
export { collect as collectVitestWorkerTests, run as runVitestWorker } from './worker.js';
|
|
3
|
-
export { r as runBaseTests } from './chunks/base.
|
|
3
|
+
export { r as runBaseTests } from './chunks/base.gZAre3Yy.js';
|
|
4
4
|
export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './chunks/utils.Cn0zI1t3.js';
|
|
5
|
-
export { r as runVmTests } from './chunks/vm.
|
|
5
|
+
export { r as runVmTests } from './chunks/vm.CUw7ChSp.js';
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
@@ -10,20 +10,20 @@ import 'tinypool';
|
|
|
10
10
|
import 'vite-node/client';
|
|
11
11
|
import 'node:fs';
|
|
12
12
|
import 'pathe';
|
|
13
|
-
import './chunks/index.
|
|
13
|
+
import './chunks/index.cYxyd29h.js';
|
|
14
14
|
import 'node:console';
|
|
15
|
-
import './chunks/inspector.
|
|
15
|
+
import './chunks/inspector.CU9GlB9I.js';
|
|
16
16
|
import 'node:module';
|
|
17
|
-
import './chunks/rpc.
|
|
18
|
-
import './chunks/index.
|
|
19
|
-
import './chunks/execute.
|
|
17
|
+
import './chunks/rpc.Bf456uf4.js';
|
|
18
|
+
import './chunks/index.TH3f4LSA.js';
|
|
19
|
+
import './chunks/execute.4vt3NSmG.js';
|
|
20
20
|
import 'node:vm';
|
|
21
21
|
import '@vitest/utils/error';
|
|
22
22
|
import 'vite-node/utils';
|
|
23
23
|
import './path.js';
|
|
24
24
|
import 'node:path';
|
|
25
25
|
import '@vitest/mocker';
|
|
26
|
-
import './chunks/console.
|
|
26
|
+
import './chunks/console.BxE0RUCr.js';
|
|
27
27
|
import 'node:stream';
|
|
28
28
|
import 'tinyrainbow';
|
|
29
29
|
import './chunks/date.W2xKR2qe.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
|
|
123
123
|
"happy-dom": "*",
|
|
124
124
|
"jsdom": "*",
|
|
125
|
-
"@vitest/
|
|
126
|
-
"@vitest/
|
|
125
|
+
"@vitest/browser": "3.0.1",
|
|
126
|
+
"@vitest/ui": "3.0.1"
|
|
127
127
|
},
|
|
128
128
|
"peerDependenciesMeta": {
|
|
129
129
|
"@edge-runtime/vm": {
|
|
@@ -150,26 +150,26 @@
|
|
|
150
150
|
"debug": "^4.4.0",
|
|
151
151
|
"expect-type": "^1.1.0",
|
|
152
152
|
"magic-string": "^0.30.17",
|
|
153
|
-
"pathe": "^2.0.
|
|
153
|
+
"pathe": "^2.0.1",
|
|
154
154
|
"std-env": "^3.8.0",
|
|
155
155
|
"tinybench": "^2.9.0",
|
|
156
156
|
"tinyexec": "^0.3.2",
|
|
157
157
|
"tinypool": "^1.0.2",
|
|
158
|
-
"tinyrainbow": "^
|
|
158
|
+
"tinyrainbow": "^2.0.0",
|
|
159
159
|
"vite": "^5.0.0 || ^6.0.0",
|
|
160
160
|
"why-is-node-running": "^2.3.0",
|
|
161
|
-
"@vitest/
|
|
162
|
-
"@vitest/
|
|
163
|
-
"@vitest/
|
|
164
|
-
"@vitest/
|
|
165
|
-
"@vitest/
|
|
166
|
-
"@vitest/
|
|
167
|
-
"vite-node": "3.0.
|
|
168
|
-
"@vitest/
|
|
161
|
+
"@vitest/expect": "3.0.1",
|
|
162
|
+
"@vitest/mocker": "3.0.1",
|
|
163
|
+
"@vitest/pretty-format": "^3.0.1",
|
|
164
|
+
"@vitest/utils": "3.0.1",
|
|
165
|
+
"@vitest/spy": "3.0.1",
|
|
166
|
+
"@vitest/snapshot": "3.0.1",
|
|
167
|
+
"vite-node": "3.0.1",
|
|
168
|
+
"@vitest/runner": "3.0.1"
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
171
|
"@ampproject/remapping": "^2.3.0",
|
|
172
|
-
"@antfu/install-pkg": "^0.
|
|
172
|
+
"@antfu/install-pkg": "^1.0.0",
|
|
173
173
|
"@edge-runtime/vm": "^5.0.0",
|
|
174
174
|
"@sinonjs/fake-timers": "14.0.0",
|
|
175
175
|
"@types/debug": "^4.1.12",
|
|
@@ -178,18 +178,18 @@
|
|
|
178
178
|
"@types/istanbul-reports": "^3.0.4",
|
|
179
179
|
"@types/jsdom": "^21.1.7",
|
|
180
180
|
"@types/micromatch": "^4.0.9",
|
|
181
|
-
"@types/node": "^22.10.
|
|
181
|
+
"@types/node": "^22.10.7",
|
|
182
182
|
"@types/prompts": "^2.4.9",
|
|
183
183
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
184
184
|
"acorn-walk": "^8.3.4",
|
|
185
185
|
"birpc": "0.2.19",
|
|
186
186
|
"cac": "^6.7.14",
|
|
187
187
|
"chai-subset": "^1.6.0",
|
|
188
|
-
"fast-glob": "3.3.
|
|
188
|
+
"fast-glob": "3.3.3",
|
|
189
189
|
"find-up": "^6.3.0",
|
|
190
190
|
"flatted": "^3.3.2",
|
|
191
191
|
"get-tsconfig": "^4.8.1",
|
|
192
|
-
"happy-dom": "^16.0
|
|
192
|
+
"happy-dom": "^16.6.0",
|
|
193
193
|
"jsdom": "^25.0.1",
|
|
194
194
|
"local-pkg": "^0.5.1",
|
|
195
195
|
"micromatch": "^4.0.8",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
type RawErrsMap = Map<string, TscErrorInfo[]>;
|
|
2
|
-
interface TscErrorInfo {
|
|
3
|
-
filePath: string;
|
|
4
|
-
errCode: number;
|
|
5
|
-
errMsg: string;
|
|
6
|
-
line: number;
|
|
7
|
-
column: number;
|
|
8
|
-
}
|
|
9
|
-
interface CollectLineNumbers {
|
|
10
|
-
target: number;
|
|
11
|
-
next: number;
|
|
12
|
-
prev?: number;
|
|
13
|
-
}
|
|
14
|
-
type CollectLines = {
|
|
15
|
-
[key in keyof CollectLineNumbers]: string;
|
|
16
|
-
};
|
|
17
|
-
interface RootAndTarget {
|
|
18
|
-
root: string;
|
|
19
|
-
targetAbsPath: string;
|
|
20
|
-
}
|
|
21
|
-
type Context = RootAndTarget & {
|
|
22
|
-
rawErrsMap: RawErrsMap;
|
|
23
|
-
openedDirs: Set<string>;
|
|
24
|
-
lastActivePath?: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type { CollectLineNumbers as C, RawErrsMap as R, TscErrorInfo as T, CollectLines as a, RootAndTarget as b, Context as c };
|