vitest 3.0.3 → 3.0.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.
Files changed (31) hide show
  1. package/dist/browser.d.ts +1 -1
  2. package/dist/chunks/{base.gZAre3Yy.js → base.wKnmhRYd.js} +1 -1
  3. package/dist/chunks/{cac.Cfe6a4o8.js → cac.DYBkNWP6.js} +4 -4
  4. package/dist/chunks/{cli-api.BaY17YBo.js → cli-api.Ci-9Ccnz.js} +180 -72
  5. package/dist/chunks/{creator.B8v1wNyQ.js → creator.fUJbheb8.js} +2 -2
  6. package/dist/chunks/{execute.4vt3NSmG.js → execute.PoofJYS5.js} +2 -1
  7. package/dist/chunks/{index.Bh7wTRhh.js → index.B57_6XMC.js} +7 -7
  8. package/dist/chunks/{index.DfqWks-F.js → index.NxxmQyK2.js} +7 -7
  9. package/dist/chunks/{index.CvtAP0DU.js → index.vId0fl99.js} +1 -1
  10. package/dist/chunks/{reporters.Y8BYiXBN.d.ts → reporters.0x019-V2.d.ts} +4 -3
  11. package/dist/chunks/{resolveConfig.9CnFfuqj.js → resolveConfig.DkmB2h7h.js} +21 -12
  12. package/dist/chunks/{typechecker.ChNaIV36.js → typechecker.CdcjdhoT.js} +17 -11
  13. package/dist/chunks/{vite.CQ0dHgkN.d.ts → vite.DiG-KbRF.d.ts} +1 -1
  14. package/dist/chunks/{vm.CUw7ChSp.js → vm.DXDoSHPT.js} +1 -1
  15. package/dist/cli.js +1 -1
  16. package/dist/config.d.ts +3 -3
  17. package/dist/coverage.d.ts +1 -1
  18. package/dist/coverage.js +2 -2
  19. package/dist/execute.d.ts +1 -1
  20. package/dist/execute.js +1 -1
  21. package/dist/index.d.ts +3 -3
  22. package/dist/node.d.ts +5 -5
  23. package/dist/node.js +10 -11
  24. package/dist/reporters.d.ts +1 -1
  25. package/dist/reporters.js +2 -2
  26. package/dist/workers/forks.js +2 -2
  27. package/dist/workers/threads.js +2 -2
  28. package/dist/workers/vmForks.js +2 -2
  29. package/dist/workers/vmThreads.js +2 -2
  30. package/dist/workers.js +3 -3
  31. package/package.json +19 -15
package/dist/reporters.js CHANGED
@@ -1,4 +1,4 @@
1
- export { B as BasicReporter, a as BenchmarkReporter, b as BenchmarkReportsMap, D as DefaultReporter, c as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, d as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, e as TapReporter, V as VerboseBenchmarkReporter, f as VerboseReporter } from './chunks/index.CvtAP0DU.js';
1
+ export { B as BasicReporter, a as BenchmarkReporter, b as BenchmarkReportsMap, D as DefaultReporter, c as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, d as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, e as TapReporter, V as VerboseBenchmarkReporter, f as VerboseReporter } from './chunks/index.vId0fl99.js';
2
2
  import 'node:fs';
3
3
  import '@vitest/runner/utils';
4
4
  import 'pathe';
@@ -8,7 +8,7 @@ import 'node:util';
8
8
  import '@vitest/utils';
9
9
  import 'node:perf_hooks';
10
10
  import '@vitest/utils/source-map';
11
- import './chunks/typechecker.ChNaIV36.js';
11
+ import './chunks/typechecker.CdcjdhoT.js';
12
12
  import 'std-env';
13
13
  import 'node:fs/promises';
14
14
  import 'tinyexec';
@@ -1,8 +1,8 @@
1
1
  import v8 from 'node:v8';
2
- import { r as runBaseTests } from '../chunks/base.gZAre3Yy.js';
2
+ import { r as runBaseTests } from '../chunks/base.wKnmhRYd.js';
3
3
  import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
4
4
  import 'vite-node/client';
5
- import '../chunks/execute.4vt3NSmG.js';
5
+ import '../chunks/execute.PoofJYS5.js';
6
6
  import 'node:fs';
7
7
  import 'node:url';
8
8
  import 'node:vm';
@@ -1,7 +1,7 @@
1
- import { r as runBaseTests } from '../chunks/base.gZAre3Yy.js';
1
+ import { r as runBaseTests } from '../chunks/base.wKnmhRYd.js';
2
2
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
3
3
  import 'vite-node/client';
4
- import '../chunks/execute.4vt3NSmG.js';
4
+ import '../chunks/execute.PoofJYS5.js';
5
5
  import 'node:fs';
6
6
  import 'node:url';
7
7
  import 'node:vm';
@@ -1,6 +1,6 @@
1
1
  import v8 from 'node:v8';
2
2
  import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
3
- import { r as runVmTests } from '../chunks/vm.CUw7ChSp.js';
3
+ import { r as runVmTests } from '../chunks/vm.DXDoSHPT.js';
4
4
  import '@vitest/utils';
5
5
  import 'node:url';
6
6
  import 'node:vm';
@@ -13,7 +13,7 @@ import 'node:stream';
13
13
  import 'tinyrainbow';
14
14
  import '../chunks/date.W2xKR2qe.js';
15
15
  import '../chunks/utils.C8RiOc4B.js';
16
- import '../chunks/execute.4vt3NSmG.js';
16
+ import '../chunks/execute.PoofJYS5.js';
17
17
  import 'node:fs';
18
18
  import '@vitest/utils/error';
19
19
  import 'vite-node/client';
@@ -1,5 +1,5 @@
1
1
  import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
2
- import { r as runVmTests } from '../chunks/vm.CUw7ChSp.js';
2
+ import { r as runVmTests } from '../chunks/vm.DXDoSHPT.js';
3
3
  import '@vitest/utils';
4
4
  import 'node:url';
5
5
  import 'node:vm';
@@ -12,7 +12,7 @@ import 'node:stream';
12
12
  import 'tinyrainbow';
13
13
  import '../chunks/date.W2xKR2qe.js';
14
14
  import '../chunks/utils.C8RiOc4B.js';
15
- import '../chunks/execute.4vt3NSmG.js';
15
+ import '../chunks/execute.PoofJYS5.js';
16
16
  import 'node:fs';
17
17
  import '@vitest/utils/error';
18
18
  import 'vite-node/client';
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.gZAre3Yy.js';
3
+ export { r as runBaseTests } from './chunks/base.wKnmhRYd.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.CUw7ChSp.js';
5
+ export { r as runVmTests } from './chunks/vm.DXDoSHPT.js';
6
6
  import '@vitest/utils';
7
7
  import 'node:url';
8
8
  import '@vitest/utils/source-map';
@@ -16,7 +16,7 @@ import './chunks/inspector.CU9GlB9I.js';
16
16
  import 'node:module';
17
17
  import './chunks/rpc.Bf456uf4.js';
18
18
  import './chunks/index.TH3f4LSA.js';
19
- import './chunks/execute.4vt3NSmG.js';
19
+ import './chunks/execute.PoofJYS5.js';
20
20
  import 'node:vm';
21
21
  import '@vitest/utils/error';
22
22
  import 'vite-node/utils';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "3.0.3",
4
+ "version": "3.0.4",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -119,16 +119,20 @@
119
119
  },
120
120
  "peerDependencies": {
121
121
  "@edge-runtime/vm": "*",
122
+ "@types/debug": "^4.1.12",
122
123
  "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
123
124
  "happy-dom": "*",
124
125
  "jsdom": "*",
125
- "@vitest/browser": "3.0.3",
126
- "@vitest/ui": "3.0.3"
126
+ "@vitest/browser": "3.0.4",
127
+ "@vitest/ui": "3.0.4"
127
128
  },
128
129
  "peerDependenciesMeta": {
129
130
  "@edge-runtime/vm": {
130
131
  "optional": true
131
132
  },
133
+ "@types/debug": {
134
+ "optional": true
135
+ },
132
136
  "@types/node": {
133
137
  "optional": true
134
138
  },
@@ -150,7 +154,7 @@
150
154
  "debug": "^4.4.0",
151
155
  "expect-type": "^1.1.0",
152
156
  "magic-string": "^0.30.17",
153
- "pathe": "^2.0.1",
157
+ "pathe": "^2.0.2",
154
158
  "std-env": "^3.8.0",
155
159
  "tinybench": "^2.9.0",
156
160
  "tinyexec": "^0.3.2",
@@ -158,14 +162,14 @@
158
162
  "tinyrainbow": "^2.0.0",
159
163
  "vite": "^5.0.0 || ^6.0.0",
160
164
  "why-is-node-running": "^2.3.0",
161
- "@vitest/mocker": "3.0.3",
162
- "@vitest/expect": "3.0.3",
163
- "@vitest/pretty-format": "^3.0.3",
164
- "@vitest/runner": "3.0.3",
165
- "@vitest/snapshot": "3.0.3",
166
- "@vitest/spy": "3.0.3",
167
- "@vitest/utils": "3.0.3",
168
- "vite-node": "3.0.3"
165
+ "@vitest/expect": "3.0.4",
166
+ "@vitest/pretty-format": "^3.0.4",
167
+ "@vitest/mocker": "3.0.4",
168
+ "@vitest/runner": "3.0.4",
169
+ "@vitest/snapshot": "3.0.4",
170
+ "@vitest/spy": "3.0.4",
171
+ "@vitest/utils": "3.0.4",
172
+ "vite-node": "3.0.4"
169
173
  },
170
174
  "devDependencies": {
171
175
  "@ampproject/remapping": "^2.3.0",
@@ -178,7 +182,7 @@
178
182
  "@types/istanbul-reports": "^3.0.4",
179
183
  "@types/jsdom": "^21.1.7",
180
184
  "@types/micromatch": "^4.0.9",
181
- "@types/node": "^22.10.7",
185
+ "@types/node": "^22.10.9",
182
186
  "@types/prompts": "^2.4.9",
183
187
  "@types/sinonjs__fake-timers": "^8.1.5",
184
188
  "acorn-walk": "^8.3.4",
@@ -188,8 +192,8 @@
188
192
  "fast-glob": "3.3.3",
189
193
  "find-up": "^6.3.0",
190
194
  "flatted": "^3.3.2",
191
- "get-tsconfig": "^4.8.1",
192
- "happy-dom": "^16.6.0",
195
+ "get-tsconfig": "^4.10.0",
196
+ "happy-dom": "^16.7.2",
193
197
  "jsdom": "^25.0.1",
194
198
  "local-pkg": "^0.5.1",
195
199
  "micromatch": "^4.0.8",