vitest 3.0.0-beta.2 → 3.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -315
- package/config.d.ts +2 -0
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +1 -1
- package/dist/chunks/{RandomSequencer.gisBJ77r.js → RandomSequencer.DB__To1b.js} +38 -8
- package/dist/chunks/{base.CUgXReRN.js → base.BJ8KO-VX.js} +2 -2
- package/dist/chunks/{cac.Xzv7eNWw.js → cac.BAYqQ2aM.js} +21 -10
- package/dist/chunks/{cli-api.CETCDGgZ.js → cli-api.Dhl34Trr.js} +263 -58
- package/dist/chunks/{config.BTPBhmK5.d.ts → config.BRtC-JeT.d.ts} +6 -0
- package/dist/chunks/{console.BYGVloWk.js → console.CN7AiMGV.js} +16 -7
- package/dist/chunks/{creator.DcAcUhMD.js → creator.Ot9GlSGw.js} +16 -14
- package/dist/chunks/{execute.2pr0rHgK.js → execute.BMOaRArH.js} +27 -16
- package/dist/chunks/{globals.BFncSRNA.js → globals.C5RQxaV3.js} +2 -2
- package/dist/chunks/{index.DoV7W5gc.js → index.B2M9nD1V.js} +6 -1
- package/dist/chunks/{index.CkWmZCXU.js → index.BQbxGbG9.js} +1 -1
- package/dist/chunks/index.CAueP3cK.js +3205 -0
- package/dist/chunks/{reporters.DTtxC3KQ.d.ts → reporters.Dcdq51WE.d.ts} +211 -257
- package/dist/chunks/{resolveConfig.BA-_OKEx.js → resolveConfig.kZFMjKCQ.js} +28 -6
- package/dist/chunks/{runBaseTests.D0dWpzZV.js → runBaseTests.URiUrnWK.js} +8 -6
- package/dist/chunks/{setup-common.Cp_bu5q3.js → setup-common.D0zLenuv.js} +1 -1
- package/dist/chunks/{utils.CMUTX-p8.js → utils.yHKcm4dz.js} +10 -21
- package/dist/chunks/{vi.S4Fq8wSo.js → vi.Da_PT3Vw.js} +554 -272
- package/dist/chunks/{vite.CXaetSK3.d.ts → vite.DzluO1Kj.d.ts} +1 -1
- package/dist/chunks/{vm.DGhTouO3.js → vm.DrFVeTXo.js} +4 -4
- package/dist/chunks/{worker.ClntunZp.d.ts → worker.BIVMnzXw.d.ts} +1 -1
- package/dist/chunks/{worker.o1PBoDdo.d.ts → worker.Hz_LAzfd.d.ts} +2 -1
- package/dist/cli.js +1 -1
- package/dist/config.cjs +1 -0
- package/dist/config.d.ts +4 -4
- package/dist/config.js +1 -0
- package/dist/coverage.d.ts +2 -2
- package/dist/coverage.js +33 -8
- package/dist/execute.d.ts +3 -3
- package/dist/execute.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/node.d.ts +6 -6
- package/dist/node.js +10 -11
- package/dist/reporters.d.ts +2 -2
- package/dist/reporters.js +3 -7
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +5 -12
- package/dist/workers/forks.js +2 -2
- package/dist/workers/runVmTests.js +7 -5
- package/dist/workers/threads.js +2 -2
- package/dist/workers/vmForks.js +3 -3
- package/dist/workers/vmThreads.js +3 -3
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +4 -4
- package/package.json +17 -19
- package/dist/chunks/index.9ZEBV_TJ.js +0 -5442
package/LICENSE.md
CHANGED
|
@@ -180,7 +180,7 @@ Repository: git+https://github.com/sinonjs/commons.git
|
|
|
180
180
|
## @sinonjs/fake-timers
|
|
181
181
|
License: BSD-3-Clause
|
|
182
182
|
By: Christian Johansen
|
|
183
|
-
Repository: https://github.com/sinonjs/fake-timers.git
|
|
183
|
+
Repository: git+https://github.com/sinonjs/fake-timers.git
|
|
184
184
|
|
|
185
185
|
> Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no. All rights reserved.
|
|
186
186
|
>
|
|
@@ -225,57 +225,6 @@ Repository: https://github.com/acornjs/acorn.git
|
|
|
225
225
|
|
|
226
226
|
---------------------------------------
|
|
227
227
|
|
|
228
|
-
## ansi-escapes
|
|
229
|
-
License: MIT
|
|
230
|
-
By: Sindre Sorhus
|
|
231
|
-
Repository: sindresorhus/ansi-escapes
|
|
232
|
-
|
|
233
|
-
> MIT License
|
|
234
|
-
>
|
|
235
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
236
|
-
>
|
|
237
|
-
> 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:
|
|
238
|
-
>
|
|
239
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
240
|
-
>
|
|
241
|
-
> 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.
|
|
242
|
-
|
|
243
|
-
---------------------------------------
|
|
244
|
-
|
|
245
|
-
## ansi-regex
|
|
246
|
-
License: MIT
|
|
247
|
-
By: Sindre Sorhus
|
|
248
|
-
Repository: chalk/ansi-regex
|
|
249
|
-
|
|
250
|
-
> MIT License
|
|
251
|
-
>
|
|
252
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
253
|
-
>
|
|
254
|
-
> 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:
|
|
255
|
-
>
|
|
256
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
257
|
-
>
|
|
258
|
-
> 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.
|
|
259
|
-
|
|
260
|
-
---------------------------------------
|
|
261
|
-
|
|
262
|
-
## ansi-styles
|
|
263
|
-
License: MIT
|
|
264
|
-
By: Sindre Sorhus
|
|
265
|
-
Repository: chalk/ansi-styles
|
|
266
|
-
|
|
267
|
-
> MIT License
|
|
268
|
-
>
|
|
269
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
270
|
-
>
|
|
271
|
-
> 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:
|
|
272
|
-
>
|
|
273
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
274
|
-
>
|
|
275
|
-
> 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.
|
|
276
|
-
|
|
277
|
-
---------------------------------------
|
|
278
|
-
|
|
279
228
|
## birpc
|
|
280
229
|
License: MIT
|
|
281
230
|
By: Anthony Fu
|
|
@@ -392,75 +341,6 @@ Repository: https://github.com/debitoor/chai-subset.git
|
|
|
392
341
|
|
|
393
342
|
---------------------------------------
|
|
394
343
|
|
|
395
|
-
## cli-cursor
|
|
396
|
-
License: MIT
|
|
397
|
-
By: Sindre Sorhus
|
|
398
|
-
Repository: sindresorhus/cli-cursor
|
|
399
|
-
|
|
400
|
-
> MIT License
|
|
401
|
-
>
|
|
402
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
403
|
-
>
|
|
404
|
-
> 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:
|
|
405
|
-
>
|
|
406
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
407
|
-
>
|
|
408
|
-
> 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.
|
|
409
|
-
|
|
410
|
-
---------------------------------------
|
|
411
|
-
|
|
412
|
-
## cli-truncate
|
|
413
|
-
License: MIT
|
|
414
|
-
By: Sindre Sorhus
|
|
415
|
-
Repository: sindresorhus/cli-truncate
|
|
416
|
-
|
|
417
|
-
> MIT License
|
|
418
|
-
>
|
|
419
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
420
|
-
>
|
|
421
|
-
> 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:
|
|
422
|
-
>
|
|
423
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
424
|
-
>
|
|
425
|
-
> 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.
|
|
426
|
-
|
|
427
|
-
---------------------------------------
|
|
428
|
-
|
|
429
|
-
## eastasianwidth
|
|
430
|
-
License: MIT
|
|
431
|
-
By: Masaki Komagata
|
|
432
|
-
Repository: git://github.com/komagata/eastasianwidth.git
|
|
433
|
-
|
|
434
|
-
---------------------------------------
|
|
435
|
-
|
|
436
|
-
## emoji-regex
|
|
437
|
-
License: MIT
|
|
438
|
-
By: Mathias Bynens
|
|
439
|
-
Repository: https://github.com/mathiasbynens/emoji-regex.git
|
|
440
|
-
|
|
441
|
-
> Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
442
|
-
>
|
|
443
|
-
> Permission is hereby granted, free of charge, to any person obtaining
|
|
444
|
-
> a copy of this software and associated documentation files (the
|
|
445
|
-
> "Software"), to deal in the Software without restriction, including
|
|
446
|
-
> without limitation the rights to use, copy, modify, merge, publish,
|
|
447
|
-
> distribute, sublicense, and/or sell copies of the Software, and to
|
|
448
|
-
> permit persons to whom the Software is furnished to do so, subject to
|
|
449
|
-
> the following conditions:
|
|
450
|
-
>
|
|
451
|
-
> The above copyright notice and this permission notice shall be
|
|
452
|
-
> included in all copies or substantial portions of the Software.
|
|
453
|
-
>
|
|
454
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
455
|
-
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
456
|
-
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
457
|
-
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
458
|
-
> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
459
|
-
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
460
|
-
> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
461
|
-
|
|
462
|
-
---------------------------------------
|
|
463
|
-
|
|
464
344
|
## fast-glob
|
|
465
345
|
License: MIT
|
|
466
346
|
By: Denis Malinochkin
|
|
@@ -580,23 +460,6 @@ Repository: git+https://github.com/WebReflection/flatted.git
|
|
|
580
460
|
|
|
581
461
|
---------------------------------------
|
|
582
462
|
|
|
583
|
-
## get-east-asian-width
|
|
584
|
-
License: MIT
|
|
585
|
-
By: Sindre Sorhus
|
|
586
|
-
Repository: sindresorhus/get-east-asian-width
|
|
587
|
-
|
|
588
|
-
> MIT License
|
|
589
|
-
>
|
|
590
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
591
|
-
>
|
|
592
|
-
> 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:
|
|
593
|
-
>
|
|
594
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
595
|
-
>
|
|
596
|
-
> 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.
|
|
597
|
-
|
|
598
|
-
---------------------------------------
|
|
599
|
-
|
|
600
463
|
## get-tsconfig
|
|
601
464
|
License: MIT
|
|
602
465
|
By: Hiroki Osame
|
|
@@ -678,23 +541,6 @@ Repository: jonschlinkert/is-extglob
|
|
|
678
541
|
|
|
679
542
|
---------------------------------------
|
|
680
543
|
|
|
681
|
-
## is-fullwidth-code-point
|
|
682
|
-
License: MIT
|
|
683
|
-
By: Sindre Sorhus
|
|
684
|
-
Repository: sindresorhus/is-fullwidth-code-point
|
|
685
|
-
|
|
686
|
-
> MIT License
|
|
687
|
-
>
|
|
688
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
689
|
-
>
|
|
690
|
-
> 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:
|
|
691
|
-
>
|
|
692
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
693
|
-
>
|
|
694
|
-
> 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.
|
|
695
|
-
|
|
696
|
-
---------------------------------------
|
|
697
|
-
|
|
698
544
|
## is-glob
|
|
699
545
|
License: MIT
|
|
700
546
|
By: Jon Schlinkert, Brian Woodward, Daniel Perez
|
|
@@ -857,23 +703,6 @@ Repository: sindresorhus/locate-path
|
|
|
857
703
|
|
|
858
704
|
---------------------------------------
|
|
859
705
|
|
|
860
|
-
## log-update
|
|
861
|
-
License: MIT
|
|
862
|
-
By: Sindre Sorhus
|
|
863
|
-
Repository: sindresorhus/log-update
|
|
864
|
-
|
|
865
|
-
> MIT License
|
|
866
|
-
>
|
|
867
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
868
|
-
>
|
|
869
|
-
> 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:
|
|
870
|
-
>
|
|
871
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
872
|
-
>
|
|
873
|
-
> 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.
|
|
874
|
-
|
|
875
|
-
---------------------------------------
|
|
876
|
-
|
|
877
706
|
## merge2
|
|
878
707
|
License: MIT
|
|
879
708
|
Repository: git@github.com:teambition/merge2.git
|
|
@@ -931,23 +760,6 @@ Repository: micromatch/micromatch
|
|
|
931
760
|
|
|
932
761
|
---------------------------------------
|
|
933
762
|
|
|
934
|
-
## mimic-fn
|
|
935
|
-
License: MIT
|
|
936
|
-
By: Sindre Sorhus
|
|
937
|
-
Repository: sindresorhus/mimic-fn
|
|
938
|
-
|
|
939
|
-
> MIT License
|
|
940
|
-
>
|
|
941
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
942
|
-
>
|
|
943
|
-
> 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:
|
|
944
|
-
>
|
|
945
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
946
|
-
>
|
|
947
|
-
> 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.
|
|
948
|
-
|
|
949
|
-
---------------------------------------
|
|
950
|
-
|
|
951
763
|
## mlly
|
|
952
764
|
License: MIT
|
|
953
765
|
Repository: unjs/mlly
|
|
@@ -976,23 +788,6 @@ Repository: unjs/mlly
|
|
|
976
788
|
|
|
977
789
|
---------------------------------------
|
|
978
790
|
|
|
979
|
-
## onetime
|
|
980
|
-
License: MIT
|
|
981
|
-
By: Sindre Sorhus
|
|
982
|
-
Repository: sindresorhus/onetime
|
|
983
|
-
|
|
984
|
-
> MIT License
|
|
985
|
-
>
|
|
986
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
987
|
-
>
|
|
988
|
-
> 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:
|
|
989
|
-
>
|
|
990
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
991
|
-
>
|
|
992
|
-
> 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.
|
|
993
|
-
|
|
994
|
-
---------------------------------------
|
|
995
|
-
|
|
996
791
|
## p-limit
|
|
997
792
|
License: MIT
|
|
998
793
|
By: Sindre Sorhus
|
|
@@ -1171,23 +966,6 @@ Repository: privatenumber/resolve-pkg-maps
|
|
|
1171
966
|
|
|
1172
967
|
---------------------------------------
|
|
1173
968
|
|
|
1174
|
-
## restore-cursor
|
|
1175
|
-
License: MIT
|
|
1176
|
-
By: Sindre Sorhus
|
|
1177
|
-
Repository: sindresorhus/restore-cursor
|
|
1178
|
-
|
|
1179
|
-
> MIT License
|
|
1180
|
-
>
|
|
1181
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
1182
|
-
>
|
|
1183
|
-
> 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:
|
|
1184
|
-
>
|
|
1185
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1186
|
-
>
|
|
1187
|
-
> 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.
|
|
1188
|
-
|
|
1189
|
-
---------------------------------------
|
|
1190
|
-
|
|
1191
969
|
## reusify
|
|
1192
970
|
License: MIT
|
|
1193
971
|
By: Matteo Collina
|
|
@@ -1245,30 +1023,6 @@ Repository: git://github.com/feross/run-parallel.git
|
|
|
1245
1023
|
|
|
1246
1024
|
---------------------------------------
|
|
1247
1025
|
|
|
1248
|
-
## signal-exit
|
|
1249
|
-
License: ISC
|
|
1250
|
-
By: Ben Coe
|
|
1251
|
-
Repository: https://github.com/tapjs/signal-exit.git
|
|
1252
|
-
|
|
1253
|
-
> The ISC License
|
|
1254
|
-
>
|
|
1255
|
-
> Copyright (c) 2015, Contributors
|
|
1256
|
-
>
|
|
1257
|
-
> Permission to use, copy, modify, and/or distribute this software
|
|
1258
|
-
> for any purpose with or without fee is hereby granted, provided
|
|
1259
|
-
> that the above copyright notice and this permission notice
|
|
1260
|
-
> appear in all copies.
|
|
1261
|
-
>
|
|
1262
|
-
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
1263
|
-
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
1264
|
-
> OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
|
1265
|
-
> LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
|
1266
|
-
> OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
1267
|
-
> WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
1268
|
-
> ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
1269
|
-
|
|
1270
|
-
---------------------------------------
|
|
1271
|
-
|
|
1272
1026
|
## sisteransi
|
|
1273
1027
|
License: MIT
|
|
1274
1028
|
By: Terkel Gjervig
|
|
@@ -1298,57 +1052,6 @@ Repository: https://github.com/terkelg/sisteransi
|
|
|
1298
1052
|
|
|
1299
1053
|
---------------------------------------
|
|
1300
1054
|
|
|
1301
|
-
## slice-ansi
|
|
1302
|
-
License: MIT
|
|
1303
|
-
Repository: chalk/slice-ansi
|
|
1304
|
-
|
|
1305
|
-
> MIT License
|
|
1306
|
-
>
|
|
1307
|
-
> Copyright (c) DC <threedeecee@gmail.com>
|
|
1308
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
1309
|
-
>
|
|
1310
|
-
> 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:
|
|
1311
|
-
>
|
|
1312
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1313
|
-
>
|
|
1314
|
-
> 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.
|
|
1315
|
-
|
|
1316
|
-
---------------------------------------
|
|
1317
|
-
|
|
1318
|
-
## string-width
|
|
1319
|
-
License: MIT
|
|
1320
|
-
By: Sindre Sorhus
|
|
1321
|
-
Repository: sindresorhus/string-width
|
|
1322
|
-
|
|
1323
|
-
> MIT License
|
|
1324
|
-
>
|
|
1325
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
1326
|
-
>
|
|
1327
|
-
> 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:
|
|
1328
|
-
>
|
|
1329
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1330
|
-
>
|
|
1331
|
-
> 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.
|
|
1332
|
-
|
|
1333
|
-
---------------------------------------
|
|
1334
|
-
|
|
1335
|
-
## strip-ansi
|
|
1336
|
-
License: MIT
|
|
1337
|
-
By: Sindre Sorhus
|
|
1338
|
-
Repository: chalk/strip-ansi
|
|
1339
|
-
|
|
1340
|
-
> MIT License
|
|
1341
|
-
>
|
|
1342
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
1343
|
-
>
|
|
1344
|
-
> 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:
|
|
1345
|
-
>
|
|
1346
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1347
|
-
>
|
|
1348
|
-
> 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.
|
|
1349
|
-
|
|
1350
|
-
---------------------------------------
|
|
1351
|
-
|
|
1352
1055
|
## strip-literal
|
|
1353
1056
|
License: MIT
|
|
1354
1057
|
By: Anthony Fu
|
|
@@ -1462,23 +1165,6 @@ Repository: unjs/ufo
|
|
|
1462
1165
|
|
|
1463
1166
|
---------------------------------------
|
|
1464
1167
|
|
|
1465
|
-
## wrap-ansi
|
|
1466
|
-
License: MIT
|
|
1467
|
-
By: Sindre Sorhus
|
|
1468
|
-
Repository: chalk/wrap-ansi
|
|
1469
|
-
|
|
1470
|
-
> MIT License
|
|
1471
|
-
>
|
|
1472
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
1473
|
-
>
|
|
1474
|
-
> 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:
|
|
1475
|
-
>
|
|
1476
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1477
|
-
>
|
|
1478
|
-
> 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.
|
|
1479
|
-
|
|
1480
|
-
---------------------------------------
|
|
1481
|
-
|
|
1482
1168
|
## ws
|
|
1483
1169
|
License: MIT
|
|
1484
1170
|
By: Einar Otto Stangvik
|
package/config.d.ts
CHANGED
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CoverageProvider, c as CoverageProviderModule } from './chunks/reporters.
|
|
2
|
-
import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.
|
|
1
|
+
import { b as CoverageProvider, c as CoverageProviderModule } from './chunks/reporters.Dcdq51WE.js';
|
|
2
|
+
import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.BRtC-JeT.js';
|
|
3
3
|
import * as spy$1 from '@vitest/spy';
|
|
4
4
|
import * as _vitest_utils_diff from '@vitest/utils/diff';
|
|
5
5
|
import { VitestExecutor } from './execute.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.
|
|
23
|
+
import './chunks/worker.Hz_LAzfd.js';
|
|
24
24
|
import 'node:vm';
|
|
25
25
|
import '@vitest/mocker';
|
|
26
26
|
import './chunks/mocker.cRtM890J.js';
|
package/dist/browser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { g as getCoverageProvider, s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.BWeNbfBa.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.
|
|
3
|
+
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './chunks/setup-common.D0zLenuv.js';
|
|
4
4
|
export { collectTests, processError, startTests } from '@vitest/runner';
|
|
5
5
|
import '@vitest/spy';
|
|
6
6
|
import '@vitest/snapshot';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import 'std-env';
|
|
1
|
+
import { isCI } from 'std-env';
|
|
2
2
|
import { writeFile, rm } from 'node:fs/promises';
|
|
3
3
|
import { performance } from 'node:perf_hooks';
|
|
4
4
|
import { generateHash, calculateSuiteHash, someTasksAreOnly, interpretTaskModes, getTasks } from '@vitest/runner/utils';
|
|
5
|
-
import { TraceMap, generatedPositionFor } from '@vitest/utils/source-map';
|
|
5
|
+
import { TraceMap, generatedPositionFor, eachMapping } from '@vitest/utils/source-map';
|
|
6
6
|
import { relative, basename, dirname, resolve, join, extname } from 'pathe';
|
|
7
7
|
import { x as x$1 } from 'tinyexec';
|
|
8
8
|
import { parseAstAsync } from 'vite';
|
|
@@ -21,6 +21,7 @@ const hash = crypto.hash ?? ((algorithm, data, outputEncoding) => crypto.createH
|
|
|
21
21
|
const isNode = typeof process < "u" && typeof process.stdout < "u" && !process.versions?.deno && !globalThis.window;
|
|
22
22
|
const isDeno = typeof process < "u" && typeof process.stdout < "u" && process.versions?.deno !== void 0;
|
|
23
23
|
const isWindows = (isNode || isDeno) && process.platform === "win32";
|
|
24
|
+
const isTTY = (isNode || isDeno) && process.stdout?.isTTY && !isCI;
|
|
24
25
|
|
|
25
26
|
const REGEXP_WRAP_PREFIX = "$$vitest:";
|
|
26
27
|
function getOutputFile(config, reporter) {
|
|
@@ -572,9 +573,12 @@ async function getTsconfig(root, config) {
|
|
|
572
573
|
if (!tsconfig) {
|
|
573
574
|
throw new Error("no tsconfig.json found");
|
|
574
575
|
}
|
|
576
|
+
const tsconfigName = basename(tsconfig.path, ".json");
|
|
577
|
+
const tempTsConfigName = `${tsconfigName}.vitest-temp.json`;
|
|
578
|
+
const tempTsbuildinfoName = `${tsconfigName}.tmp.tsbuildinfo`;
|
|
575
579
|
const tempConfigPath = join(
|
|
576
580
|
dirname(tsconfig.path),
|
|
577
|
-
|
|
581
|
+
tempTsConfigName
|
|
578
582
|
);
|
|
579
583
|
try {
|
|
580
584
|
const tmpTsConfig = { ...tsconfig.config };
|
|
@@ -583,13 +587,13 @@ async function getTsconfig(root, config) {
|
|
|
583
587
|
tmpTsConfig.compilerOptions.incremental = true;
|
|
584
588
|
tmpTsConfig.compilerOptions.tsBuildInfoFile = join(
|
|
585
589
|
process.versions.pnp ? join(nodeos__default.tmpdir(), "vitest") : __dirname,
|
|
586
|
-
|
|
590
|
+
tempTsbuildinfoName
|
|
587
591
|
);
|
|
588
592
|
const tsconfigFinalContent = JSON.stringify(tmpTsConfig, null, 2);
|
|
589
593
|
await writeFile(tempConfigPath, tsconfigFinalContent);
|
|
590
594
|
return { path: tempConfigPath, config: tmpTsConfig };
|
|
591
595
|
} catch (err) {
|
|
592
|
-
throw new Error(
|
|
596
|
+
throw new Error(`failed to write ${tempTsConfigName}`, { cause: err });
|
|
593
597
|
}
|
|
594
598
|
}
|
|
595
599
|
async function getRawErrsMapFromTsCompile(tscErrorStdout) {
|
|
@@ -709,7 +713,7 @@ class Typechecker {
|
|
|
709
713
|
if ("tasks" in task) {
|
|
710
714
|
markTasks(task.tasks);
|
|
711
715
|
}
|
|
712
|
-
if (!task.result?.state && task.mode === "run") {
|
|
716
|
+
if (!task.result?.state && (task.mode === "run" || task.mode === "queued")) {
|
|
713
717
|
task.result = {
|
|
714
718
|
state: "pass"
|
|
715
719
|
};
|
|
@@ -750,7 +754,7 @@ class Typechecker {
|
|
|
750
754
|
}
|
|
751
755
|
};
|
|
752
756
|
errors.forEach(({ error, originalError }) => {
|
|
753
|
-
const processedPos = traceMap ?
|
|
757
|
+
const processedPos = traceMap ? findGeneratedPosition(traceMap, {
|
|
754
758
|
line: originalError.line,
|
|
755
759
|
column: originalError.column,
|
|
756
760
|
source: basename(path)
|
|
@@ -921,6 +925,32 @@ class Typechecker {
|
|
|
921
925
|
return Object.values(this._tests || {}).map(({ file }) => getTasks(file)).flat().map((i) => [i.id, i.result, { typecheck: true }]);
|
|
922
926
|
}
|
|
923
927
|
}
|
|
928
|
+
function findGeneratedPosition(traceMap, { line, column, source }) {
|
|
929
|
+
const found = generatedPositionFor(traceMap, {
|
|
930
|
+
line,
|
|
931
|
+
column,
|
|
932
|
+
source
|
|
933
|
+
});
|
|
934
|
+
if (found.line !== null) {
|
|
935
|
+
return found;
|
|
936
|
+
}
|
|
937
|
+
const mappings = [];
|
|
938
|
+
eachMapping(traceMap, (m) => {
|
|
939
|
+
if (m.source === source && m.originalLine !== null && m.originalColumn !== null && (line === m.originalLine ? column < m.originalColumn : line < m.originalLine)) {
|
|
940
|
+
mappings.push(m);
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
const next = mappings.sort(
|
|
944
|
+
(a, b) => a.originalLine === b.originalLine ? a.originalColumn - b.originalColumn : a.originalLine - b.originalLine
|
|
945
|
+
).at(0);
|
|
946
|
+
if (next) {
|
|
947
|
+
return {
|
|
948
|
+
line: next.generatedLine,
|
|
949
|
+
column: next.generatedColumn
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
return { line: null, column: null };
|
|
953
|
+
}
|
|
924
954
|
|
|
925
955
|
class BaseSequencer {
|
|
926
956
|
ctx;
|
|
@@ -977,4 +1007,4 @@ class RandomSequencer extends BaseSequencer {
|
|
|
977
1007
|
}
|
|
978
1008
|
}
|
|
979
1009
|
|
|
980
|
-
export { BaseSequencer as B, RandomSequencer as R,
|
|
1010
|
+
export { BaseSequencer as B, RandomSequencer as R, TypeCheckError as T, Typechecker as a, isWindows as b, getOutputFile as g, hash as h, isTTY as i, wrapSerializableConfig as w };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleCacheMap } from 'vite-node/client';
|
|
2
|
-
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.
|
|
2
|
+
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.BMOaRArH.js';
|
|
3
3
|
import { p as provideWorkerState } from './utils.C8RiOc4B.js';
|
|
4
4
|
|
|
5
5
|
let _viteNode;
|
|
@@ -26,7 +26,7 @@ async function runBaseTests(method, state) {
|
|
|
26
26
|
));
|
|
27
27
|
const [executor, { run }] = await Promise.all([
|
|
28
28
|
startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
|
|
29
|
-
import('./runBaseTests.
|
|
29
|
+
import('./runBaseTests.URiUrnWK.js')
|
|
30
30
|
]);
|
|
31
31
|
const fileSpecs = ctx.files.map(
|
|
32
32
|
(f) => typeof f === "string" ? { filepath: f, testLocations: void 0 } : f
|
|
@@ -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.0-beta.
|
|
621
|
+
var version = "3.0.0-beta.4";
|
|
622
622
|
|
|
623
623
|
const apiConfig = (port) => ({
|
|
624
624
|
port: {
|
|
@@ -919,7 +919,7 @@ const cliOptionsConfig = {
|
|
|
919
919
|
description: "Run tests in the browser. Equivalent to `--browser.enabled` (default: `false`)"
|
|
920
920
|
},
|
|
921
921
|
name: {
|
|
922
|
-
description: "Run all tests in a specific browser. Some browsers are only available for specific providers (see `--browser.provider`). Visit [`browser.name`](https://vitest.dev/config/#browser-name) for more information",
|
|
922
|
+
description: "Run all tests in a specific browser. Some browsers are only available for specific providers (see `--browser.provider`). Visit [`browser.name`](https://vitest.dev/guide/browser/config/#browser-name) for more information",
|
|
923
923
|
argument: "<name>"
|
|
924
924
|
},
|
|
925
925
|
headless: {
|
|
@@ -951,6 +951,10 @@ const cliOptionsConfig = {
|
|
|
951
951
|
fileParallelism: {
|
|
952
952
|
description: "Should browser test files run in parallel. Use `--browser.fileParallelism=false` to disable (default: `true`)"
|
|
953
953
|
},
|
|
954
|
+
connectTimeout: {
|
|
955
|
+
description: "If connection to the browser takes longer, the test suite will fail (default: `60_000`)",
|
|
956
|
+
argument: "<timeout>"
|
|
957
|
+
},
|
|
954
958
|
orchestratorScripts: null,
|
|
955
959
|
testerScripts: null,
|
|
956
960
|
commands: null,
|
|
@@ -958,7 +962,8 @@ const cliOptionsConfig = {
|
|
|
958
962
|
screenshotDirectory: null,
|
|
959
963
|
screenshotFailures: null,
|
|
960
964
|
locators: null,
|
|
961
|
-
testerHtmlPath: null
|
|
965
|
+
testerHtmlPath: null,
|
|
966
|
+
instances: null
|
|
962
967
|
}
|
|
963
968
|
},
|
|
964
969
|
pool: {
|
|
@@ -1105,11 +1110,11 @@ const cliOptionsConfig = {
|
|
|
1105
1110
|
},
|
|
1106
1111
|
inspector: null,
|
|
1107
1112
|
testTimeout: {
|
|
1108
|
-
description: "Default timeout of a test in milliseconds (default: `5000`)",
|
|
1113
|
+
description: "Default timeout of a test in milliseconds (default: `5000`). Use `0` to disable timeout completely.",
|
|
1109
1114
|
argument: "<timeout>"
|
|
1110
1115
|
},
|
|
1111
1116
|
hookTimeout: {
|
|
1112
|
-
description: "Default hook timeout in milliseconds (default: `10000`)",
|
|
1117
|
+
description: "Default hook timeout in milliseconds (default: `10000`). Use `0` to disable timeout completely.",
|
|
1113
1118
|
argument: "<timeout>"
|
|
1114
1119
|
},
|
|
1115
1120
|
bail: {
|
|
@@ -1548,6 +1553,12 @@ function normalizeCliOptions(cliFilters, argv) {
|
|
|
1548
1553
|
if (cliFilters.some((filter) => filter.includes(":"))) {
|
|
1549
1554
|
argv.includeTaskLocation ??= true;
|
|
1550
1555
|
}
|
|
1556
|
+
if (typeof argv.browser === "object" && !("enabled" in argv.browser)) {
|
|
1557
|
+
argv.browser.enabled = true;
|
|
1558
|
+
}
|
|
1559
|
+
if (typeof argv.typecheck?.only === "boolean") {
|
|
1560
|
+
argv.typecheck.enabled ??= true;
|
|
1561
|
+
}
|
|
1551
1562
|
return argv;
|
|
1552
1563
|
}
|
|
1553
1564
|
async function start(mode, cliFilters, options) {
|
|
@@ -1556,13 +1567,13 @@ async function start(mode, cliFilters, options) {
|
|
|
1556
1567
|
} catch {
|
|
1557
1568
|
}
|
|
1558
1569
|
try {
|
|
1559
|
-
const { startVitest } = await import('./cli-api.
|
|
1570
|
+
const { startVitest } = await import('./cli-api.Dhl34Trr.js').then(function (n) { return n.f; });
|
|
1560
1571
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
1561
1572
|
if (!ctx.shouldKeepServer()) {
|
|
1562
1573
|
await ctx.exit();
|
|
1563
1574
|
}
|
|
1564
1575
|
} catch (e) {
|
|
1565
|
-
const { divider } = await import('./utils.
|
|
1576
|
+
const { divider } = await import('./utils.yHKcm4dz.js').then(function (n) { return n.u; });
|
|
1566
1577
|
console.error(`
|
|
1567
1578
|
${c.red(divider(c.bold(c.inverse(" Startup Error "))))}`);
|
|
1568
1579
|
console.error(e);
|
|
@@ -1578,7 +1589,7 @@ async function init(project) {
|
|
|
1578
1589
|
console.error(new Error('Only the "browser" project is supported. Use "vitest init browser" to create a new project.'));
|
|
1579
1590
|
process.exit(1);
|
|
1580
1591
|
}
|
|
1581
|
-
const { create } = await import('./creator.
|
|
1592
|
+
const { create } = await import('./creator.Ot9GlSGw.js');
|
|
1582
1593
|
await create();
|
|
1583
1594
|
}
|
|
1584
1595
|
async function collect(mode, cliFilters, options) {
|
|
@@ -1587,7 +1598,7 @@ async function collect(mode, cliFilters, options) {
|
|
|
1587
1598
|
} catch {
|
|
1588
1599
|
}
|
|
1589
1600
|
try {
|
|
1590
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
1601
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.Dhl34Trr.js').then(function (n) { return n.f; });
|
|
1591
1602
|
const ctx = await prepareVitest(mode, {
|
|
1592
1603
|
...normalizeCliOptions(cliFilters, options),
|
|
1593
1604
|
watch: false,
|
|
@@ -1609,7 +1620,7 @@ async function collect(mode, cliFilters, options) {
|
|
|
1609
1620
|
}
|
|
1610
1621
|
await ctx.close();
|
|
1611
1622
|
} catch (e) {
|
|
1612
|
-
const { divider } = await import('./utils.
|
|
1623
|
+
const { divider } = await import('./utils.yHKcm4dz.js').then(function (n) { return n.u; });
|
|
1613
1624
|
console.error(`
|
|
1614
1625
|
${c.red(divider(c.bold(c.inverse(" Collect Error "))))}`);
|
|
1615
1626
|
console.error(e);
|