@depup/vitest 5.0.2-depup.0 → 5.0.3-depup.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.
Files changed (72) hide show
  1. package/LICENSE.md +28 -0
  2. package/README.md +6 -4
  3. package/browser/context.d.ts +7 -1
  4. package/browser/context.js +5 -5
  5. package/changes.json +11 -3
  6. package/dist/browser.d.ts +4 -4
  7. package/dist/browser.js +10 -10
  8. package/dist/chunks/{base.5tQXSzMP.js → base.DhkQeZwd.js} +14 -14
  9. package/dist/chunks/{browser.d.g5Thl309.d.ts → browser.d.3cffPS1V.d.ts} +3 -3
  10. package/dist/chunks/{cac.BLbEtnDd.js → cac.DfDGTQ9W.js} +9 -9
  11. package/dist/chunks/{cli-api.DL4Bd7Vh.js → cli-api.C4x4GGip.js} +5 -5
  12. package/dist/chunks/{config.d.CU_b-wJj.d.ts → config.d.BxjInJat.d.ts} +13 -15
  13. package/dist/chunks/{console.B09ye7y0.js → console.RBA5x-0t.js} +3 -2
  14. package/dist/chunks/{coverage.AipniaqB.js → coverage.S6Dao4g-.js} +1 -1
  15. package/dist/chunks/{coverage.CX7NN5s7.js → coverage._yXj5zeb.js} +1 -1
  16. package/dist/chunks/{creator.2VTnpYzN.js → creator.203NYCo3.js} +12 -12
  17. package/dist/chunks/{display.pkpxlVcY.js → display.CXBnkt9a.js} +1 -1
  18. package/dist/chunks/{doctor.BCXa6-1R.js → doctor.CpHPRoza.js} +2 -2
  19. package/dist/chunks/{environment.d.C6xYahWA.d.ts → environment.d.DAj1Vt__.d.ts} +1 -1
  20. package/dist/chunks/{globals.Brdv9iOs.js → globals.9QtHn8Sr.js} +9 -9
  21. package/dist/chunks/{index.DGdajAO2.js → index.C4tKZ0yW.js} +14 -11
  22. package/dist/chunks/{index.C-uw7tH9.js → index.DpLw24bj.js} +168 -78
  23. package/dist/chunks/{index.M2dsQ_UQ.js → index.cx-_w29y.js} +551 -179
  24. package/dist/chunks/{index.BgwtGYxD.js → index.ggMXe2IF.js} +5 -5
  25. package/dist/chunks/{index.hTNFpC24.js → index.k8L_ZRzq.js} +20 -5
  26. package/dist/chunks/{init-forks.CdGu3HUy.js → init-forks.hzLs7kMZ.js} +1 -1
  27. package/dist/chunks/{init-threads.2f_lsHNK.js → init-threads.COb0VD5D.js} +1 -1
  28. package/dist/chunks/{init.IsjtLXKe.js → init.D0qF-GGk.js} +4 -5
  29. package/dist/chunks/{native.CF4uT5hY.js → native.CBlba4VV.js} +2 -2
  30. package/dist/chunks/{nativeModuleMocker.DwRB4F9R.js → nativeModuleMocker.CXSh3m91.js} +2 -2
  31. package/dist/chunks/{nativeModuleRunner.J0QLzNtK.js → nativeModuleRunner.jwZPY3dg.js} +1 -1
  32. package/dist/chunks/{node.CfQ_OGWr.js → node.BzimPqT5.js} +1 -1
  33. package/dist/chunks/{pathe.M-eThtNZ.DwEga6ro.js → pathe.M-eThtNZ.CknpM8Or.js} +1 -1
  34. package/dist/chunks/{plugin.d.My_z-jmU.d.ts → plugin.d.BsjqSb4-.d.ts} +26 -20
  35. package/dist/chunks/{plugins.Cigb0uSy.js → plugins.D2ut1V9b.js} +1 -1
  36. package/dist/chunks/{resolver.NpfwMKt9.js → resolver.fbW9AUvG.js} +1 -1
  37. package/dist/chunks/{rpc.CJVl3hZH.js → rpc.BTmCtPly.js} +3 -2
  38. package/dist/chunks/{rpc.d.DA9Utv4e.d.ts → rpc.d.BPFHl-HE.d.ts} +1 -1
  39. package/dist/chunks/{run.C5UmxDPh.js → run.BTlFXlnv.js} +29 -19
  40. package/dist/chunks/{setup-common.Ct8rQvjH.js → setup-common.BglbuAHD.js} +3 -3
  41. package/dist/chunks/{source-map.BH0bbrs9.js → source-map.DUxvo12T.js} +4 -8
  42. package/dist/chunks/{source-map.d.YqWNcp4e.d.ts → source-map.d.BLHtC2OB.d.ts} +1 -1
  43. package/dist/chunks/{spy.KLHgXex_.js → spy.DgMTfhrK.js} +18 -16
  44. package/dist/chunks/{task-utils.d.BZm4GSQD.d.ts → task-utils.d.C-IeGxLU.d.ts} +1 -1
  45. package/dist/chunks/{utils.CJ0JImL8.js → utils.RcGwuOc_.js} +2 -2
  46. package/dist/chunks/{vm.KI2AYADz.js → vm.vTyZj_02.js} +8 -8
  47. package/dist/chunks/{worker.d.MLmnzOJE.d.ts → worker.d.Bt2A2mmi.d.ts} +3 -3
  48. package/dist/cli.js +2 -2
  49. package/dist/config.d.ts +9 -9
  50. package/dist/index.d.ts +10 -10
  51. package/dist/index.js +9 -9
  52. package/dist/module-evaluator.d.ts +3 -2
  53. package/dist/module-evaluator.js +8 -5
  54. package/dist/node.d.ts +9 -9
  55. package/dist/node.js +14 -14
  56. package/dist/runtime.d.ts +6 -6
  57. package/dist/runtime.js +4 -4
  58. package/dist/spy.js +1 -1
  59. package/dist/task-utils.js +2 -1
  60. package/dist/worker.d.ts +4 -4
  61. package/dist/worker.js +17 -17
  62. package/dist/workers/forks.js +18 -18
  63. package/dist/workers/runVmTests.js +14 -14
  64. package/dist/workers/threads.js +18 -18
  65. package/dist/workers/vmForks.js +12 -12
  66. package/dist/workers/vmThreads.js +12 -12
  67. package/globals.d.ts +19 -19
  68. package/index.cjs +3 -3
  69. package/optional-runtime-types.d.ts +1 -1
  70. package/optional-types.d.ts +1 -1
  71. package/package.json +33 -20
  72. package/suppress-warnings.cjs +1 -1
@@ -1,12 +1,12 @@
1
- import { w as workerInit } from '../chunks/init-forks.CdGu3HUy.js';
2
- import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.KI2AYADz.js';
3
- import '../chunks/init.IsjtLXKe.js';
1
+ import { w as workerInit } from '../chunks/init-forks.hzLs7kMZ.js';
2
+ import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.vTyZj_02.js';
3
+ import '../chunks/init.D0qF-GGk.js';
4
4
  import 'node:fs';
5
5
  import 'node:module';
6
6
  import 'node:url';
7
7
  import 'vite/module-runner';
8
- import '../chunks/index.hTNFpC24.js';
9
- import '../chunks/pathe.M-eThtNZ.DwEga6ro.js';
8
+ import '../chunks/index.k8L_ZRzq.js';
9
+ import '../chunks/pathe.M-eThtNZ.CknpM8Or.js';
10
10
  import '../chunks/modules.BJuCwlRJ.js';
11
11
  import '../chunks/utils.DYj33du9.js';
12
12
  import '../path.js';
@@ -17,19 +17,19 @@ import '../traces.js';
17
17
  import '@vitest/mocker';
18
18
  import '@vitest/mocker/redirect';
19
19
  import 'node:console';
20
- import '../chunks/source-map.BH0bbrs9.js';
21
- import '../chunks/index.M2dsQ_UQ.js';
20
+ import '../chunks/source-map.DUxvo12T.js';
21
+ import '../chunks/index.cx-_w29y.js';
22
22
  import '../chunks/tinyrainbow.Ht9iggcq.js';
23
- import '../chunks/rpc.CJVl3hZH.js';
23
+ import '../chunks/rpc.BTmCtPly.js';
24
24
  import '../chunks/index.DmDMHCg8.js';
25
25
  import '../chunks/inspector.CvyFGlXm.js';
26
26
  import 'node:v8';
27
- import '../chunks/console.B09ye7y0.js';
27
+ import '../chunks/console.RBA5x-0t.js';
28
28
  import 'node:stream';
29
- import '../chunks/resolver.NpfwMKt9.js';
29
+ import '../chunks/resolver.fbW9AUvG.js';
30
30
  import 'es-module-lexer';
31
- import '../chunks/setup-common.Ct8rQvjH.js';
32
- import '../chunks/plugins.Cigb0uSy.js';
31
+ import '../chunks/setup-common.BglbuAHD.js';
32
+ import '../chunks/plugins.D2ut1V9b.js';
33
33
 
34
34
  workerInit({
35
35
  runTests: runVmTests,
@@ -1,13 +1,13 @@
1
- import { w as workerInit } from '../chunks/init-threads.2f_lsHNK.js';
2
- import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.KI2AYADz.js';
1
+ import { w as workerInit } from '../chunks/init-threads.COb0VD5D.js';
2
+ import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.vTyZj_02.js';
3
3
  import 'node:worker_threads';
4
- import '../chunks/init.IsjtLXKe.js';
4
+ import '../chunks/init.D0qF-GGk.js';
5
5
  import 'node:fs';
6
6
  import 'node:module';
7
7
  import 'node:url';
8
8
  import 'vite/module-runner';
9
- import '../chunks/index.hTNFpC24.js';
10
- import '../chunks/pathe.M-eThtNZ.DwEga6ro.js';
9
+ import '../chunks/index.k8L_ZRzq.js';
10
+ import '../chunks/pathe.M-eThtNZ.CknpM8Or.js';
11
11
  import '../chunks/modules.BJuCwlRJ.js';
12
12
  import '../chunks/utils.DYj33du9.js';
13
13
  import '../path.js';
@@ -18,19 +18,19 @@ import '../traces.js';
18
18
  import '@vitest/mocker';
19
19
  import '@vitest/mocker/redirect';
20
20
  import 'node:console';
21
- import '../chunks/source-map.BH0bbrs9.js';
22
- import '../chunks/index.M2dsQ_UQ.js';
21
+ import '../chunks/source-map.DUxvo12T.js';
22
+ import '../chunks/index.cx-_w29y.js';
23
23
  import '../chunks/tinyrainbow.Ht9iggcq.js';
24
- import '../chunks/rpc.CJVl3hZH.js';
24
+ import '../chunks/rpc.BTmCtPly.js';
25
25
  import '../chunks/index.DmDMHCg8.js';
26
26
  import '../chunks/inspector.CvyFGlXm.js';
27
27
  import 'node:v8';
28
- import '../chunks/console.B09ye7y0.js';
28
+ import '../chunks/console.RBA5x-0t.js';
29
29
  import 'node:stream';
30
- import '../chunks/resolver.NpfwMKt9.js';
30
+ import '../chunks/resolver.fbW9AUvG.js';
31
31
  import 'es-module-lexer';
32
- import '../chunks/setup-common.Ct8rQvjH.js';
33
- import '../chunks/plugins.Cigb0uSy.js';
32
+ import '../chunks/setup-common.BglbuAHD.js';
33
+ import '../chunks/plugins.D2ut1V9b.js';
34
34
 
35
35
  workerInit({
36
36
  runTests: runVmTests,
package/globals.d.ts CHANGED
@@ -1,22 +1,22 @@
1
1
  declare global {
2
- let suite: typeof import('vitest')['suite']
3
- let test: typeof import('vitest')['test']
4
- let chai: typeof import("vitest")["chai"]
5
- let describe: typeof import('vitest')['describe']
6
- let it: typeof import('vitest')['it']
7
- let expectTypeOf: typeof import('vitest')['expectTypeOf']
8
- let assertType: typeof import('vitest')['assertType']
9
- let expect: typeof import('vitest')['expect']
10
- let assert: typeof import('vitest')['assert']
11
- let vitest: typeof import('vitest')['vitest']
12
- let vi: typeof import('vitest')['vitest']
13
- let beforeAll: typeof import('vitest')['beforeAll']
14
- let afterAll: typeof import('vitest')['afterAll']
15
- let beforeEach: typeof import('vitest')['beforeEach']
16
- let afterEach: typeof import('vitest')['afterEach']
17
- let aroundEach: typeof import('vitest')['aroundEach']
18
- let aroundAll: typeof import('vitest')['aroundAll']
19
- let onTestFailed: typeof import('vitest')['onTestFailed']
20
- let onTestFinished: typeof import('vitest')['onTestFinished']
2
+ let suite: (typeof import('vitest'))['suite']
3
+ let test: (typeof import('vitest'))['test']
4
+ let chai: (typeof import('vitest'))['chai']
5
+ let describe: (typeof import('vitest'))['describe']
6
+ let it: (typeof import('vitest'))['it']
7
+ let expectTypeOf: (typeof import('vitest'))['expectTypeOf']
8
+ let assertType: (typeof import('vitest'))['assertType']
9
+ let expect: (typeof import('vitest'))['expect']
10
+ let assert: (typeof import('vitest'))['assert']
11
+ let vitest: (typeof import('vitest'))['vitest']
12
+ let vi: (typeof import('vitest'))['vitest']
13
+ let beforeAll: (typeof import('vitest'))['beforeAll']
14
+ let afterAll: (typeof import('vitest'))['afterAll']
15
+ let beforeEach: (typeof import('vitest'))['beforeEach']
16
+ let afterEach: (typeof import('vitest'))['afterEach']
17
+ let aroundEach: (typeof import('vitest'))['aroundEach']
18
+ let aroundAll: (typeof import('vitest'))['aroundAll']
19
+ let onTestFailed: (typeof import('vitest'))['onTestFailed']
20
+ let onTestFinished: (typeof import('vitest'))['onTestFinished']
21
21
  }
22
22
  export {}
package/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  throw new Error(
2
- 'Vitest cannot be imported in a CommonJS module using require(). Please use "import" instead.'
3
- + '\n\nIf you are using "import" in your source code, then it\'s possible it was bundled into require() automatically by your bundler. '
4
- + 'In that case, do not bundle CommonJS output since it will never work with Vitest, or use dynamic import() which is available in all CommonJS modules.',
2
+ 'Vitest cannot be imported in a CommonJS module using require(). Please use "import" instead.' +
3
+ '\n\nIf you are using "import" in your source code, then it\'s possible it was bundled into require() automatically by your bundler. ' +
4
+ 'In that case, do not bundle CommonJS output since it will never work with Vitest, or use dynamic import() which is available in all CommonJS modules.',
5
5
  )
@@ -1,4 +1,4 @@
1
- /* eslint-disable ts/ban-ts-comment */
1
+ /* oxlint-disable typescript/ban-ts-comment */
2
2
 
3
3
  export interface Disposable {
4
4
  // @ts-ignore -- Symbol.dispose might not be in user types
@@ -1,4 +1,4 @@
1
- /* eslint-disable ts/ban-ts-comment */
1
+ /* oxlint-disable typescript/ban-ts-comment */
2
2
 
3
3
  // @ts-ignore optional peer dep
4
4
  export type * as jsdomTypes from 'jsdom'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depup/vitest",
3
3
  "type": "module",
4
- "version": "5.0.2-depup.0",
4
+ "version": "5.0.3-depup.0",
5
5
  "description": "Next generation testing framework powered by Vite (with updated dependencies)",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -37,6 +37,7 @@
37
37
  },
38
38
  "exports": {
39
39
  ".": {
40
+ "__vitest_source__": "./src/public/index.ts",
40
41
  "import": {
41
42
  "types": "./dist/index.d.ts",
42
43
  "default": "./dist/index.js"
@@ -70,6 +71,7 @@
70
71
  "types": "./import-meta.d.ts"
71
72
  },
72
73
  "./node": {
74
+ "__vitest_source__": "./src/public/node.ts",
73
75
  "types": "./dist/node.d.ts",
74
76
  "default": "./dist/node.js"
75
77
  },
@@ -83,15 +85,18 @@
83
85
  "default": "./dist/traces.js"
84
86
  },
85
87
  "./config": {
88
+ "__vitest_source__": "./src/public/config.ts",
86
89
  "types": "./config.d.ts",
87
90
  "require": "./dist/config.cjs",
88
91
  "default": "./dist/config.js"
89
92
  },
90
93
  "./runtime": {
94
+ "__vitest_source__": "./src/public/runtime.ts",
91
95
  "types": "./dist/runtime.d.ts",
92
96
  "default": "./dist/runtime.js"
93
97
  },
94
98
  "./worker": {
99
+ "__vitest_source__": "./src/public/worker.ts",
95
100
  "types": "./worker.d.ts",
96
101
  "default": "./dist/worker.js"
97
102
  }
@@ -120,12 +125,12 @@
120
125
  "@edge-runtime/vm": "*",
121
126
  "@opentelemetry/api": "^1.9.0",
122
127
  "@types/node": "^22.0.0 || >=24.0.0",
123
- "@vitest/browser-playwright": "5.0.2",
124
- "@vitest/browser-preview": "5.0.2",
128
+ "@vitest/browser-playwright": "5.0.3",
129
+ "@vitest/browser-preview": "5.0.3",
125
130
  "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",
126
- "@vitest/coverage-istanbul": "5.0.2",
127
- "@vitest/coverage-v8": "5.0.2",
128
- "@vitest/ui": "5.0.2",
131
+ "@vitest/coverage-istanbul": "5.0.3",
132
+ "@vitest/coverage-v8": "5.0.3",
133
+ "@vitest/ui": "5.0.3",
129
134
  "happy-dom": "*",
130
135
  "jsdom": "*",
131
136
  "vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
@@ -170,14 +175,14 @@
170
175
  },
171
176
  "dependencies": {
172
177
  "@types/chai": "^5.2.3",
173
- "@vitest/mocker": "5.0.2",
174
- "chai": "^6.2.2",
178
+ "@vitest/mocker": "5.0.3",
179
+ "chai": "^6.3.0",
175
180
  "es-module-lexer": "^3.0.2",
176
181
  "expect-type": "^1.4.0",
177
182
  "magic-string": "^1.4.2",
178
183
  "obug": "^3.0.0",
179
184
  "picomatch": "^4.0.7",
180
- "std-env": "^4.2.0",
185
+ "std-env": "^4.3.0",
181
186
  "tinybench": "^6.2.0",
182
187
  "tinyexec": "^1.3.1",
183
188
  "tinyglobby": "^0.2.17",
@@ -190,24 +195,24 @@
190
195
  "@jridgewell/trace-mapping": "0.3.31",
191
196
  "@opentelemetry/api": "^1.9.1",
192
197
  "@sinonjs/fake-timers": "15.4.0",
193
- "@types/jsdom": "^28.0.3",
198
+ "@types/jsdom": "^30.0.0",
194
199
  "@types/node": "^24.13.3",
195
200
  "@types/picomatch": "^4.0.3",
196
201
  "@types/prompts": "^2.4.9",
197
- "@vitest/expect": "5.0.2",
202
+ "@vitest/expect": "5.0.3",
198
203
  "@vitest/istanbul-lib-coverage": "^1.0.0",
199
204
  "@vitest/istanbul-lib-report": "^1.0.0",
200
- "@vitest/pretty-format": "5.0.2",
201
- "@vitest/snapshot": "5.0.2",
202
- "@vitest/spy": "5.0.2",
203
- "@vitest/utils": "5.0.2",
205
+ "@vitest/pretty-format": "5.0.3",
206
+ "@vitest/snapshot": "5.0.3",
207
+ "@vitest/spy": "5.0.3",
208
+ "@vitest/utils": "5.0.3",
204
209
  "acorn": "8.11.3",
205
210
  "acorn-walk": "^8.3.5",
206
211
  "birpc": "^4.2.0",
207
212
  "cac": "^6.7.14",
208
213
  "flatted": "^3.4.4",
209
214
  "happy-dom": "^20.12.0",
210
- "jsdom": "^29.1.1",
215
+ "jsdom": "^30.1.1",
211
216
  "local-pkg": "^1.2.1",
212
217
  "mime": "^4.1.0",
213
218
  "pathe": "^2.0.3",
@@ -228,6 +233,10 @@
228
233
  "from": "^5.2.2",
229
234
  "to": "^5.2.3"
230
235
  },
236
+ "chai": {
237
+ "from": "^6.2.2",
238
+ "to": "^6.3.0"
239
+ },
231
240
  "es-module-lexer": {
232
241
  "from": "^2.3.2",
233
242
  "to": "^3.0.2"
@@ -240,6 +249,10 @@
240
249
  "from": "^2.1.4",
241
250
  "to": "^3.0.0"
242
251
  },
252
+ "std-env": {
253
+ "from": "^4.2.0",
254
+ "to": "^4.3.0"
255
+ },
243
256
  "tinybench": {
244
257
  "from": "^6.1.4",
245
258
  "to": "^6.2.0"
@@ -249,14 +262,14 @@
249
262
  "to": "^1.3.1"
250
263
  },
251
264
  "why-is-node-running": {
252
- "from": "^3.2.1",
265
+ "from": "3.2.1",
253
266
  "to": "^3.2.2"
254
267
  }
255
268
  },
256
- "depsUpdated": 7,
269
+ "depsUpdated": 9,
257
270
  "originalPackage": "vitest",
258
- "originalVersion": "5.0.2",
259
- "processedAt": "2026-09-27T01:03:11.878Z",
271
+ "originalVersion": "5.0.3",
272
+ "processedAt": "2026-10-04T01:29:52.498Z",
260
273
  "smokeTest": "passed"
261
274
  }
262
275
  }
@@ -17,6 +17,6 @@ process.emit = function (event, warning) {
17
17
  return
18
18
  }
19
19
 
20
- // eslint-disable-next-line prefer-rest-params
20
+ // oxlint-disable-next-line prefer-rest-params
21
21
  return Reflect.apply(emit, this, arguments)
22
22
  }