vitest 0.29.6 → 0.29.8
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 -185
- package/dist/browser.d.ts +12 -2
- package/dist/browser.js +5 -3
- package/dist/child.js +4 -5
- package/dist/{chunk-api-setup.ac7748ac.js → chunk-api-setup.3aabe9ac.js} +16 -7
- package/dist/{chunk-install-pkg.f38803ff.js → chunk-install-pkg.6aa7cf6d.js} +7 -6
- package/dist/{chunk-integrations-coverage.e0a6acd2.js → chunk-integrations-coverage.d93ee824.js} +5 -5
- package/dist/{chunk-integrations-globals.a473e88a.js → chunk-integrations-globals.49802775.js} +8 -7
- package/dist/{chunk-integrations-run-once.a2b4758b.js → chunk-integrations-run-once.ea614f17.js} +2 -1
- package/dist/{chunk-integrations-utils.d7c85bd9.js → chunk-integrations-utils.23c19408.js} +2 -2
- package/dist/{chunk-node-pkg.68fe5e35.js → chunk-node-pkg.30d8b37e.js} +155 -2330
- package/dist/{chunk-runtime-mocker.344fec90.js → chunk-runtime-mocker.3283818a.js} +3 -3
- package/dist/{chunk-runtime-rpc.1b5714dc.js → chunk-runtime-rpc.d6aa57f8.js} +1 -1
- package/dist/{chunk-runtime-setup.a49dc2f9.js → chunk-runtime-setup.5d504677.js} +2 -2
- package/dist/{chunk-utils-base.81f83dbd.js → chunk-utils-base.b5ddfcc9.js} +4 -1
- package/dist/{chunk-utils-env.04ffbef7.js → chunk-utils-env.6b856dbf.js} +2 -8
- package/dist/chunk-utils-global.fd174983.js +8 -0
- package/dist/{chunk-utils-import.39ffe9c5.js → chunk-utils-import.e488ace3.js} +194 -195
- package/dist/{chunk-utils-tasks.b41c8284.js → chunk-utils-tasks.8781fd71.js} +2 -2
- package/dist/cli.js +7 -6
- package/dist/config.cjs +0 -5
- package/dist/config.d.ts +1 -5
- package/dist/config.js +0 -5
- package/dist/coverage.d.ts +1 -1
- package/dist/entry.js +11 -10
- package/dist/environments.d.ts +1 -1
- package/dist/index.d.ts +8 -13
- package/dist/index.js +9 -8
- package/dist/loader.js +2 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.js +9 -8
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +6 -5
- package/dist/{types-fafda418.d.ts → types-94cfe4b4.d.ts} +23 -16
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +1 -0
- package/dist/worker.js +7 -8
- package/package.json +18 -7
- package/utils.d.ts +1 -0
package/LICENSE.md
CHANGED
|
@@ -26,7 +26,7 @@ SOFTWARE.
|
|
|
26
26
|
|
|
27
27
|
# Licenses of bundled dependencies
|
|
28
28
|
The published Vitest artifact additionally contains code with the following licenses:
|
|
29
|
-
Apache-2.0, BSD-3-Clause, ISC, MIT
|
|
29
|
+
Apache-2.0, BSD-3-Clause, ISC, MIT
|
|
30
30
|
|
|
31
31
|
# Bundled dependencies:
|
|
32
32
|
## @ampproject/remapping
|
|
@@ -594,38 +594,6 @@ Repository: chalk/ansi-styles
|
|
|
594
594
|
|
|
595
595
|
---------------------------------------
|
|
596
596
|
|
|
597
|
-
## big-integer
|
|
598
|
-
License: Unlicense
|
|
599
|
-
By: Peter Olson
|
|
600
|
-
Repository: git@github.com:peterolson/BigInteger.js.git
|
|
601
|
-
|
|
602
|
-
> This is free and unencumbered software released into the public domain.
|
|
603
|
-
>
|
|
604
|
-
> Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
605
|
-
> distribute this software, either in source code form or as a compiled
|
|
606
|
-
> binary, for any purpose, commercial or non-commercial, and by any
|
|
607
|
-
> means.
|
|
608
|
-
>
|
|
609
|
-
> In jurisdictions that recognize copyright laws, the author or authors
|
|
610
|
-
> of this software dedicate any and all copyright interest in the
|
|
611
|
-
> software to the public domain. We make this dedication for the benefit
|
|
612
|
-
> of the public at large and to the detriment of our heirs and
|
|
613
|
-
> successors. We intend this dedication to be an overt act of
|
|
614
|
-
> relinquishment in perpetuity of all present and future rights to this
|
|
615
|
-
> software under copyright law.
|
|
616
|
-
>
|
|
617
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
618
|
-
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
619
|
-
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
620
|
-
> IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
621
|
-
> OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
622
|
-
> ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
623
|
-
> OTHER DEALINGS IN THE SOFTWARE.
|
|
624
|
-
>
|
|
625
|
-
> For more information, please refer to <http://unlicense.org>
|
|
626
|
-
|
|
627
|
-
---------------------------------------
|
|
628
|
-
|
|
629
597
|
## birpc
|
|
630
598
|
License: MIT
|
|
631
599
|
By: Anthony Fu
|
|
@@ -655,13 +623,6 @@ Repository: git+https://github.com/antfu/birpc.git
|
|
|
655
623
|
|
|
656
624
|
---------------------------------------
|
|
657
625
|
|
|
658
|
-
## bplist-parser
|
|
659
|
-
License: MIT
|
|
660
|
-
By: Joe Ferner
|
|
661
|
-
Repository: https://github.com/nearinfinity/node-bplist-parser.git
|
|
662
|
-
|
|
663
|
-
---------------------------------------
|
|
664
|
-
|
|
665
626
|
## braces
|
|
666
627
|
License: MIT
|
|
667
628
|
By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm
|
|
@@ -783,35 +744,6 @@ Repository: git@github.com:moxystudio/node-cross-spawn.git
|
|
|
783
744
|
|
|
784
745
|
---------------------------------------
|
|
785
746
|
|
|
786
|
-
## default-browser-id
|
|
787
|
-
License: MIT
|
|
788
|
-
By: Sindre Sorhus
|
|
789
|
-
Repository: sindresorhus/default-browser-id
|
|
790
|
-
|
|
791
|
-
> The MIT License (MIT)
|
|
792
|
-
>
|
|
793
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
794
|
-
>
|
|
795
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
796
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
797
|
-
> in the Software without restriction, including without limitation the rights
|
|
798
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
799
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
800
|
-
> furnished to do so, subject to the following conditions:
|
|
801
|
-
>
|
|
802
|
-
> The above copyright notice and this permission notice shall be included in
|
|
803
|
-
> all copies or substantial portions of the Software.
|
|
804
|
-
>
|
|
805
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
806
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
807
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
808
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
809
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
810
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
811
|
-
> THE SOFTWARE.
|
|
812
|
-
|
|
813
|
-
---------------------------------------
|
|
814
|
-
|
|
815
747
|
## eastasianwidth
|
|
816
748
|
License: MIT
|
|
817
749
|
By: Masaki Komagata
|
|
@@ -1892,35 +1824,6 @@ Repository: sindresorhus/onetime
|
|
|
1892
1824
|
|
|
1893
1825
|
---------------------------------------
|
|
1894
1826
|
|
|
1895
|
-
## os-homedir
|
|
1896
|
-
License: MIT
|
|
1897
|
-
By: Sindre Sorhus
|
|
1898
|
-
Repository: sindresorhus/os-homedir
|
|
1899
|
-
|
|
1900
|
-
> The MIT License (MIT)
|
|
1901
|
-
>
|
|
1902
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
1903
|
-
>
|
|
1904
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1905
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
1906
|
-
> in the Software without restriction, including without limitation the rights
|
|
1907
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1908
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
1909
|
-
> furnished to do so, subject to the following conditions:
|
|
1910
|
-
>
|
|
1911
|
-
> The above copyright notice and this permission notice shall be included in
|
|
1912
|
-
> all copies or substantial portions of the Software.
|
|
1913
|
-
>
|
|
1914
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1915
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1916
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1917
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1918
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1919
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1920
|
-
> THE SOFTWARE.
|
|
1921
|
-
|
|
1922
|
-
---------------------------------------
|
|
1923
|
-
|
|
1924
1827
|
## p-limit
|
|
1925
1828
|
License: MIT
|
|
1926
1829
|
By: Sindre Sorhus
|
|
@@ -2018,35 +1921,6 @@ Repository: micromatch/picomatch
|
|
|
2018
1921
|
|
|
2019
1922
|
---------------------------------------
|
|
2020
1923
|
|
|
2021
|
-
## pify
|
|
2022
|
-
License: MIT
|
|
2023
|
-
By: Sindre Sorhus
|
|
2024
|
-
Repository: sindresorhus/pify
|
|
2025
|
-
|
|
2026
|
-
> The MIT License (MIT)
|
|
2027
|
-
>
|
|
2028
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
2029
|
-
>
|
|
2030
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2031
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
2032
|
-
> in the Software without restriction, including without limitation the rights
|
|
2033
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2034
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
2035
|
-
> furnished to do so, subject to the following conditions:
|
|
2036
|
-
>
|
|
2037
|
-
> The above copyright notice and this permission notice shall be included in
|
|
2038
|
-
> all copies or substantial portions of the Software.
|
|
2039
|
-
>
|
|
2040
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2041
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2042
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2043
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2044
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2045
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2046
|
-
> THE SOFTWARE.
|
|
2047
|
-
|
|
2048
|
-
---------------------------------------
|
|
2049
|
-
|
|
2050
1924
|
## pretty-format
|
|
2051
1925
|
License: MIT
|
|
2052
1926
|
By: James Kyle
|
|
@@ -2446,35 +2320,6 @@ Repository: git+ssh://git@github.com/chaijs/type-detect.git
|
|
|
2446
2320
|
|
|
2447
2321
|
---------------------------------------
|
|
2448
2322
|
|
|
2449
|
-
## untildify
|
|
2450
|
-
License: MIT
|
|
2451
|
-
By: Sindre Sorhus, silverwind
|
|
2452
|
-
Repository: sindresorhus/untildify
|
|
2453
|
-
|
|
2454
|
-
> The MIT License (MIT)
|
|
2455
|
-
>
|
|
2456
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
2457
|
-
>
|
|
2458
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2459
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
2460
|
-
> in the Software without restriction, including without limitation the rights
|
|
2461
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2462
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
2463
|
-
> furnished to do so, subject to the following conditions:
|
|
2464
|
-
>
|
|
2465
|
-
> The above copyright notice and this permission notice shall be included in
|
|
2466
|
-
> all copies or substantial portions of the Software.
|
|
2467
|
-
>
|
|
2468
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2469
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2470
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2471
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2472
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2473
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2474
|
-
> THE SOFTWARE.
|
|
2475
|
-
|
|
2476
|
-
---------------------------------------
|
|
2477
|
-
|
|
2478
2323
|
## which
|
|
2479
2324
|
License: ISC
|
|
2480
2325
|
By: Isaac Z. Schlueter
|
|
@@ -2543,35 +2388,6 @@ Repository: websockets/ws
|
|
|
2543
2388
|
|
|
2544
2389
|
---------------------------------------
|
|
2545
2390
|
|
|
2546
|
-
## x-default-browser
|
|
2547
|
-
License: MIT
|
|
2548
|
-
By: jakub-g
|
|
2549
|
-
Repository: https://github.com/jakub-g/x-default-browser.git
|
|
2550
|
-
|
|
2551
|
-
> The MIT License (MIT)
|
|
2552
|
-
>
|
|
2553
|
-
> Copyright (c) 2014 jakub-g
|
|
2554
|
-
>
|
|
2555
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2556
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
2557
|
-
> in the Software without restriction, including without limitation the rights
|
|
2558
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2559
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
2560
|
-
> furnished to do so, subject to the following conditions:
|
|
2561
|
-
>
|
|
2562
|
-
> The above copyright notice and this permission notice shall be included in
|
|
2563
|
-
> all copies or substantial portions of the Software.
|
|
2564
|
-
>
|
|
2565
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2566
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2567
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2568
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2569
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2570
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2571
|
-
> THE SOFTWARE.
|
|
2572
|
-
|
|
2573
|
-
---------------------------------------
|
|
2574
|
-
|
|
2575
2391
|
## yocto-queue
|
|
2576
2392
|
License: MIT
|
|
2577
2393
|
By: Sindre Sorhus
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { startTests } from '@vitest/runner';
|
|
2
|
-
import { a as ResolvedConfig } from './types-
|
|
2
|
+
import { a as ResolvedConfig, a0 as CoverageOptions, Y as CoverageProvider, _ as CoverageProviderModule } from './types-94cfe4b4.js';
|
|
3
3
|
export { s as setupSnapshotEnvironment } from './env-afee91f0.js';
|
|
4
4
|
import '@vitest/expect';
|
|
5
5
|
import 'vite';
|
|
@@ -16,4 +16,14 @@ import 'vite-node/server';
|
|
|
16
16
|
|
|
17
17
|
declare function setupCommonEnv(config: ResolvedConfig): Promise<void>;
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
interface Loader {
|
|
20
|
+
executeId: (id: string) => Promise<{
|
|
21
|
+
default: CoverageProviderModule;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
declare function getCoverageProvider(options: CoverageOptions | undefined, loader: Loader): Promise<CoverageProvider | null>;
|
|
25
|
+
declare function startCoverageInsideWorker(options: CoverageOptions | undefined, loader: Loader): Promise<unknown>;
|
|
26
|
+
declare function takeCoverageInsideWorker(options: CoverageOptions | undefined, loader: Loader): Promise<unknown>;
|
|
27
|
+
declare function stopCoverageInsideWorker(options: CoverageOptions | undefined, loader: Loader): Promise<unknown>;
|
|
28
|
+
|
|
29
|
+
export { getCoverageProvider, setupCommonEnv, startCoverageInsideWorker, stopCoverageInsideWorker, takeCoverageInsideWorker };
|
package/dist/browser.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { startTests } from '@vitest/runner';
|
|
2
|
-
export { s as setupCommonEnv } from './chunk-runtime-setup.
|
|
2
|
+
export { s as setupCommonEnv } from './chunk-runtime-setup.5d504677.js';
|
|
3
3
|
export { s as setupSnapshotEnvironment } from './chunk-snapshot-env.a347d647.js';
|
|
4
|
+
export { g as getCoverageProvider, a as startCoverageInsideWorker, s as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunk-integrations-coverage.d93ee824.js';
|
|
4
5
|
import '@vitest/utils';
|
|
5
|
-
import './chunk-integrations-run-once.
|
|
6
|
-
import './chunk-utils-env.
|
|
6
|
+
import './chunk-integrations-run-once.ea614f17.js';
|
|
7
|
+
import './chunk-utils-env.6b856dbf.js';
|
|
7
8
|
import 'pathe';
|
|
8
9
|
import 'std-env';
|
|
9
10
|
import '@vitest/runner/utils';
|
|
11
|
+
import './chunk-utils-global.fd174983.js';
|
package/dist/child.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
2
|
import { c as createBirpc } from './vendor-index.783e7f3e.js';
|
|
3
3
|
import { parseRegexp } from '@vitest/utils';
|
|
4
|
-
import { s as startViteNode, m as moduleCache, a as mockMap } from './chunk-runtime-mocker.
|
|
5
|
-
import { a as rpcDone } from './chunk-runtime-rpc.
|
|
4
|
+
import { s as startViteNode, m as moduleCache, a as mockMap } from './chunk-runtime-mocker.3283818a.js';
|
|
5
|
+
import { a as rpcDone } from './chunk-runtime-rpc.d6aa57f8.js';
|
|
6
6
|
import { s as setupInspect } from './chunk-runtime-inspector.b1427a10.js';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'vite-node/client';
|
|
@@ -17,10 +17,9 @@ import 'node:process';
|
|
|
17
17
|
import 'node:path';
|
|
18
18
|
import 'node:util';
|
|
19
19
|
import '@vitest/runner/utils';
|
|
20
|
-
import './chunk-utils-
|
|
21
|
-
import 'std-env';
|
|
20
|
+
import './chunk-utils-global.fd174983.js';
|
|
22
21
|
import './chunk-paths.e36446b4.js';
|
|
23
|
-
import './chunk-utils-base.
|
|
22
|
+
import './chunk-utils-base.b5ddfcc9.js';
|
|
24
23
|
import '@vitest/spy';
|
|
25
24
|
import 'node:inspector';
|
|
26
25
|
|
|
@@ -11,13 +11,14 @@ import require$$1 from 'https';
|
|
|
11
11
|
import require$$2$1 from 'http';
|
|
12
12
|
import require$$7 from 'url';
|
|
13
13
|
import { A as API_PATH } from './chunk-constants.bc18a549.js';
|
|
14
|
-
import './chunk-utils-env.
|
|
15
|
-
import { a as parseErrorStacktrace } from './chunk-utils-tasks.
|
|
14
|
+
import './chunk-utils-env.6b856dbf.js';
|
|
15
|
+
import { a as parseErrorStacktrace } from './chunk-utils-tasks.8781fd71.js';
|
|
16
|
+
import { a as isPrimitive } from './chunk-utils-base.b5ddfcc9.js';
|
|
16
17
|
import 'pathe';
|
|
17
18
|
import 'std-env';
|
|
18
19
|
import '@vitest/runner/utils';
|
|
20
|
+
import './chunk-utils-global.fd174983.js';
|
|
19
21
|
import '@vitest/utils';
|
|
20
|
-
import './chunk-utils-base.81f83dbd.js';
|
|
21
22
|
|
|
22
23
|
async function getModuleGraph(ctx, id) {
|
|
23
24
|
var _a;
|
|
@@ -4501,8 +4502,8 @@ function setup(ctx, server) {
|
|
|
4501
4502
|
const rpc = createBirpc(
|
|
4502
4503
|
{
|
|
4503
4504
|
async onDone(testId) {
|
|
4504
|
-
var _a2
|
|
4505
|
-
|
|
4505
|
+
var _a2;
|
|
4506
|
+
return (_a2 = ctx.state.browserTestPromises.get(testId)) == null ? void 0 : _a2.resolve(true);
|
|
4506
4507
|
},
|
|
4507
4508
|
async onCollected(files) {
|
|
4508
4509
|
ctx.state.collectFiles(files);
|
|
@@ -4512,12 +4513,19 @@ function setup(ctx, server) {
|
|
|
4512
4513
|
ctx.state.updateTasks(packs);
|
|
4513
4514
|
await ctx.report("onTaskUpdate", packs);
|
|
4514
4515
|
},
|
|
4516
|
+
onAfterSuiteRun(meta) {
|
|
4517
|
+
var _a2;
|
|
4518
|
+
(_a2 = ctx.coverageProvider) == null ? void 0 : _a2.onAfterSuiteRun(meta);
|
|
4519
|
+
},
|
|
4515
4520
|
getFiles() {
|
|
4516
4521
|
return ctx.state.getFiles();
|
|
4517
4522
|
},
|
|
4518
4523
|
getPaths() {
|
|
4519
4524
|
return ctx.state.getPaths();
|
|
4520
4525
|
},
|
|
4526
|
+
sendLog(log) {
|
|
4527
|
+
return ctx.report("onUserConsoleLog", log);
|
|
4528
|
+
},
|
|
4521
4529
|
resolveSnapshotPath(testPath) {
|
|
4522
4530
|
return ctx.snapshot.resolvePath(testPath);
|
|
4523
4531
|
},
|
|
@@ -4597,10 +4605,11 @@ class WebSocketReporter {
|
|
|
4597
4605
|
return;
|
|
4598
4606
|
packs.forEach(([, result]) => {
|
|
4599
4607
|
var _a;
|
|
4600
|
-
if (result == null ? void 0 : result.error)
|
|
4608
|
+
if ((result == null ? void 0 : result.error) && !isPrimitive(result.error))
|
|
4601
4609
|
result.error.stacks = parseErrorStacktrace(result.error);
|
|
4602
4610
|
(_a = result == null ? void 0 : result.errors) == null ? void 0 : _a.forEach((error) => {
|
|
4603
|
-
|
|
4611
|
+
if (!isPrimitive(error))
|
|
4612
|
+
error.stacks = parseErrorStacktrace(error);
|
|
4604
4613
|
});
|
|
4605
4614
|
});
|
|
4606
4615
|
this.clients.forEach((client) => {
|
|
@@ -3,7 +3,7 @@ import k from 'path';
|
|
|
3
3
|
import require$$0$1 from 'util';
|
|
4
4
|
import require$$0$3 from 'child_process';
|
|
5
5
|
import { p as pathKey, s as signalExit, m as mergeStream$1, g as getStream$1, c as crossSpawn$1 } from './vendor-index.2cbcdd1e.js';
|
|
6
|
-
import { o as onetime$1 } from './chunk-node-pkg.
|
|
6
|
+
import { o as onetime$1 } from './chunk-node-pkg.30d8b37e.js';
|
|
7
7
|
import require$$0$2 from 'os';
|
|
8
8
|
import 'node:buffer';
|
|
9
9
|
import 'node:path';
|
|
@@ -18,14 +18,15 @@ import 'buffer';
|
|
|
18
18
|
import 'stream';
|
|
19
19
|
import 'pathe';
|
|
20
20
|
import './chunk-constants.bc18a549.js';
|
|
21
|
-
import './chunk-integrations-coverage.
|
|
22
|
-
import 'local-pkg';
|
|
21
|
+
import './chunk-integrations-coverage.d93ee824.js';
|
|
23
22
|
import './chunk-env-node.affdd278.js';
|
|
24
23
|
import 'node:console';
|
|
24
|
+
import 'local-pkg';
|
|
25
25
|
import 'picocolors';
|
|
26
|
-
import './chunk-utils-env.
|
|
26
|
+
import './chunk-utils-env.6b856dbf.js';
|
|
27
27
|
import 'std-env';
|
|
28
28
|
import '@vitest/runner/utils';
|
|
29
|
+
import './chunk-utils-global.fd174983.js';
|
|
29
30
|
import '@vitest/utils';
|
|
30
31
|
import 'vite';
|
|
31
32
|
import 'node:fs';
|
|
@@ -36,7 +37,7 @@ import 'source-map';
|
|
|
36
37
|
import 'module';
|
|
37
38
|
import 'acorn';
|
|
38
39
|
import 'acorn-walk';
|
|
39
|
-
import './chunk-utils-base.
|
|
40
|
+
import './chunk-utils-base.b5ddfcc9.js';
|
|
40
41
|
import 'crypto';
|
|
41
42
|
import './chunk-paths.e36446b4.js';
|
|
42
43
|
import 'node:v8';
|
|
@@ -44,7 +45,7 @@ import './vendor-index.783e7f3e.js';
|
|
|
44
45
|
import 'node:worker_threads';
|
|
45
46
|
import 'tinypool';
|
|
46
47
|
import 'perf_hooks';
|
|
47
|
-
import './chunk-utils-tasks.
|
|
48
|
+
import './chunk-utils-tasks.8781fd71.js';
|
|
48
49
|
import '@vitest/utils/diff';
|
|
49
50
|
import 'vite-node/server';
|
|
50
51
|
import './vendor-magic-string.es.b3bc5745.js';
|
package/dist/{chunk-integrations-coverage.e0a6acd2.js → chunk-integrations-coverage.d93ee824.js}
RENAMED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { importModule } from 'local-pkg';
|
|
2
|
-
|
|
3
1
|
const CoverageProviderMap = {
|
|
4
2
|
c8: "@vitest/coverage-c8",
|
|
5
3
|
istanbul: "@vitest/coverage-istanbul"
|
|
@@ -8,8 +6,10 @@ async function resolveCoverageProviderModule(options, loader) {
|
|
|
8
6
|
if (!(options == null ? void 0 : options.enabled) || !options.provider)
|
|
9
7
|
return null;
|
|
10
8
|
const provider = options.provider;
|
|
11
|
-
if (provider === "c8" || provider === "istanbul")
|
|
12
|
-
|
|
9
|
+
if (provider === "c8" || provider === "istanbul") {
|
|
10
|
+
const { default: coverageModule } = await loader.executeId(CoverageProviderMap[provider]);
|
|
11
|
+
return coverageModule;
|
|
12
|
+
}
|
|
13
13
|
let customProviderModule;
|
|
14
14
|
try {
|
|
15
15
|
customProviderModule = await loader.executeId(options.customProviderModule);
|
|
@@ -48,4 +48,4 @@ async function stopCoverageInsideWorker(options, loader) {
|
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export { CoverageProviderMap as C,
|
|
51
|
+
export { CoverageProviderMap as C, startCoverageInsideWorker as a, getCoverageProvider as g, stopCoverageInsideWorker as s, takeCoverageInsideWorker as t };
|
package/dist/{chunk-integrations-globals.a473e88a.js → chunk-integrations-globals.49802775.js}
RENAMED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { g as globalApis } from './chunk-constants.bc18a549.js';
|
|
2
|
-
import { i as index } from './chunk-integrations-utils.
|
|
2
|
+
import { i as index } from './chunk-integrations-utils.23c19408.js';
|
|
3
3
|
import '@vitest/runner';
|
|
4
|
-
import './chunk-utils-import.
|
|
4
|
+
import './chunk-utils-import.e488ace3.js';
|
|
5
5
|
import '@vitest/runner/utils';
|
|
6
6
|
import '@vitest/utils';
|
|
7
|
-
import './chunk-utils-env.
|
|
7
|
+
import './chunk-utils-env.6b856dbf.js';
|
|
8
8
|
import 'pathe';
|
|
9
9
|
import 'std-env';
|
|
10
|
+
import './chunk-utils-global.fd174983.js';
|
|
10
11
|
import 'chai';
|
|
11
12
|
import './vendor-_commonjsHelpers.addc3445.js';
|
|
12
13
|
import '@vitest/expect';
|
|
13
|
-
import './chunk-runtime-rpc.
|
|
14
|
+
import './chunk-runtime-rpc.d6aa57f8.js';
|
|
14
15
|
import './chunk-snapshot-env.a347d647.js';
|
|
15
|
-
import './chunk-utils-base.
|
|
16
|
-
import './chunk-utils-tasks.
|
|
16
|
+
import './chunk-utils-base.b5ddfcc9.js';
|
|
17
|
+
import './chunk-utils-tasks.8781fd71.js';
|
|
17
18
|
import 'util';
|
|
18
19
|
import '@vitest/spy';
|
|
19
|
-
import './chunk-integrations-run-once.
|
|
20
|
+
import './chunk-integrations-run-once.ea614f17.js';
|
|
20
21
|
|
|
21
22
|
function registerApiGlobally() {
|
|
22
23
|
globalApis.forEach((api) => {
|
package/dist/{chunk-integrations-run-once.a2b4758b.js → chunk-integrations-run-once.ea614f17.js}
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './chunk-utils-env.6b856dbf.js';
|
|
2
|
+
import { g as getWorkerState } from './chunk-utils-global.fd174983.js';
|
|
2
3
|
|
|
3
4
|
const filesCount = /* @__PURE__ */ new Map();
|
|
4
5
|
const cache = /* @__PURE__ */ new Map();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { suite, test, describe, it, beforeAll, beforeEach, afterAll, afterEach, onTestFailed } from '@vitest/runner';
|
|
2
|
-
import { b as bench, c as createExpect, g as globalExpect, v as vitest, a as vi } from './chunk-utils-import.
|
|
3
|
-
import { r as runOnce, i as isFirstRun } from './chunk-integrations-run-once.
|
|
2
|
+
import { b as bench, c as createExpect, g as globalExpect, v as vitest, a as vi } from './chunk-utils-import.e488ace3.js';
|
|
3
|
+
import { r as runOnce, i as isFirstRun } from './chunk-integrations-run-once.ea614f17.js';
|
|
4
4
|
import * as chai from 'chai';
|
|
5
5
|
import { assert, should } from 'chai';
|
|
6
6
|
|