@depup/vitest 4.1.10-depup.8 → 5.0.0-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 (114) hide show
  1. package/LICENSE.md +163 -9
  2. package/README.md +6 -13
  3. package/changes.json +9 -37
  4. package/dist/browser.d.ts +37 -20
  5. package/dist/browser.js +12 -13
  6. package/dist/chunks/{acorn.B2iPLyUM.js → acorn.C1kjbUFw.js} +30 -30
  7. package/dist/chunks/{base.B6Opl8PE.js → base.BTS5G301.js} +54 -46
  8. package/dist/chunks/{browser.d.BcoexmFG.d.ts → browser.d.g5Thl309.d.ts} +16 -14
  9. package/dist/chunks/{cac.DdICfEr1.js → cac.D805sv8h.js} +116 -72
  10. package/dist/chunks/cli-api.LUtK11-x.js +528 -0
  11. package/dist/chunks/config.d.CU_b-wJj.d.ts +3788 -0
  12. package/dist/chunks/{console.3WNpx0tS.js → console.CHi0lDgQ.js} +65 -63
  13. package/dist/chunks/{constants.CPYnjOGj.js → constants.-juJ8b_4.js} +1 -1
  14. package/dist/chunks/{coverage.CTzCuANN.js → coverage.BcXK1DsQ.js} +7 -2
  15. package/dist/chunks/coverage.BtDxDqSU.js +26 -0
  16. package/dist/chunks/{creator.DgVhQm5q.js → creator.BHJ7K266.js} +74 -27
  17. package/dist/chunks/{defaults.9aQKnqFk.js → defaults.D2ip7f-X.js} +16 -9
  18. package/dist/chunks/display.pkpxlVcY.js +194 -0
  19. package/dist/chunks/doctor.CrUoUtdU.js +465 -0
  20. package/dist/chunks/{env.D4Lgay0q.js → env.DzFJjrmK.js} +2 -1
  21. package/dist/chunks/{environment.d.CrsxCzP1.d.ts → environment.d.C6xYahWA.d.ts} +9 -1
  22. package/dist/chunks/globals.DQ4rmEUL.js +28 -0
  23. package/dist/chunks/index.1_nbEjJY.js +1576 -0
  24. package/dist/chunks/{index.DXx9Dtk7.js → index.5J3Pr46F.js} +11 -10
  25. package/dist/chunks/index.B89dZ0-N.js +27812 -0
  26. package/dist/chunks/{index.CMESou6r.js → index.DXQx-kDM.js} +77 -81
  27. package/dist/chunks/{index.Chj8NDwU.js → index.DmDMHCg8.js} +6 -12
  28. package/dist/chunks/index.M2dsQ_UQ.js +944 -0
  29. package/dist/chunks/index.OVGXnVRj.js +8604 -0
  30. package/dist/chunks/{init-forks.H5ZuobOQ.js → init-forks.CiCtIMPj.js} +7 -10
  31. package/dist/chunks/{init-threads.6kl1khcL.js → init-threads.DbGO6vUd.js} +1 -1
  32. package/dist/chunks/{init.k9zZ9sLh.js → init.BS957yFf.js} +113 -38
  33. package/dist/chunks/{native.DPzPHdi5.js → native.cLbCmZDO.js} +5 -6
  34. package/dist/chunks/{nativeModuleMocker.BkNfQMkH.js → nativeModuleMocker.E7jPi2fl.js} +22 -15
  35. package/dist/chunks/{index.BCY_7LL2.js → nativeModuleRunner.BOvBCgI_.js} +110 -42
  36. package/dist/chunks/node.Es9ukMGX.js +47 -0
  37. package/dist/chunks/offset.Dy-5Fdfn.js +24 -0
  38. package/dist/chunks/pathe.M-eThtNZ.Clq7AXhv.js +489 -0
  39. package/dist/chunks/{reporters.d.DtoKVV2s.d.ts → plugin.d.BbcoZhuj.d.ts} +2341 -1423
  40. package/dist/chunks/plugins.Cigb0uSy.js +37 -0
  41. package/dist/chunks/resolver.CBCHRZ7j.js +48 -0
  42. package/dist/chunks/rpc.DWKX1ZbI.js +91 -0
  43. package/dist/chunks/rpc.d.DA9Utv4e.d.ts +74 -0
  44. package/dist/chunks/run.CQOUYP-x.js +4176 -0
  45. package/dist/chunks/setup-common.D5-2VgqG.js +36 -0
  46. package/dist/chunks/source-map.Dx3YPjIe.js +1777 -0
  47. package/dist/chunks/source-map.d.YqWNcp4e.d.ts +88 -0
  48. package/dist/chunks/spy.DPLvp2J7.js +477 -0
  49. package/dist/chunks/task-utils.d.BZm4GSQD.d.ts +143 -0
  50. package/dist/chunks/tinyrainbow.Ht9iggcq.js +95 -0
  51. package/dist/chunks/{utils.BS4fH3nR.js → utils.CtqmNjXD.js} +47 -54
  52. package/dist/chunks/{utils.BX5Fg8C4.js → utils.DYj33du9.js} +1 -17
  53. package/dist/chunks/vm.BQTVRi0W.js +1313 -0
  54. package/dist/chunks/{worker.d.ZpHpO4yb.d.ts → worker.d.MLmnzOJE.d.ts} +29 -19
  55. package/dist/cli.js +5 -6
  56. package/dist/config.cjs +7 -4
  57. package/dist/config.d.ts +26 -23
  58. package/dist/config.js +3 -3
  59. package/dist/index.d.ts +463 -36
  60. package/dist/index.js +17 -19
  61. package/dist/module-evaluator.d.ts +62 -5
  62. package/dist/module-evaluator.js +104 -51
  63. package/dist/node.d.ts +337 -86
  64. package/dist/node.js +48 -75
  65. package/dist/runtime.d.ts +43 -6
  66. package/dist/runtime.js +6 -9
  67. package/dist/spy.js +1 -1
  68. package/dist/task-utils.js +281 -0
  69. package/dist/{chunks/traces.DT5aQ62U.js → traces.js} +3 -2
  70. package/dist/worker.d.ts +8 -10
  71. package/dist/worker.js +31 -43
  72. package/dist/workers/forks.js +28 -40
  73. package/dist/workers/runVmTests.js +50 -41
  74. package/dist/workers/threads.js +28 -40
  75. package/dist/workers/vmForks.js +18 -20
  76. package/dist/workers/vmThreads.js +18 -20
  77. package/package.json +57 -106
  78. package/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -6
  79. package/dist/chunks/benchmark.CX_oY03V.js +0 -40
  80. package/dist/chunks/benchmark.d.DAaHLpsq.d.ts +0 -24
  81. package/dist/chunks/cli-api.BK8pd4xc.js +0 -14697
  82. package/dist/chunks/config.d.A1h_Y6Jt.d.ts +0 -232
  83. package/dist/chunks/coverage.DM_a_rWm.js +0 -1087
  84. package/dist/chunks/coverage.d.BZtK59WP.d.ts +0 -37
  85. package/dist/chunks/evaluatedModules.Dg1zASAC.js +0 -17
  86. package/dist/chunks/global.d.DVsSRdQ5.d.ts +0 -100
  87. package/dist/chunks/globals.Dj1TGiMC.js +0 -31
  88. package/dist/chunks/index.DC7d2Pf8.js +0 -729
  89. package/dist/chunks/index.DdgEv5B1.js +0 -42
  90. package/dist/chunks/index.UpGiHP7g.js +0 -4255
  91. package/dist/chunks/index.og1WyBLx.js +0 -6358
  92. package/dist/chunks/nativeModuleRunner.BIakptoF.js +0 -36
  93. package/dist/chunks/node.COQbm6gK.js +0 -14
  94. package/dist/chunks/plugin.d.DwFIiJ7i.d.ts +0 -38
  95. package/dist/chunks/rpc.MzXet3jl.js +0 -144
  96. package/dist/chunks/rpc.d.B_8sPU0w.d.ts +0 -30
  97. package/dist/chunks/setup-common.DYx3LtFI.js +0 -60
  98. package/dist/chunks/startVitestModuleRunner.DB-7oCpn.js +0 -740
  99. package/dist/chunks/suite.d.udJtyAgw.d.ts +0 -10
  100. package/dist/chunks/test.DNmyFkvJ.js +0 -4430
  101. package/dist/chunks/traces.d.D2T_R8rx.d.ts +0 -60
  102. package/dist/chunks/vm.CXMd5FHa.js +0 -785
  103. package/dist/coverage.d.ts +0 -123
  104. package/dist/coverage.js +0 -27
  105. package/dist/environments.d.ts +0 -22
  106. package/dist/environments.js +0 -5
  107. package/dist/reporters.d.ts +0 -27
  108. package/dist/reporters.js +0 -26
  109. package/dist/runners.d.ts +0 -70
  110. package/dist/runners.js +0 -19
  111. package/dist/snapshot.d.ts +0 -9
  112. package/dist/snapshot.js +0 -6
  113. package/dist/suite.d.ts +0 -5
  114. package/dist/suite.js +0 -8
package/LICENSE.md CHANGED
@@ -31,7 +31,7 @@ BSD-3-Clause, ISC, MIT
31
31
  ## @antfu/install-pkg
32
32
  License: MIT
33
33
  By: Anthony Fu
34
- Repository: git+https://github.com/antfu/install-pkg.git
34
+ Repository: git+https://github.com/antfu-collective/install-pkg.git
35
35
 
36
36
  > MIT License
37
37
  >
@@ -316,20 +316,62 @@ Repository: egoist/cac
316
316
 
317
317
  ---------------------------------------
318
318
 
319
- ## empathic
319
+ ## convert-source-map
320
320
  License: MIT
321
- By: Luke Edwards
322
- Repository: lukeed/empathic
321
+ By: Thorsten Lorenz
322
+ Repository: git://github.com/thlorenz/convert-source-map.git
323
+
324
+ > Copyright 2013 Thorsten Lorenz.
325
+ > All rights reserved.
326
+ >
327
+ > Permission is hereby granted, free of charge, to any person
328
+ > obtaining a copy of this software and associated documentation
329
+ > files (the "Software"), to deal in the Software without
330
+ > restriction, including without limitation the rights to use,
331
+ > copy, modify, merge, publish, distribute, sublicense, and/or sell
332
+ > copies of the Software, and to permit persons to whom the
333
+ > Software is furnished to do so, subject to the following
334
+ > conditions:
335
+ >
336
+ > The above copyright notice and this permission notice shall be
337
+ > included in all copies or substantial portions of the Software.
338
+ >
339
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
340
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
341
+ > OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
342
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
343
+ > HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
344
+ > WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
345
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
346
+ > OTHER DEALINGS IN THE SOFTWARE.
347
+
348
+ ---------------------------------------
349
+
350
+ ## diff-sequences
351
+ License: MIT
352
+ Repository: https://github.com/jestjs/jest.git
323
353
 
324
354
  > MIT License
325
355
  >
326
- > Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
356
+ > Copyright (c) Meta Platforms, Inc. and affiliates.
327
357
  >
328
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
358
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
359
+ > of this software and associated documentation files (the "Software"), to deal
360
+ > in the Software without restriction, including without limitation the rights
361
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
362
+ > copies of the Software, and to permit persons to whom the Software is
363
+ > furnished to do so, subject to the following conditions:
329
364
  >
330
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
365
+ > The above copyright notice and this permission notice shall be included in all
366
+ > copies or substantial portions of the Software.
331
367
  >
332
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
368
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
369
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
370
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
371
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
372
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
373
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
374
+ > SOFTWARE.
333
375
 
334
376
  ---------------------------------------
335
377
 
@@ -363,7 +405,7 @@ Repository: lydell/js-tokens
363
405
 
364
406
  > The MIT License (MIT)
365
407
  >
366
- > Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell
408
+ > Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Simon Lydell
367
409
  >
368
410
  > Permission is hereby granted, free of charge, to any person obtaining a copy
369
411
  > of this software and associated documentation files (the "Software"), to deal
@@ -500,6 +542,13 @@ Repository: unjs/mlly
500
542
 
501
543
  ---------------------------------------
502
544
 
545
+ ## natural-compare
546
+ License: MIT
547
+ By: Lauri Rooden
548
+ Repository: git://github.com/litejs/natural-compare-lite.git
549
+
550
+ ---------------------------------------
551
+
503
552
  ## package-manager-detector
504
553
  License: MIT
505
554
  By: Anthony Fu
@@ -529,6 +578,83 @@ Repository: git+https://github.com/antfu-collective/package-manager-detector.git
529
578
 
530
579
  ---------------------------------------
531
580
 
581
+ ## pathe
582
+ License: MIT
583
+ Repository: unjs/pathe
584
+
585
+ > MIT License
586
+ >
587
+ > Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
588
+ >
589
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
590
+ > of this software and associated documentation files (the "Software"), to deal
591
+ > in the Software without restriction, including without limitation the rights
592
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
593
+ > copies of the Software, and to permit persons to whom the Software is
594
+ > furnished to do so, subject to the following conditions:
595
+ >
596
+ > The above copyright notice and this permission notice shall be included in all
597
+ > copies or substantial portions of the Software.
598
+ >
599
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
600
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
601
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
602
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
603
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
604
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
605
+ > SOFTWARE.
606
+ >
607
+ > ---
608
+ >
609
+ > Copyright Joyent, Inc. and other Node contributors.
610
+ >
611
+ > Permission is hereby granted, free of charge, to any person obtaining a
612
+ > copy of this software and associated documentation files (the
613
+ > "Software"), to deal in the Software without restriction, including
614
+ > without limitation the rights to use, copy, modify, merge, publish,
615
+ > distribute, sublicense, and/or sell copies of the Software, and to permit
616
+ > persons to whom the Software is furnished to do so, subject to the
617
+ > following conditions:
618
+ >
619
+ > The above copyright notice and this permission notice shall be included
620
+ > in all copies or substantial portions of the Software.
621
+ >
622
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
623
+ > OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
624
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
625
+ > NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
626
+ > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
627
+ > OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
628
+ > USE OR OTHER DEALINGS IN THE SOFTWARE.
629
+ >
630
+ > ---
631
+ >
632
+ > Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
633
+ >
634
+ > The MIT License (MIT)
635
+ >
636
+ > Copyright (c) 2023-present Fabio Spampinato
637
+ >
638
+ > Permission is hereby granted, free of charge, to any person obtaining a
639
+ > copy of this software and associated documentation files (the "Software"),
640
+ > to deal in the Software without restriction, including without limitation
641
+ > the rights to use, copy, modify, merge, publish, distribute, sublicense,
642
+ > and/or sell copies of the Software, and to permit persons to whom the
643
+ > Software is furnished to do so, subject to the following conditions:
644
+ >
645
+ > The above copyright notice and this permission notice shall be included in
646
+ > all copies or substantial portions of the Software.
647
+ >
648
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
649
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
650
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
651
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
652
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
653
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
654
+ > DEALINGS IN THE SOFTWARE.
655
+
656
+ ---------------------------------------
657
+
532
658
  ## prompts
533
659
  License: MIT
534
660
  By: Terkel Gjervig
@@ -729,6 +855,34 @@ Repository: git+https://github.com/tinylibs/tinyhighlight.git
729
855
 
730
856
  ---------------------------------------
731
857
 
858
+ ## tinyrainbow
859
+ License: MIT
860
+ Repository: git+https://github.com/tinylibs/tinyrainbow.git
861
+
862
+ > MIT License
863
+ >
864
+ > Copyright (c) 2022 Tinylibs
865
+ >
866
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
867
+ > of this software and associated documentation files (the "Software"), to deal
868
+ > in the Software without restriction, including without limitation the rights
869
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
870
+ > copies of the Software, and to permit persons to whom the Software is
871
+ > furnished to do so, subject to the following conditions:
872
+ >
873
+ > The above copyright notice and this permission notice shall be included in all
874
+ > copies or substantial portions of the Software.
875
+ >
876
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
877
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
878
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
879
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
880
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
881
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
882
+ > SOFTWARE.
883
+
884
+ ---------------------------------------
885
+
732
886
  ## type-detect
733
887
  License: MIT
734
888
  By: Jake Luer, Keith Cirkel, David Losert, Aleksey Shvayka, Lucas Fernandes da Costa, Grant Snodgrass, Jeremy Tice, Edward Betts, dvlsg, Amila Welihinda, Jake Champion, Miroslav Bajtoš
package/README.md CHANGED
@@ -13,25 +13,18 @@ npm install @depup/vitest
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [vitest](https://www.npmjs.com/package/vitest) @ 4.1.10 |
17
- | Processed | 2026-07-21 |
16
+ | Original | [vitest](https://www.npmjs.com/package/vitest) @ 5.0.0 |
17
+ | Processed | 2026-09-06 |
18
18
  | Smoke test | passed |
19
- | Deps updated | 11 |
19
+ | Deps updated | 4 |
20
20
 
21
21
  ## Dependency Changes
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | es-module-lexer | ^2.0.0 | ^2.3.1 |
26
- | expect-type | ^1.3.0 | ^1.4.0 |
27
- | magic-string | ^0.30.21 | ^1.0.0 |
28
- | obug | ^2.1.1 | ^2.1.4 |
29
- | picomatch | ^4.0.3 | ^4.0.5 |
30
- | std-env | ^4.0.0-rc.1 | ^4.2.0 |
31
- | tinybench | ^2.9.0 | ^6.0.2 |
32
- | tinyexec | ^1.0.2 | ^1.2.4 |
33
- | tinyglobby | ^0.2.15 | ^0.2.17 |
34
- | vite | ^6.0.0 || ^7.0.0 || ^8.0.0 | ^8.1.5 |
25
+ | @types/chai | ^5.2.2 | ^5.2.3 |
26
+ | tinybench | 6.1.4 | ^6.1.6 |
27
+ | tinyexec | 1.3.0 | ^1.3.1 |
35
28
  | why-is-node-running | ^2.3.0 | ^3.2.2 |
36
29
 
37
30
  ---
package/changes.json CHANGED
@@ -1,50 +1,22 @@
1
1
  {
2
2
  "bumped": {
3
- "es-module-lexer": {
4
- "from": "^2.0.0",
5
- "to": "^2.3.1"
6
- },
7
- "expect-type": {
8
- "from": "^1.3.0",
9
- "to": "^1.4.0"
10
- },
11
- "magic-string": {
12
- "from": "^0.30.21",
13
- "to": "^1.0.0"
14
- },
15
- "obug": {
16
- "from": "^2.1.1",
17
- "to": "^2.1.4"
18
- },
19
- "picomatch": {
20
- "from": "^4.0.3",
21
- "to": "^4.0.5"
22
- },
23
- "std-env": {
24
- "from": "^4.0.0-rc.1",
25
- "to": "^4.2.0"
3
+ "@types/chai": {
4
+ "from": "^5.2.2",
5
+ "to": "^5.2.3"
26
6
  },
27
7
  "tinybench": {
28
- "from": "^2.9.0",
29
- "to": "^6.0.2"
8
+ "from": "6.1.4",
9
+ "to": "^6.1.6"
30
10
  },
31
11
  "tinyexec": {
32
- "from": "^1.0.2",
33
- "to": "^1.2.4"
34
- },
35
- "tinyglobby": {
36
- "from": "^0.2.15",
37
- "to": "^0.2.17"
38
- },
39
- "vite": {
40
- "from": "^6.0.0 || ^7.0.0 || ^8.0.0",
41
- "to": "^8.1.5"
12
+ "from": "1.3.0",
13
+ "to": "^1.3.1"
42
14
  },
43
15
  "why-is-node-running": {
44
16
  "from": "^2.3.0",
45
17
  "to": "^3.2.2"
46
18
  }
47
19
  },
48
- "timestamp": "2026-07-21T16:26:13.824Z",
49
- "totalUpdated": 11
20
+ "timestamp": "2026-09-06T01:04:27.794Z",
21
+ "totalUpdated": 4
50
22
  }
package/dist/browser.d.ts CHANGED
@@ -1,35 +1,52 @@
1
- import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.d.A1h_Y6Jt.js';
2
- import { R as RuntimeCoverageModuleLoader } from './chunks/coverage.d.BZtK59WP.js';
3
- import { SerializedDiffOptions } from '@vitest/utils/diff';
4
- export { O as OTELCarrier, T as Traces } from './chunks/traces.d.D2T_R8rx.js';
5
- export { collectTests, startTests } from '@vitest/runner';
6
- import * as _vitest_spy from '@vitest/spy';
7
- export { _vitest_spy as SpyModule };
8
- export { LoupeOptions, ParsedStack, StringifyOptions } from '@vitest/utils';
9
- export { browserFormat, format, inspect, stringify } from '@vitest/utils/display';
10
- export { processError } from '@vitest/utils/error';
11
- export { getType } from '@vitest/utils/helpers';
12
- export { DecodedMap, getOriginalPosition } from '@vitest/utils/source-map';
13
- export { getSafeTimers, setSafeTimers } from '@vitest/utils/timers';
14
- import '@vitest/pretty-format';
15
- import '@vitest/snapshot';
16
-
17
- declare function startCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: RuntimeCoverageModuleLoader, runtimeOptions: {
1
+ import { F as FileSpecification, c as SerializedDiffOptions } from './chunks/config.d.CU_b-wJj.js';
2
+ import { SerializedCoverageConfig, RunnerTestFile as File, SerializedConfig, DiffOptions, TestError } from './index.js';
3
+ import { VitestRunner } from './runtime.js';
4
+ export { P as ParsedStack, _ as SpyModule, d as StringifyOptions, f as format, i as inspect, s as stringify } from './chunks/config.d.CU_b-wJj.js';
5
+ import { R as RuntimeCoverageModuleLoader } from './chunks/source-map.d.YqWNcp4e.js';
6
+ export { D as DecodedMap, g as getOriginalPosition } from './chunks/source-map.d.YqWNcp4e.js';
7
+ import 'vitest/optional-runtime-types.js';
8
+ import 'tinybench';
9
+
10
+ declare function getType(value: unknown): string;
11
+
12
+ interface SafeTimers {
13
+ nextTick?: (cb: () => void) => void;
14
+ setImmediate?: {
15
+ <TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): any;
16
+ __promisify__: <T = void>(value?: T, options?: any) => Promise<T>;
17
+ };
18
+ clearImmediate?: (immediateId: any) => void;
19
+ setTimeout: typeof setTimeout;
20
+ setInterval: typeof setInterval;
21
+ clearInterval: typeof clearInterval;
22
+ clearTimeout: typeof clearTimeout;
23
+ queueMicrotask: typeof queueMicrotask;
24
+ }
25
+ declare function getSafeTimers(): SafeTimers;
26
+ declare function setSafeTimers(): void;
27
+
28
+ declare function startCoverageInsideWorker(options: SerializedCoverageConfig, loader: RuntimeCoverageModuleLoader, runtimeOptions: {
18
29
  isolate: boolean;
19
30
  }): Promise<unknown>;
20
- declare function takeCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: RuntimeCoverageModuleLoader): Promise<unknown>;
21
- declare function stopCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: RuntimeCoverageModuleLoader, runtimeOptions: {
31
+ declare function takeCoverageInsideWorker(options: SerializedCoverageConfig, loader: RuntimeCoverageModuleLoader): Promise<unknown>;
32
+ declare function stopCoverageInsideWorker(options: SerializedCoverageConfig, loader: RuntimeCoverageModuleLoader, runtimeOptions: {
22
33
  isolate: boolean;
23
34
  }): Promise<unknown>;
24
35
 
36
+ declare function startTests(specs: string[] | FileSpecification[], runner: VitestRunner): Promise<File[]>;
37
+ declare function publicCollect(specs: string[] | FileSpecification[], runner: VitestRunner): Promise<File[]>;
38
+
25
39
  interface PublicModuleRunner {
26
40
  import: (id: string) => Promise<any>;
27
41
  }
28
42
 
29
43
  declare function setupCommonEnv(config: SerializedConfig): Promise<void>;
44
+ declare function setupEnv(env: Record<string, any>, metaEnv: Record<string, any>): void;
30
45
  declare function loadDiffConfig(config: SerializedConfig, moduleRunner: PublicModuleRunner): Promise<SerializedDiffOptions | undefined>;
31
46
  declare function loadSnapshotSerializers(config: SerializedConfig, moduleRunner: PublicModuleRunner): Promise<void>;
32
47
 
48
+ declare function processError(_err: any, diffOptions?: DiffOptions, seen?: WeakSet<WeakKey>): TestError;
49
+
33
50
  interface FsOptions {
34
51
  encoding?: BufferEncoding;
35
52
  flag?: string | number;
@@ -43,5 +60,5 @@ interface BrowserCommands {
43
60
  }
44
61
  interface CDPSession {}
45
62
 
46
- export { loadDiffConfig, loadSnapshotSerializers, setupCommonEnv, startCoverageInsideWorker, stopCoverageInsideWorker, takeCoverageInsideWorker };
63
+ export { FileSpecification, publicCollect as collectTests, getSafeTimers, getType, loadDiffConfig, loadSnapshotSerializers, processError, setSafeTimers, setupCommonEnv, setupEnv, startCoverageInsideWorker, startTests, stopCoverageInsideWorker, takeCoverageInsideWorker };
47
64
  export type { BrowserCommands, CDPSession, FsOptions };
package/dist/browser.js CHANGED
@@ -1,16 +1,15 @@
1
- export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/setup-common.DYx3LtFI.js';
2
- export { T as Traces } from './chunks/traces.DT5aQ62U.js';
3
- export { collectTests, startTests } from '@vitest/runner';
4
- import * as spyModule from '@vitest/spy';
5
- export { spyModule as SpyModule };
6
- export { browserFormat, format, inspect, stringify } from '@vitest/utils/display';
7
- export { processError } from '@vitest/utils/error';
8
- export { getType } from '@vitest/utils/helpers';
9
- export { DecodedMap, getOriginalPosition } from '@vitest/utils/source-map';
10
- export { getSafeTimers, setSafeTimers } from '@vitest/utils/timers';
11
- import './chunks/coverage.CTzCuANN.js';
12
- import '@vitest/snapshot';
13
- import './chunks/utils.BX5Fg8C4.js';
1
+ export { s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.BtDxDqSU.js';
2
+ export { p as collectTests, a as processError, s as startTests } from './chunks/run.CQOUYP-x.js';
3
+ export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as setupEnv } from './chunks/setup-common.D5-2VgqG.js';
4
+ export { s as SpyModule } from './chunks/spy.DPLvp2J7.js';
5
+ export { f as format, i as inspect, s as stringify } from './chunks/display.pkpxlVcY.js';
6
+ export { g as getType } from './chunks/pathe.M-eThtNZ.Clq7AXhv.js';
7
+ export { D as DecodedMap, g as getOriginalPosition, a as getSafeTimers, s as setSafeTimers } from './chunks/source-map.Dx3YPjIe.js';
8
+ import './chunks/coverage.BcXK1DsQ.js';
9
+ import './chunks/index.M2dsQ_UQ.js';
10
+ import './chunks/tinyrainbow.Ht9iggcq.js';
11
+ import './task-utils.js';
12
+ import './chunks/plugins.Cigb0uSy.js';
14
13
 
15
14
  /**
16
15
  * @internal
@@ -817,10 +817,10 @@ var pp$8 = Parser.prototype;
817
817
  // to its body instead of creating a new node.
818
818
 
819
819
  pp$8.parseTopLevel = function(node) {
820
- var exports$1 = Object.create(null);
820
+ var exports = Object.create(null);
821
821
  if (!node.body) { node.body = []; }
822
822
  while (this.type !== types$1.eof) {
823
- var stmt = this.parseStatement(null, true, exports$1);
823
+ var stmt = this.parseStatement(null, true, exports);
824
824
  node.body.push(stmt);
825
825
  }
826
826
  if (this.inModule)
@@ -884,7 +884,7 @@ pp$8.isAsyncFunction = function() {
884
884
  // `if (foo) /blah/.exec(foo)`, where looking at the previous token
885
885
  // does not help.
886
886
 
887
- pp$8.parseStatement = function(context, topLevel, exports$1) {
887
+ pp$8.parseStatement = function(context, topLevel, exports) {
888
888
  var starttype = this.type, node = this.startNode(), kind;
889
889
 
890
890
  if (this.isLet(context)) {
@@ -939,7 +939,7 @@ pp$8.parseStatement = function(context, topLevel, exports$1) {
939
939
  if (!this.inModule)
940
940
  { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); }
941
941
  }
942
- return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports$1)
942
+ return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
943
943
 
944
944
  // If the statement does not start with a statement keyword or a
945
945
  // brace, it's an ExpressionStatement or LabeledStatement. We
@@ -1654,11 +1654,11 @@ function checkKeyName(node, name) {
1654
1654
 
1655
1655
  // Parses module export declaration.
1656
1656
 
1657
- pp$8.parseExportAllDeclaration = function(node, exports$1) {
1657
+ pp$8.parseExportAllDeclaration = function(node, exports) {
1658
1658
  if (this.options.ecmaVersion >= 11) {
1659
1659
  if (this.eatContextual("as")) {
1660
1660
  node.exported = this.parseModuleExportName();
1661
- this.checkExport(exports$1, node.exported, this.lastTokStart);
1661
+ this.checkExport(exports, node.exported, this.lastTokStart);
1662
1662
  } else {
1663
1663
  node.exported = null;
1664
1664
  }
@@ -1670,14 +1670,14 @@ pp$8.parseExportAllDeclaration = function(node, exports$1) {
1670
1670
  return this.finishNode(node, "ExportAllDeclaration")
1671
1671
  };
1672
1672
 
1673
- pp$8.parseExport = function(node, exports$1) {
1673
+ pp$8.parseExport = function(node, exports) {
1674
1674
  this.next();
1675
1675
  // export * from '...'
1676
1676
  if (this.eat(types$1.star)) {
1677
- return this.parseExportAllDeclaration(node, exports$1)
1677
+ return this.parseExportAllDeclaration(node, exports)
1678
1678
  }
1679
1679
  if (this.eat(types$1._default)) { // export default ...
1680
- this.checkExport(exports$1, "default", this.lastTokStart);
1680
+ this.checkExport(exports, "default", this.lastTokStart);
1681
1681
  node.declaration = this.parseExportDefaultDeclaration();
1682
1682
  return this.finishNode(node, "ExportDefaultDeclaration")
1683
1683
  }
@@ -1685,14 +1685,14 @@ pp$8.parseExport = function(node, exports$1) {
1685
1685
  if (this.shouldParseExportStatement()) {
1686
1686
  node.declaration = this.parseExportDeclaration(node);
1687
1687
  if (node.declaration.type === "VariableDeclaration")
1688
- { this.checkVariableExport(exports$1, node.declaration.declarations); }
1688
+ { this.checkVariableExport(exports, node.declaration.declarations); }
1689
1689
  else
1690
- { this.checkExport(exports$1, node.declaration.id, node.declaration.id.start); }
1690
+ { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
1691
1691
  node.specifiers = [];
1692
1692
  node.source = null;
1693
1693
  } else { // export { x, y as z } [from '...']
1694
1694
  node.declaration = null;
1695
- node.specifiers = this.parseExportSpecifiers(exports$1);
1695
+ node.specifiers = this.parseExportSpecifiers(exports);
1696
1696
  if (this.eatContextual("from")) {
1697
1697
  if (this.type !== types$1.string) { this.unexpected(); }
1698
1698
  node.source = this.parseExprAtom();
@@ -1738,47 +1738,47 @@ pp$8.parseExportDefaultDeclaration = function() {
1738
1738
  }
1739
1739
  };
1740
1740
 
1741
- pp$8.checkExport = function(exports$1, name, pos) {
1742
- if (!exports$1) { return }
1741
+ pp$8.checkExport = function(exports, name, pos) {
1742
+ if (!exports) { return }
1743
1743
  if (typeof name !== "string")
1744
1744
  { name = name.type === "Identifier" ? name.name : name.value; }
1745
- if (hasOwn(exports$1, name))
1745
+ if (hasOwn(exports, name))
1746
1746
  { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
1747
- exports$1[name] = true;
1747
+ exports[name] = true;
1748
1748
  };
1749
1749
 
1750
- pp$8.checkPatternExport = function(exports$1, pat) {
1750
+ pp$8.checkPatternExport = function(exports, pat) {
1751
1751
  var type = pat.type;
1752
1752
  if (type === "Identifier")
1753
- { this.checkExport(exports$1, pat, pat.start); }
1753
+ { this.checkExport(exports, pat, pat.start); }
1754
1754
  else if (type === "ObjectPattern")
1755
1755
  { for (var i = 0, list = pat.properties; i < list.length; i += 1)
1756
1756
  {
1757
1757
  var prop = list[i];
1758
1758
 
1759
- this.checkPatternExport(exports$1, prop);
1759
+ this.checkPatternExport(exports, prop);
1760
1760
  } }
1761
1761
  else if (type === "ArrayPattern")
1762
1762
  { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
1763
1763
  var elt = list$1[i$1];
1764
1764
 
1765
- if (elt) { this.checkPatternExport(exports$1, elt); }
1765
+ if (elt) { this.checkPatternExport(exports, elt); }
1766
1766
  } }
1767
1767
  else if (type === "Property")
1768
- { this.checkPatternExport(exports$1, pat.value); }
1768
+ { this.checkPatternExport(exports, pat.value); }
1769
1769
  else if (type === "AssignmentPattern")
1770
- { this.checkPatternExport(exports$1, pat.left); }
1770
+ { this.checkPatternExport(exports, pat.left); }
1771
1771
  else if (type === "RestElement")
1772
- { this.checkPatternExport(exports$1, pat.argument); }
1772
+ { this.checkPatternExport(exports, pat.argument); }
1773
1773
  };
1774
1774
 
1775
- pp$8.checkVariableExport = function(exports$1, decls) {
1776
- if (!exports$1) { return }
1775
+ pp$8.checkVariableExport = function(exports, decls) {
1776
+ if (!exports) { return }
1777
1777
  for (var i = 0, list = decls; i < list.length; i += 1)
1778
1778
  {
1779
1779
  var decl = list[i];
1780
1780
 
1781
- this.checkPatternExport(exports$1, decl.id);
1781
+ this.checkPatternExport(exports, decl.id);
1782
1782
  }
1783
1783
  };
1784
1784
 
@@ -1793,13 +1793,13 @@ pp$8.shouldParseExportStatement = function() {
1793
1793
 
1794
1794
  // Parses a comma-separated list of module exports.
1795
1795
 
1796
- pp$8.parseExportSpecifier = function(exports$1) {
1796
+ pp$8.parseExportSpecifier = function(exports) {
1797
1797
  var node = this.startNode();
1798
1798
  node.local = this.parseModuleExportName();
1799
1799
 
1800
1800
  node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
1801
1801
  this.checkExport(
1802
- exports$1,
1802
+ exports,
1803
1803
  node.exported,
1804
1804
  node.exported.start
1805
1805
  );
@@ -1807,7 +1807,7 @@ pp$8.parseExportSpecifier = function(exports$1) {
1807
1807
  return this.finishNode(node, "ExportSpecifier")
1808
1808
  };
1809
1809
 
1810
- pp$8.parseExportSpecifiers = function(exports$1) {
1810
+ pp$8.parseExportSpecifiers = function(exports) {
1811
1811
  var nodes = [], first = true;
1812
1812
  // export { x, y as z } [from '...']
1813
1813
  this.expect(types$1.braceL);
@@ -1817,7 +1817,7 @@ pp$8.parseExportSpecifiers = function(exports$1) {
1817
1817
  if (this.afterTrailingComma(types$1.braceR)) { break }
1818
1818
  } else { first = false; }
1819
1819
 
1820
- nodes.push(this.parseExportSpecifier(exports$1));
1820
+ nodes.push(this.parseExportSpecifier(exports));
1821
1821
  }
1822
1822
  return nodes
1823
1823
  };