vitest 3.0.5 → 3.0.6

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 (59) hide show
  1. package/LICENSE.md +20 -304
  2. package/dist/browser.d.ts +8 -14
  3. package/dist/browser.js +2 -2
  4. package/dist/chunks/{base.wKnmhRYd.js → base.B2NLWv2w.js} +5 -3
  5. package/dist/chunks/{cac.B_eDEFh6.js → cac.mNJBJcT7.js} +24 -24
  6. package/dist/chunks/{cli-api.az_rB_xZ.js → cli-api.Dkt_XoKq.js} +3253 -3039
  7. package/dist/chunks/{console.BxE0RUCr.js → console.CN7AiMGV.js} +3 -3
  8. package/dist/chunks/{coverage.BWeNbfBa.js → coverage.DnNIv-kJ.js} +1 -1
  9. package/dist/chunks/{creator.fUJbheb8.js → creator.2CFRE1Yx.js} +5 -5
  10. package/dist/chunks/{execute.PoofJYS5.js → execute.DNQad00_.js} +11 -4
  11. package/dist/chunks/{globals.BSNBk3vE.js → globals.DrEiwfS1.js} +2 -2
  12. package/dist/chunks/{index.TH3f4LSA.js → index.68735LiX.js} +2 -2
  13. package/dist/chunks/{index.NxxmQyK2.js → index.Bw6JxgX8.js} +3 -3
  14. package/dist/chunks/{index.vId0fl99.js → index.C1f-_gvH.js} +86 -45
  15. package/dist/chunks/{index.B57_6XMC.js → index.DBIGubLC.js} +8 -8
  16. package/dist/chunks/{index.C2XSkjNu.js → index.DC3HGwr0.js} +3 -3
  17. package/dist/chunks/{index.cYxyd29h.js → index.K90BXFOx.js} +12 -12
  18. package/dist/chunks/{index.Bf4FgyZN.js → index.SduP00mx.js} +1 -1
  19. package/dist/chunks/{inspector.CU9GlB9I.js → inspector.DKLceBVD.js} +1 -1
  20. package/dist/chunks/{reporters.6vxQttCV.d.ts → reporters.DTtkbAtP.d.ts} +75 -59
  21. package/dist/chunks/{resolveConfig.BT-MMQUD.js → resolveConfig.BbcK25zb.js} +20 -22
  22. package/dist/chunks/{rpc.Bf456uf4.js → rpc.TVf73xOu.js} +1 -1
  23. package/dist/chunks/{runBaseTests.Ba8jtu6O.js → runBaseTests.Cr-AyqFv.js} +9 -9
  24. package/dist/chunks/{setup-common.jLbIuaww.js → setup-common.IrcyRZ8C.js} +1 -1
  25. package/dist/chunks/{suite.BJU7kdY9.d.ts → suite.qtkXWc6R.d.ts} +1 -1
  26. package/dist/chunks/{typechecker.CdcjdhoT.js → typechecker.cZ0LjdSi.js} +7 -7
  27. package/dist/chunks/{utils.DJWL04yX.js → utils.bLM2atbD.js} +3 -3
  28. package/dist/chunks/{vi.CjhMlMwf.js → vi.DrftpPF8.js} +26 -20
  29. package/dist/chunks/{vite.Cu7NWuBa.d.ts → vite.BmCIRnbq.d.ts} +1 -1
  30. package/dist/chunks/{vm.DXDoSHPT.js → vm.ku9l48hv.js} +7 -5
  31. package/dist/chunks/{worker.B1y96qmv.d.ts → worker.B2JXutr8.d.ts} +1 -1
  32. package/dist/chunks/{worker.CIpff8Eg.d.ts → worker.DaAIyCKm.d.ts} +2 -1
  33. package/dist/cli.js +1 -1
  34. package/dist/config.cjs +3 -4
  35. package/dist/config.d.ts +23 -26
  36. package/dist/config.js +3 -4
  37. package/dist/coverage.d.ts +3 -3
  38. package/dist/coverage.js +9 -9
  39. package/dist/environments.d.ts +2 -2
  40. package/dist/environments.js +1 -1
  41. package/dist/execute.d.ts +6 -6
  42. package/dist/execute.js +1 -1
  43. package/dist/index.d.ts +10 -10
  44. package/dist/index.js +2 -2
  45. package/dist/node.d.ts +13 -13
  46. package/dist/node.js +11 -12
  47. package/dist/reporters.d.ts +1 -1
  48. package/dist/reporters.js +3 -3
  49. package/dist/runners.js +4 -4
  50. package/dist/suite.d.ts +1 -1
  51. package/dist/worker.js +6 -5
  52. package/dist/workers/forks.js +4 -4
  53. package/dist/workers/runVmTests.js +8 -8
  54. package/dist/workers/threads.js +4 -4
  55. package/dist/workers/vmForks.js +5 -5
  56. package/dist/workers/vmThreads.js +5 -5
  57. package/dist/workers.d.ts +2 -2
  58. package/dist/workers.js +8 -8
  59. package/package.json +18 -18
package/LICENSE.md CHANGED
@@ -57,90 +57,6 @@ Repository: git+https://github.com/antfu/install-pkg.git
57
57
 
58
58
  ---------------------------------------
59
59
 
60
- ## @nodelib/fs.scandir
61
- License: MIT
62
- Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir
63
-
64
- > The MIT License (MIT)
65
- >
66
- > Copyright (c) Denis Malinochkin
67
- >
68
- > Permission is hereby granted, free of charge, to any person obtaining a copy
69
- > of this software and associated documentation files (the "Software"), to deal
70
- > in the Software without restriction, including without limitation the rights
71
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72
- > copies of the Software, and to permit persons to whom the Software is
73
- > furnished to do so, subject to the following conditions:
74
- >
75
- > The above copyright notice and this permission notice shall be included in all
76
- > copies or substantial portions of the Software.
77
- >
78
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
84
- > SOFTWARE.
85
-
86
- ---------------------------------------
87
-
88
- ## @nodelib/fs.stat
89
- License: MIT
90
- Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat
91
-
92
- > The MIT License (MIT)
93
- >
94
- > Copyright (c) Denis Malinochkin
95
- >
96
- > Permission is hereby granted, free of charge, to any person obtaining a copy
97
- > of this software and associated documentation files (the "Software"), to deal
98
- > in the Software without restriction, including without limitation the rights
99
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
100
- > copies of the Software, and to permit persons to whom the Software is
101
- > furnished to do so, subject to the following conditions:
102
- >
103
- > The above copyright notice and this permission notice shall be included in all
104
- > copies or substantial portions of the Software.
105
- >
106
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
107
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
108
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
109
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
110
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
111
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
112
- > SOFTWARE.
113
-
114
- ---------------------------------------
115
-
116
- ## @nodelib/fs.walk
117
- License: MIT
118
- Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk
119
-
120
- > The MIT License (MIT)
121
- >
122
- > Copyright (c) Denis Malinochkin
123
- >
124
- > Permission is hereby granted, free of charge, to any person obtaining a copy
125
- > of this software and associated documentation files (the "Software"), to deal
126
- > in the Software without restriction, including without limitation the rights
127
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
128
- > copies of the Software, and to permit persons to whom the Software is
129
- > furnished to do so, subject to the following conditions:
130
- >
131
- > The above copyright notice and this permission notice shall be included in all
132
- > copies or substantial portions of the Software.
133
- >
134
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
135
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
136
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
137
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
138
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
139
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
140
- > SOFTWARE.
141
-
142
- ---------------------------------------
143
-
144
60
  ## @sinonjs/commons
145
61
  License: BSD-3-Clause
146
62
  Repository: git+https://github.com/sinonjs/commons.git
@@ -341,53 +257,18 @@ Repository: https://github.com/debitoor/chai-subset.git
341
257
 
342
258
  ---------------------------------------
343
259
 
344
- ## fast-glob
260
+ ## fdir
345
261
  License: MIT
346
- By: Denis Malinochkin
347
- Repository: mrmlnc/fast-glob
262
+ By: thecodrr
263
+ Repository: git+https://github.com/thecodrr/fdir.git
348
264
 
349
- > The MIT License (MIT)
350
- >
351
- > Copyright (c) Denis Malinochkin
352
- >
353
- > Permission is hereby granted, free of charge, to any person obtaining a copy
354
- > of this software and associated documentation files (the "Software"), to deal
355
- > in the Software without restriction, including without limitation the rights
356
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
357
- > copies of the Software, and to permit persons to whom the Software is
358
- > furnished to do so, subject to the following conditions:
359
- >
360
- > The above copyright notice and this permission notice shall be included in all
361
- > copies or substantial portions of the Software.
265
+ > Copyright 2023 Abdullah Atta
362
266
  >
363
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
364
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
365
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
366
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
367
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
368
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
369
- > SOFTWARE.
370
-
371
- ---------------------------------------
372
-
373
- ## fastq
374
- License: ISC
375
- By: Matteo Collina
376
- Repository: git+https://github.com/mcollina/fastq.git
377
-
378
- > Copyright (c) 2015-2020, Matteo Collina <matteo.collina@gmail.com>
267
+ > 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:
379
268
  >
380
- > Permission to use, copy, modify, and/or distribute this software for any
381
- > purpose with or without fee is hereby granted, provided that the above
382
- > copyright notice and this permission notice appear in all copies.
269
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
383
270
  >
384
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
385
- > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
386
- > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
387
- > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
388
- > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
389
- > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
390
- > OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
271
+ > 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.
391
272
 
392
273
  ---------------------------------------
393
274
 
@@ -489,87 +370,6 @@ Repository: privatenumber/get-tsconfig
489
370
 
490
371
  ---------------------------------------
491
372
 
492
- ## glob-parent
493
- License: ISC
494
- By: Gulp Team, Elan Shanker, Blaine Bublitz
495
- Repository: gulpjs/glob-parent
496
-
497
- > The ISC License
498
- >
499
- > Copyright (c) 2015, 2019 Elan Shanker
500
- >
501
- > Permission to use, copy, modify, and/or distribute this software for any
502
- > purpose with or without fee is hereby granted, provided that the above
503
- > copyright notice and this permission notice appear in all copies.
504
- >
505
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
506
- > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
507
- > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
508
- > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
509
- > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
510
- > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
511
- > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
512
-
513
- ---------------------------------------
514
-
515
- ## is-extglob
516
- License: MIT
517
- By: Jon Schlinkert
518
- Repository: jonschlinkert/is-extglob
519
-
520
- > The MIT License (MIT)
521
- >
522
- > Copyright (c) 2014-2016, Jon Schlinkert
523
- >
524
- > Permission is hereby granted, free of charge, to any person obtaining a copy
525
- > of this software and associated documentation files (the "Software"), to deal
526
- > in the Software without restriction, including without limitation the rights
527
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
528
- > copies of the Software, and to permit persons to whom the Software is
529
- > furnished to do so, subject to the following conditions:
530
- >
531
- > The above copyright notice and this permission notice shall be included in
532
- > all copies or substantial portions of the Software.
533
- >
534
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
535
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
536
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
537
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
538
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
539
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
540
- > THE SOFTWARE.
541
-
542
- ---------------------------------------
543
-
544
- ## is-glob
545
- License: MIT
546
- By: Jon Schlinkert, Brian Woodward, Daniel Perez
547
- Repository: micromatch/is-glob
548
-
549
- > The MIT License (MIT)
550
- >
551
- > Copyright (c) 2014-2017, Jon Schlinkert.
552
- >
553
- > Permission is hereby granted, free of charge, to any person obtaining a copy
554
- > of this software and associated documentation files (the "Software"), to deal
555
- > in the Software without restriction, including without limitation the rights
556
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
557
- > copies of the Software, and to permit persons to whom the Software is
558
- > furnished to do so, subject to the following conditions:
559
- >
560
- > The above copyright notice and this permission notice shall be included in
561
- > all copies or substantial portions of the Software.
562
- >
563
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
564
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
565
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
566
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
567
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
568
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
569
- > THE SOFTWARE.
570
-
571
- ---------------------------------------
572
-
573
373
  ## is-number
574
374
  License: MIT
575
375
  By: Jon Schlinkert, Olsten Larck, Rouven Weßling
@@ -703,34 +503,6 @@ Repository: sindresorhus/locate-path
703
503
 
704
504
  ---------------------------------------
705
505
 
706
- ## merge2
707
- License: MIT
708
- Repository: git@github.com:teambition/merge2.git
709
-
710
- > The MIT License (MIT)
711
- >
712
- > Copyright (c) 2014-2020 Teambition
713
- >
714
- > Permission is hereby granted, free of charge, to any person obtaining a copy
715
- > of this software and associated documentation files (the "Software"), to deal
716
- > in the Software without restriction, including without limitation the rights
717
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
718
- > copies of the Software, and to permit persons to whom the Software is
719
- > furnished to do so, subject to the following conditions:
720
- >
721
- > The above copyright notice and this permission notice shall be included in all
722
- > copies or substantial portions of the Software.
723
- >
724
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
725
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
726
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
727
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
728
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
729
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
730
- > SOFTWARE.
731
-
732
- ---------------------------------------
733
-
734
506
  ## micromatch
735
507
  License: MIT
736
508
  By: Jon Schlinkert, Amila Welihinda, Bogdan Chadkin, Brian Woodward, Devon Govett, Elan Shanker, Fabrício Matté, Martin Kolárik, Olsten Larck, Paul Miller, Tom Byrer, Tyler Akins, Peter Bright, Kuba Juszczyk
@@ -909,34 +681,6 @@ Repository: terkelg/prompts
909
681
 
910
682
  ---------------------------------------
911
683
 
912
- ## queue-microtask
913
- License: MIT
914
- By: Feross Aboukhadijeh
915
- Repository: git://github.com/feross/queue-microtask.git
916
-
917
- > The MIT License (MIT)
918
- >
919
- > Copyright (c) Feross Aboukhadijeh
920
- >
921
- > Permission is hereby granted, free of charge, to any person obtaining a copy of
922
- > this software and associated documentation files (the "Software"), to deal in
923
- > the Software without restriction, including without limitation the rights to
924
- > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
925
- > the Software, and to permit persons to whom the Software is furnished to do so,
926
- > subject to the following conditions:
927
- >
928
- > The above copyright notice and this permission notice shall be included in all
929
- > copies or substantial portions of the Software.
930
- >
931
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
932
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
933
- > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
934
- > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
935
- > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
936
- > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
937
-
938
- ---------------------------------------
939
-
940
684
  ## resolve-pkg-maps
941
685
  License: MIT
942
686
  By: Hiroki Osame
@@ -966,14 +710,14 @@ Repository: privatenumber/resolve-pkg-maps
966
710
 
967
711
  ---------------------------------------
968
712
 
969
- ## reusify
713
+ ## sisteransi
970
714
  License: MIT
971
- By: Matteo Collina
972
- Repository: git+https://github.com/mcollina/reusify.git
715
+ By: Terkel Gjervig
716
+ Repository: https://github.com/terkelg/sisteransi
973
717
 
974
- > The MIT License (MIT)
718
+ > MIT License
975
719
  >
976
- > Copyright (c) 2015 Matteo Collina
720
+ > Copyright (c) 2018 Terkel Gjervig Nielsen
977
721
  >
978
722
  > Permission is hereby granted, free of charge, to any person obtaining a copy
979
723
  > of this software and associated documentation files (the "Software"), to deal
@@ -995,42 +739,14 @@ Repository: git+https://github.com/mcollina/reusify.git
995
739
 
996
740
  ---------------------------------------
997
741
 
998
- ## run-parallel
999
- License: MIT
1000
- By: Feross Aboukhadijeh
1001
- Repository: git://github.com/feross/run-parallel.git
1002
-
1003
- > The MIT License (MIT)
1004
- >
1005
- > Copyright (c) Feross Aboukhadijeh
1006
- >
1007
- > Permission is hereby granted, free of charge, to any person obtaining a copy of
1008
- > this software and associated documentation files (the "Software"), to deal in
1009
- > the Software without restriction, including without limitation the rights to
1010
- > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1011
- > the Software, and to permit persons to whom the Software is furnished to do so,
1012
- > subject to the following conditions:
1013
- >
1014
- > The above copyright notice and this permission notice shall be included in all
1015
- > copies or substantial portions of the Software.
1016
- >
1017
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1018
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1019
- > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1020
- > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1021
- > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1022
- > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1023
-
1024
- ---------------------------------------
1025
-
1026
- ## sisteransi
742
+ ## strip-literal
1027
743
  License: MIT
1028
- By: Terkel Gjervig
1029
- Repository: https://github.com/terkelg/sisteransi
744
+ By: Anthony Fu
745
+ Repository: git+https://github.com/antfu/strip-literal.git
1030
746
 
1031
747
  > MIT License
1032
748
  >
1033
- > Copyright (c) 2018 Terkel Gjervig Nielsen
749
+ > Copyright (c) 2022 Anthony Fu <https://github.com/antfu>
1034
750
  >
1035
751
  > Permission is hereby granted, free of charge, to any person obtaining a copy
1036
752
  > of this software and associated documentation files (the "Software"), to deal
@@ -1052,14 +768,14 @@ Repository: https://github.com/terkelg/sisteransi
1052
768
 
1053
769
  ---------------------------------------
1054
770
 
1055
- ## strip-literal
771
+ ## tinyglobby
1056
772
  License: MIT
1057
- By: Anthony Fu
1058
- Repository: git+https://github.com/antfu/strip-literal.git
773
+ By: Superchupu
774
+ Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
1059
775
 
1060
776
  > MIT License
1061
777
  >
1062
- > Copyright (c) 2022 Anthony Fu <https://github.com/antfu>
778
+ > Copyright (c) 2024 Madeline Gurriarán
1063
779
  >
1064
780
  > Permission is hereby granted, free of charge, to any person obtaining a copy
1065
781
  > of this software and associated documentation files (the "Software"), to deal
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { b as CoverageProvider, c as CoverageProviderModule } from './chunks/reporters.6vxQttCV.js';
1
+ import { b as CoverageModuleLoader, c as CoverageProvider } from './chunks/reporters.DTtkbAtP.js';
2
2
  import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
3
3
  import * as spy$1 from '@vitest/spy';
4
- import * as _vitest_utils_diff from '@vitest/utils/diff';
4
+ import { SerializedDiffOptions } from '@vitest/utils/diff';
5
5
  import { VitestExecutor } from './execute.js';
6
6
  export { collectTests, processError, startTests } from '@vitest/runner';
7
7
  import './chunks/environment.d8YfPkTm.js';
@@ -20,7 +20,7 @@ import '@vitest/snapshot/manager';
20
20
  import 'node:fs';
21
21
  import '@vitest/snapshot/environment';
22
22
  import 'vite-node/client';
23
- import './chunks/worker.CIpff8Eg.js';
23
+ import './chunks/worker.DaAIyCKm.js';
24
24
  import 'node:vm';
25
25
  import '@vitest/mocker';
26
26
  import './chunks/mocker.cRtM890J.js';
@@ -44,23 +44,17 @@ var spy = /*#__PURE__*/_mergeNamespaces({
44
44
  __proto__: null
45
45
  }, [spy$1]);
46
46
 
47
- interface Loader {
48
- executeId: (id: string) => Promise<{
49
- default: CoverageProviderModule;
50
- }>;
51
- isBrowser?: boolean;
52
- }
53
- declare function getCoverageProvider(options: SerializedCoverageConfig | undefined, loader: Loader): Promise<CoverageProvider | null>;
54
- declare function startCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: Loader, runtimeOptions: {
47
+ declare function getCoverageProvider(options: SerializedCoverageConfig | undefined, loader: CoverageModuleLoader): Promise<CoverageProvider | null>;
48
+ declare function startCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: CoverageModuleLoader, runtimeOptions: {
55
49
  isolate: boolean;
56
50
  }): Promise<unknown>;
57
- declare function takeCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: Loader): Promise<unknown>;
58
- declare function stopCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: Loader, runtimeOptions: {
51
+ declare function takeCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: CoverageModuleLoader): Promise<unknown>;
52
+ declare function stopCoverageInsideWorker(options: SerializedCoverageConfig | undefined, loader: CoverageModuleLoader, runtimeOptions: {
59
53
  isolate: boolean;
60
54
  }): Promise<unknown>;
61
55
 
62
56
  declare function setupCommonEnv(config: SerializedConfig): Promise<void>;
63
- declare function loadDiffConfig(config: SerializedConfig, executor: VitestExecutor): Promise<_vitest_utils_diff.SerializedDiffOptions | undefined>;
57
+ declare function loadDiffConfig(config: SerializedConfig, executor: VitestExecutor): Promise<SerializedDiffOptions | undefined>;
64
58
  declare function loadSnapshotSerializers(config: SerializedConfig, executor: VitestExecutor): Promise<void>;
65
59
 
66
60
  export { spy as SpyModule, getCoverageProvider, loadDiffConfig, loadSnapshotSerializers, setupCommonEnv, startCoverageInsideWorker, stopCoverageInsideWorker, takeCoverageInsideWorker };
package/dist/browser.js CHANGED
@@ -1,6 +1,6 @@
1
- export { g as getCoverageProvider, s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.BWeNbfBa.js';
1
+ export { g as getCoverageProvider, s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.DnNIv-kJ.js';
2
2
  export { s as SpyModule } from './chunks/spy.Cf_4R5Oe.js';
3
- export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './chunks/setup-common.jLbIuaww.js';
3
+ export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './chunks/setup-common.IrcyRZ8C.js';
4
4
  export { collectTests, processError, startTests } from '@vitest/runner';
5
5
  import '@vitest/spy';
6
6
  import '@vitest/snapshot';
@@ -1,9 +1,10 @@
1
1
  import { ModuleCacheMap } from 'vite-node/client';
2
- import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.PoofJYS5.js';
2
+ import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.DNQad00_.js';
3
3
  import { p as provideWorkerState } from './utils.C8RiOc4B.js';
4
4
 
5
5
  let _viteNode;
6
6
  const moduleCache = new ModuleCacheMap();
7
+ const moduleExecutionInfo = /* @__PURE__ */ new Map();
7
8
  async function startViteNode(options) {
8
9
  if (_viteNode) {
9
10
  return _viteNode;
@@ -14,6 +15,7 @@ async function startViteNode(options) {
14
15
  async function runBaseTests(method, state) {
15
16
  const { ctx } = state;
16
17
  state.moduleCache = moduleCache;
18
+ state.moduleExecutionInfo = moduleExecutionInfo;
17
19
  provideWorkerState(globalThis, state);
18
20
  if (ctx.invalidates) {
19
21
  ctx.invalidates.forEach((fsPath) => {
@@ -26,10 +28,10 @@ async function runBaseTests(method, state) {
26
28
  ));
27
29
  const [executor, { run }] = await Promise.all([
28
30
  startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
29
- import('./runBaseTests.Ba8jtu6O.js')
31
+ import('./runBaseTests.Cr-AyqFv.js')
30
32
  ]);
31
33
  const fileSpecs = ctx.files.map(
32
- (f) => typeof f === "string" ? { filepath: f, testLocations: undefined } : f
34
+ (f) => typeof f === "string" ? { filepath: f, testLocations: void 0 } : f
33
35
  );
34
36
  await run(
35
37
  method,
@@ -25,9 +25,9 @@ function mri2 (args, opts) {
25
25
  var k, arr, arg, name, val, out={ _:[] };
26
26
  var i=0, j=0, idx=0, len=args.length;
27
27
 
28
- const alibi = opts.alias !== undefined;
29
- const strict = opts.unknown !== undefined;
30
- const defaults = opts.default !== undefined;
28
+ const alibi = opts.alias !== void 0;
29
+ const strict = opts.unknown !== void 0;
30
+ const defaults = opts.default !== void 0;
31
31
 
32
32
  opts.alias = opts.alias || {};
33
33
  opts.string = toArr(opts.string);
@@ -56,7 +56,7 @@ function mri2 (args, opts) {
56
56
  for (k in opts.default) {
57
57
  name = typeof opts.default[k];
58
58
  arr = opts.alias[k] = opts.alias[k] || [];
59
- if (opts[name] !== undefined) {
59
+ if (opts[name] !== void 0) {
60
60
  opts[name].push(k);
61
61
  for (i=0; i < arr.length; i++) {
62
62
  opts[name].push(arr[i]);
@@ -106,7 +106,7 @@ function mri2 (args, opts) {
106
106
 
107
107
  if (defaults) {
108
108
  for (k in opts.default) {
109
- if (out[k] === undefined) {
109
+ if (out[k] === void 0) {
110
110
  out[k] = opts.default[k];
111
111
  }
112
112
  }
@@ -359,7 +359,7 @@ class Command {
359
359
  sections.push({
360
360
  title: "Options",
361
361
  body: options.map((option) => {
362
- return ` ${padRight(option.rawName, longestOptionName.length)} ${option.description} ${option.config.default === undefined ? "" : `(default: ${option.config.default})`}`;
362
+ return ` ${padRight(option.rawName, longestOptionName.length)} ${option.description} ${option.config.default === void 0 ? "" : `(default: ${option.config.default})`}`;
363
363
  }).join("\n")
364
364
  });
365
365
  }
@@ -492,8 +492,8 @@ class CAC extends EventEmitter {
492
492
  return this;
493
493
  }
494
494
  unsetMatchedCommand() {
495
- this.matchedCommand = undefined;
496
- this.matchedCommandName = undefined;
495
+ this.matchedCommand = void 0;
496
+ this.matchedCommandName = void 0;
497
497
  }
498
498
  parse(argv = processArgs, {
499
499
  run = true
@@ -573,13 +573,13 @@ class CAC extends EventEmitter {
573
573
  const ignoreDefault = command && command.config.ignoreOptionDefaultValue ? command.config.ignoreOptionDefaultValue : this.globalCommand.config.ignoreOptionDefaultValue;
574
574
  let transforms = Object.create(null);
575
575
  for (const cliOption of cliOptions) {
576
- if (!ignoreDefault && cliOption.config.default !== undefined) {
576
+ if (!ignoreDefault && cliOption.config.default !== void 0) {
577
577
  for (const name of cliOption.names) {
578
578
  options[name] = cliOption.config.default;
579
579
  }
580
580
  }
581
581
  if (cliOption.config.type != null) {
582
- if (transforms[cliOption.name] === undefined) {
582
+ if (transforms[cliOption.name] === void 0) {
583
583
  transforms[cliOption.name] = cliOption.config.type;
584
584
  }
585
585
  }
@@ -618,7 +618,7 @@ class CAC extends EventEmitter {
618
618
 
619
619
  const cac = (name = "") => new CAC(name);
620
620
 
621
- var version = "3.0.5";
621
+ var version = "3.0.6";
622
622
 
623
623
  const apiConfig = (port) => ({
624
624
  port: {
@@ -1486,20 +1486,20 @@ function createCLI(options = {}) {
1486
1486
  }
1487
1487
  return info;
1488
1488
  });
1489
- cli.command("run [...filters]", undefined, options).action(run);
1490
- cli.command("related [...filters]", undefined, options).action(runRelated);
1491
- cli.command("watch [...filters]", undefined, options).action(watch);
1492
- cli.command("dev [...filters]", undefined, options).action(watch);
1489
+ cli.command("run [...filters]", void 0, options).action(run);
1490
+ cli.command("related [...filters]", void 0, options).action(runRelated);
1491
+ cli.command("watch [...filters]", void 0, options).action(watch);
1492
+ cli.command("dev [...filters]", void 0, options).action(watch);
1493
1493
  addCliOptions(
1494
- cli.command("bench [...filters]", undefined, options).action(benchmark),
1494
+ cli.command("bench [...filters]", void 0, options).action(benchmark),
1495
1495
  benchCliOptionsConfig
1496
1496
  );
1497
- cli.command("init <project>", undefined, options).action(init);
1497
+ cli.command("init <project>", void 0, options).action(init);
1498
1498
  addCliOptions(
1499
- cli.command("list [...filters]", undefined, options).action((filters, options2) => collect("test", filters, options2)),
1499
+ cli.command("list [...filters]", void 0, options).action((filters, options2) => collect("test", filters, options2)),
1500
1500
  collectCliOptionsConfig
1501
1501
  );
1502
- cli.command("[...filters]", undefined, options).action((filters, options2) => start("test", filters, options2));
1502
+ cli.command("[...filters]", void 0, options).action((filters, options2) => start("test", filters, options2));
1503
1503
  return cli;
1504
1504
  }
1505
1505
  function parseCLI(argv, config = {}) {
@@ -1567,13 +1567,13 @@ async function start(mode, cliFilters, options) {
1567
1567
  } catch {
1568
1568
  }
1569
1569
  try {
1570
- const { startVitest } = await import('./cli-api.az_rB_xZ.js').then(function (n) { return n.f; });
1570
+ const { startVitest } = await import('./cli-api.Dkt_XoKq.js').then(function (n) { return n.f; });
1571
1571
  const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
1572
1572
  if (!ctx.shouldKeepServer()) {
1573
1573
  await ctx.exit();
1574
1574
  }
1575
1575
  } catch (e) {
1576
- const { divider } = await import('./utils.DJWL04yX.js').then(function (n) { return n.u; });
1576
+ const { divider } = await import('./utils.bLM2atbD.js').then(function (n) { return n.u; });
1577
1577
  console.error(`
1578
1578
  ${c.red(divider(c.bold(c.inverse(" Startup Error "))))}`);
1579
1579
  console.error(e);
@@ -1589,7 +1589,7 @@ async function init(project) {
1589
1589
  console.error(new Error('Only the "browser" project is supported. Use "vitest init browser" to create a new project.'));
1590
1590
  process.exit(1);
1591
1591
  }
1592
- const { create } = await import('./creator.fUJbheb8.js');
1592
+ const { create } = await import('./creator.2CFRE1Yx.js');
1593
1593
  await create();
1594
1594
  }
1595
1595
  async function collect(mode, cliFilters, options) {
@@ -1598,7 +1598,7 @@ async function collect(mode, cliFilters, options) {
1598
1598
  } catch {
1599
1599
  }
1600
1600
  try {
1601
- const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.az_rB_xZ.js').then(function (n) { return n.f; });
1601
+ const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.Dkt_XoKq.js').then(function (n) { return n.f; });
1602
1602
  const ctx = await prepareVitest(mode, {
1603
1603
  ...normalizeCliOptions(cliFilters, options),
1604
1604
  watch: false,
@@ -1620,7 +1620,7 @@ async function collect(mode, cliFilters, options) {
1620
1620
  }
1621
1621
  await ctx.close();
1622
1622
  } catch (e) {
1623
- const { divider } = await import('./utils.DJWL04yX.js').then(function (n) { return n.u; });
1623
+ const { divider } = await import('./utils.bLM2atbD.js').then(function (n) { return n.u; });
1624
1624
  console.error(`
1625
1625
  ${c.red(divider(c.bold(c.inverse(" Collect Error "))))}`);
1626
1626
  console.error(e);