vitest 2.1.4 → 2.2.0-beta.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.
Files changed (46) hide show
  1. package/dist/browser.d.ts +11 -11
  2. package/dist/browser.js +1 -1
  3. package/dist/chunks/{base.C3xNdjV6.js → base.BS0HhLXd.js} +1 -1
  4. package/dist/chunks/{cac.DrfPaMvZ.js → cac.Z91LBqmg.js} +56 -7
  5. package/dist/chunks/{cli-api.CKrRYkw8.js → cli-api.DVJJMJHj.js} +123 -80
  6. package/dist/chunks/{config.Crbj2GAb.d.ts → config.CPguQ7J1.d.ts} +2 -2
  7. package/dist/chunks/{environment.LoooBwUu.d.ts → environment.CT0jpO-1.d.ts} +2 -1
  8. package/dist/chunks/{globals.Bp645TTJ.js → globals.BCGEw6ON.js} +2 -2
  9. package/dist/chunks/{index.D3d79vc8.js → index.BjjsHdBb.js} +1 -1
  10. package/dist/chunks/{index.Dqe5k2Rk.js → index.DD5eTY2y.js} +2 -8
  11. package/dist/chunks/{index.Bn81VaWg.js → index.DLRzErGF.js} +240 -318
  12. package/dist/chunks/{index.BMoXz_-n.js → index.K90BXFOx.js} +1 -1
  13. package/dist/chunks/{reporters.anwo7Y6a.d.ts → reporters.B_9uUTGW.d.ts} +148 -22
  14. package/dist/chunks/{resolveConfig.DPmbhVlP.js → resolveConfig.CQIc6fe7.js} +8 -4
  15. package/dist/chunks/{runBaseTests.Dm-659zB.js → runBaseTests.B7hcVT-s.js} +4 -4
  16. package/dist/chunks/{setup-common.DDmVKp6O.js → setup-common.BfGt8K-K.js} +4 -1
  17. package/dist/chunks/{utils.BB4zjzR8.js → utils.DNoFbBUZ.js} +6 -2
  18. package/dist/chunks/{vi.JMQoNY_Z.js → vi.BlPttogV.js} +91 -4
  19. package/dist/chunks/{vite.BdBj-UWY.d.ts → vite.Bvms8Xir.d.ts} +1 -1
  20. package/dist/chunks/{vm.jpyrB0xy.js → vm.Zr4qWzDJ.js} +3 -0
  21. package/dist/chunks/{worker.BAlI9hII.d.ts → worker.9VY11NZs.d.ts} +3 -2
  22. package/dist/chunks/{worker.DHnGaO2M.d.ts → worker.Qz1UB4Fv.d.ts} +1 -1
  23. package/dist/cli.js +1 -1
  24. package/dist/config.d.ts +10 -9
  25. package/dist/coverage.d.ts +9 -112
  26. package/dist/coverage.js +1 -1
  27. package/dist/environments.d.ts +2 -2
  28. package/dist/environments.js +1 -1
  29. package/dist/execute.d.ts +4 -3
  30. package/dist/index.d.ts +39 -10
  31. package/dist/index.js +2 -2
  32. package/dist/node.d.ts +13 -11
  33. package/dist/node.js +7 -7
  34. package/dist/reporters.d.ts +10 -9
  35. package/dist/reporters.js +2 -2
  36. package/dist/runners.d.ts +3 -1
  37. package/dist/runners.js +4 -1
  38. package/dist/worker.js +6 -2
  39. package/dist/workers/forks.js +1 -1
  40. package/dist/workers/runVmTests.js +4 -4
  41. package/dist/workers/threads.js +1 -1
  42. package/dist/workers/vmForks.js +1 -1
  43. package/dist/workers/vmThreads.js +1 -1
  44. package/dist/workers.d.ts +5 -4
  45. package/dist/workers.js +4 -3
  46. package/package.json +15 -15
package/dist/workers.d.ts CHANGED
@@ -1,14 +1,15 @@
1
- import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.BAlI9hII.js';
1
+ import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.9VY11NZs.js';
2
2
  import { Awaitable } from '@vitest/utils';
3
3
  import * as v8 from 'v8';
4
- import { S as SerializedConfig } from './chunks/config.Crbj2GAb.js';
5
- import { W as WorkerContext } from './chunks/worker.DHnGaO2M.js';
4
+ import { S as SerializedConfig } from './chunks/config.CPguQ7J1.js';
5
+ import { W as WorkerContext } from './chunks/worker.Qz1UB4Fv.js';
6
6
  import '@vitest/runner';
7
7
  import 'vite-node';
8
- import './chunks/environment.LoooBwUu.js';
8
+ import './chunks/environment.CT0jpO-1.js';
9
9
  import '@vitest/snapshot';
10
10
  import '@vitest/pretty-format';
11
11
  import '@vitest/snapshot/environment';
12
+ import '@vitest/utils/diff';
12
13
  import 'node:worker_threads';
13
14
 
14
15
  declare function provideWorkerState(context: any, state: WorkerGlobalState): WorkerGlobalState;
package/dist/workers.js CHANGED
@@ -1,15 +1,16 @@
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.C3xNdjV6.js';
3
+ export { r as runBaseTests } from './chunks/base.BS0HhLXd.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.jpyrB0xy.js';
5
+ export { r as runVmTests } from './chunks/vm.Zr4qWzDJ.js';
6
6
  import '@vitest/utils';
7
7
  import 'node:url';
8
+ import '@vitest/utils/source-map';
8
9
  import 'tinypool';
9
10
  import 'vite-node/client';
10
11
  import 'node:fs';
11
12
  import 'pathe';
12
- import './chunks/index.BMoXz_-n.js';
13
+ import './chunks/index.K90BXFOx.js';
13
14
  import 'node:console';
14
15
  import './chunks/inspector.70d6emsh.js';
15
16
  import 'node:module';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "2.1.4",
4
+ "version": "2.2.0-beta.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",
123
123
  "happy-dom": "*",
124
124
  "jsdom": "*",
125
- "@vitest/browser": "2.1.4",
126
- "@vitest/ui": "2.1.4"
125
+ "@vitest/browser": "2.2.0-beta.1",
126
+ "@vitest/ui": "2.2.0-beta.1"
127
127
  },
128
128
  "peerDependenciesMeta": {
129
129
  "@edge-runtime/vm": {
@@ -151,26 +151,26 @@
151
151
  "expect-type": "^1.1.0",
152
152
  "magic-string": "^0.30.12",
153
153
  "pathe": "^1.1.2",
154
- "std-env": "^3.7.0",
154
+ "std-env": "^3.8.0",
155
155
  "tinybench": "^2.9.0",
156
156
  "tinyexec": "^0.3.1",
157
157
  "tinypool": "^1.0.1",
158
158
  "tinyrainbow": "^1.2.0",
159
159
  "vite": "^5.0.0",
160
160
  "why-is-node-running": "^2.3.0",
161
- "@vitest/expect": "2.1.4",
162
- "@vitest/mocker": "2.1.4",
163
- "@vitest/spy": "2.1.4",
164
- "@vitest/pretty-format": "^2.1.4",
165
- "@vitest/utils": "2.1.4",
166
- "@vitest/snapshot": "2.1.4",
167
- "@vitest/runner": "2.1.4",
168
- "vite-node": "2.1.4"
161
+ "@vitest/mocker": "2.2.0-beta.1",
162
+ "@vitest/pretty-format": "^2.2.0-beta.1",
163
+ "@vitest/runner": "2.2.0-beta.1",
164
+ "@vitest/snapshot": "2.2.0-beta.1",
165
+ "@vitest/spy": "2.2.0-beta.1",
166
+ "@vitest/utils": "2.2.0-beta.1",
167
+ "vite-node": "2.2.0-beta.1",
168
+ "@vitest/expect": "2.2.0-beta.1"
169
169
  },
170
170
  "devDependencies": {
171
171
  "@ampproject/remapping": "^2.3.0",
172
172
  "@antfu/install-pkg": "^0.4.1",
173
- "@edge-runtime/vm": "^4.0.3",
173
+ "@edge-runtime/vm": "^4.0.4",
174
174
  "@sinonjs/fake-timers": "11.1.0",
175
175
  "@types/debug": "^4.1.12",
176
176
  "@types/estree": "^1.0.6",
@@ -178,7 +178,7 @@
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.7.9",
181
+ "@types/node": "^22.9.0",
182
182
  "@types/prompts": "^2.4.9",
183
183
  "@types/sinonjs__fake-timers": "^8.1.5",
184
184
  "acorn-walk": "^8.3.4",
@@ -190,7 +190,7 @@
190
190
  "find-up": "^6.3.0",
191
191
  "flatted": "^3.3.1",
192
192
  "get-tsconfig": "^4.8.1",
193
- "happy-dom": "^15.7.4",
193
+ "happy-dom": "^15.11.4",
194
194
  "jsdom": "^25.0.1",
195
195
  "local-pkg": "^0.5.0",
196
196
  "log-update": "^5.0.1",