vitest 2.1.0-beta.5 → 2.1.0-beta.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.
- package/LICENSE.md +29 -0
- package/dist/browser.d.ts +4 -3
- package/dist/browser.js +2 -2
- package/dist/chunks/{RandomSequencer.B4M2ux5b.js → RandomSequencer.CjkAy_bL.js} +67 -21
- package/dist/chunks/{base.BYvKfYzm.js → base.B-9RAXb6.js} +1 -1
- package/dist/chunks/{cac.DosbLiJg.js → cac.BZlOqtiQ.js} +5 -5
- package/dist/chunks/{cli-api.D8zgNrBU.js → cli-api.B-2f6g4d.js} +7525 -7355
- package/dist/chunks/{constants.CaAN7icJ.js → constants.fzPh7AOq.js} +1 -1
- package/dist/chunks/{coverage.CqfT4xaf.js → coverage.zlNdAMHK.js} +5 -3
- package/dist/chunks/{creator.COdKw_ZN.js → creator.D0TxjnLa.js} +5 -2
- package/dist/chunks/{environment.0M5R1SX_.d.ts → environment.C5eAp3K6.d.ts} +1 -1
- package/dist/chunks/{globals.DRPLtPOv.js → globals.Br36EZIp.js} +3 -3
- package/dist/chunks/{index.Dx3f477d.js → index.C4LZENmc.js} +4432 -4422
- package/dist/chunks/index.CWhwfxXK.js +835 -0
- package/dist/chunks/{index.CxWPpGJz.js → index.dWDhoZDV.js} +2 -2
- package/dist/chunks/{index.CNZXZ9PJ.js → index.m3Xip5Zz.js} +1 -1
- package/dist/chunks/{reporters.DbwOGCsU.d.ts → reporters.B0Ao6Zu1.d.ts} +134 -117
- package/dist/chunks/{resolveConfig.RHsAM2_Q.js → resolveConfig.C0vpvVRF.js} +42 -33
- package/dist/chunks/{runBaseTests.BAhL8UH_.js → runBaseTests.Cf8lGnUq.js} +5 -5
- package/dist/chunks/{setup-common.KBrCO5LJ.js → setup-common.B7uEQsGB.js} +1 -1
- package/dist/chunks/{vi.B6QZ938s.js → vi.DBepMgvg.js} +9 -0
- package/dist/chunks/vite.Bvz2vSw0.d.ts +11 -0
- package/dist/chunks/{worker.BANO5ak1.d.ts → worker.CTdJUeeB.d.ts} +3 -2
- package/dist/chunks/{worker.Cx2xE71X.d.ts → worker.DTM-0OlZ.d.ts} +1 -1
- package/dist/cli.js +2 -2
- package/dist/config.cjs +1 -0
- package/dist/config.d.ts +70 -2
- package/dist/config.js +1 -0
- package/dist/coverage.d.ts +4 -3
- package/dist/coverage.js +27 -3
- package/dist/environments.d.ts +2 -2
- package/dist/execute.d.ts +2 -2
- package/dist/index.d.ts +11 -6
- package/dist/index.js +3 -3
- package/dist/node.d.ts +17 -7
- package/dist/node.js +39 -36
- package/dist/reporters.d.ts +2 -2
- package/dist/reporters.js +5 -5
- package/dist/runners.js +1 -1
- package/dist/workers/forks.js +1 -1
- package/dist/workers/runVmTests.js +5 -5
- package/dist/workers/threads.js +1 -1
- package/dist/workers.d.ts +4 -16
- package/dist/workers.js +1 -1
- package/package.json +12 -12
- package/dist/chunks/index.DNUmWFkO.js +0 -319
|
@@ -43,4 +43,4 @@ const globalApis = [
|
|
|
43
43
|
"onTestFailed"
|
|
44
44
|
];
|
|
45
45
|
|
|
46
|
-
export { API_PATH as A,
|
|
46
|
+
export { API_PATH as A, defaultBrowserPort as a, defaultInspectPort as b, configFiles as c, defaultPort as d, extraInlineDeps as e, globalApis as g, workspacesFiles as w };
|
|
@@ -8,9 +8,11 @@ async function resolveCoverageProviderModule(options, loader) {
|
|
|
8
8
|
}
|
|
9
9
|
const provider = options.provider;
|
|
10
10
|
if (provider === "v8" || provider === "istanbul") {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
let builtInModule = CoverageProviderMap[provider];
|
|
12
|
+
if (provider === "v8" && loader.isBrowser) {
|
|
13
|
+
builtInModule += "/browser";
|
|
14
|
+
}
|
|
15
|
+
const { default: coverageModule } = await loader.executeId(builtInModule);
|
|
14
16
|
if (!coverageModule) {
|
|
15
17
|
throw new Error(
|
|
16
18
|
`Failed to load ${CoverageProviderMap[provider]}. Default export is missing.`
|
|
@@ -3,9 +3,9 @@ import { existsSync, writeFileSync, readFileSync } from 'node:fs';
|
|
|
3
3
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
4
4
|
import { p as prompt, f as findUp } from './index.CM5UI-4O.js';
|
|
5
5
|
import c from 'tinyrainbow';
|
|
6
|
-
import { detectPackageManager, installPackage } from './index.
|
|
6
|
+
import { detectPackageManager, installPackage } from './index.CWhwfxXK.js';
|
|
7
7
|
import { execa } from 'execa';
|
|
8
|
-
import { c as configFiles } from './constants.
|
|
8
|
+
import { c as configFiles } from './constants.fzPh7AOq.js';
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import 'node:process';
|
|
11
11
|
import './_commonjsHelpers.BFTU3MAI.js';
|
|
@@ -15,6 +15,9 @@ import 'fs';
|
|
|
15
15
|
import 'path';
|
|
16
16
|
import 'process';
|
|
17
17
|
import 'url';
|
|
18
|
+
import 'node:module';
|
|
19
|
+
import 'child_process';
|
|
20
|
+
import 'stream';
|
|
18
21
|
|
|
19
22
|
const jsxExample = {
|
|
20
23
|
name: "HelloWorld.jsx",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as globalApis } from './constants.
|
|
2
|
-
import { V as VitestIndex } from './index.
|
|
1
|
+
import { g as globalApis } from './constants.fzPh7AOq.js';
|
|
2
|
+
import { V as VitestIndex } from './index.m3Xip5Zz.js';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import './benchmark.C8CRJYG4.js';
|
|
5
5
|
import '@vitest/runner/utils';
|
|
@@ -10,7 +10,7 @@ import './utils.Ck2hJTRs.js';
|
|
|
10
10
|
import './env.CmHVDJnw.js';
|
|
11
11
|
import 'std-env';
|
|
12
12
|
import './run-once.Sxe67Wng.js';
|
|
13
|
-
import './vi.
|
|
13
|
+
import './vi.DBepMgvg.js';
|
|
14
14
|
import 'chai';
|
|
15
15
|
import './_commonjsHelpers.BFTU3MAI.js';
|
|
16
16
|
import '@vitest/expect';
|