vitest 3.0.0-beta.1 → 3.0.0-beta.2
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/dist/browser.d.ts +12 -9
- package/dist/browser.js +2 -2
- package/dist/chunks/{base.CkcgFVQd.js → base.CUgXReRN.js} +1 -1
- package/dist/chunks/{cac.CWCZimpS.js → cac.Xzv7eNWw.js} +18 -13
- package/dist/chunks/{cli-api.BKUOv0Nc.js → cli-api.CETCDGgZ.js} +915 -531
- package/dist/chunks/{coverage.BoMDb1ip.js → coverage.BWeNbfBa.js} +4 -4
- package/dist/chunks/{environment.CT0jpO-1.d.ts → environment.d8YfPkTm.d.ts} +1 -3
- package/dist/chunks/{globals.DJTzb7B3.js → globals.BFncSRNA.js} +2 -2
- package/dist/chunks/{index.DKe7vK-G.js → index.9ZEBV_TJ.js} +635 -606
- package/dist/chunks/{index.BqHViJW9.js → index.CkWmZCXU.js} +1 -1
- package/dist/chunks/{index.CkOJwybT.js → index.DoV7W5gc.js} +2 -2
- package/dist/chunks/{reporters.BZbwTvrM.d.ts → reporters.DTtxC3KQ.d.ts} +447 -374
- package/dist/chunks/{resolveConfig.3rGGWga5.js → resolveConfig.BA-_OKEx.js} +5529 -5532
- package/dist/chunks/{runBaseTests.C6huCAng.js → runBaseTests.D0dWpzZV.js} +11 -10
- package/dist/chunks/{setup-common.B5ClyS48.js → setup-common.Cp_bu5q3.js} +1 -1
- package/dist/chunks/types.BOjykUpq.d.ts +27 -0
- package/dist/chunks/{vi.CZKezqeD.js → vi.S4Fq8wSo.js} +2 -1
- package/dist/chunks/{vite.DIfmneq0.d.ts → vite.CXaetSK3.d.ts} +1 -1
- package/dist/chunks/{worker.umPNbBNk.d.ts → worker.ClntunZp.d.ts} +1 -1
- package/dist/chunks/{worker.CmzGeuVD.d.ts → worker.o1PBoDdo.d.ts} +3 -3
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +6 -8
- package/dist/coverage.d.ts +4 -6
- package/dist/coverage.js +1 -1
- package/dist/environments.d.ts +2 -2
- package/dist/execute.d.ts +2 -2
- package/dist/index.d.ts +11 -14
- package/dist/index.js +2 -2
- package/dist/node.d.ts +22 -17
- package/dist/node.js +65 -31
- package/dist/reporters.d.ts +4 -6
- package/dist/reporters.js +1 -1
- package/dist/runners.d.ts +2 -2
- package/dist/runners.js +1 -1
- package/dist/suite.d.ts +1 -1
- package/dist/workers/forks.js +1 -1
- package/dist/workers/runVmTests.js +7 -7
- package/dist/workers/threads.js +1 -1
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +1 -1
- package/package.json +13 -13
|
@@ -43,10 +43,10 @@ async function getCoverageProvider(options, loader) {
|
|
|
43
43
|
}
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
|
-
async function startCoverageInsideWorker(options, loader) {
|
|
46
|
+
async function startCoverageInsideWorker(options, loader, runtimeOptions) {
|
|
47
47
|
const coverageModule = await resolveCoverageProviderModule(options, loader);
|
|
48
48
|
if (coverageModule) {
|
|
49
|
-
return coverageModule.startCoverage?.();
|
|
49
|
+
return coverageModule.startCoverage?.(runtimeOptions);
|
|
50
50
|
}
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
@@ -57,10 +57,10 @@ async function takeCoverageInsideWorker(options, loader) {
|
|
|
57
57
|
}
|
|
58
58
|
return null;
|
|
59
59
|
}
|
|
60
|
-
async function stopCoverageInsideWorker(options, loader) {
|
|
60
|
+
async function stopCoverageInsideWorker(options, loader, runtimeOptions) {
|
|
61
61
|
const coverageModule = await resolveCoverageProviderModule(options, loader);
|
|
62
62
|
if (coverageModule) {
|
|
63
|
-
return coverageModule.stopCoverage?.();
|
|
63
|
+
return coverageModule.stopCoverage?.(runtimeOptions);
|
|
64
64
|
}
|
|
65
65
|
return null;
|
|
66
66
|
}
|
|
@@ -35,8 +35,6 @@ interface ModuleGraphData {
|
|
|
35
35
|
externalized: string[];
|
|
36
36
|
inlined: string[];
|
|
37
37
|
}
|
|
38
|
-
type OnServerRestartHandler = (reason?: string) => Promise<void> | void;
|
|
39
|
-
type OnTestsRerunHandler = (testFiles: string[]) => Promise<void> | void;
|
|
40
38
|
interface ProvidedContext {
|
|
41
39
|
}
|
|
42
40
|
|
|
@@ -172,4 +170,4 @@ interface ResolvedTestEnvironment {
|
|
|
172
170
|
options: Record<string, any> | null;
|
|
173
171
|
}
|
|
174
172
|
|
|
175
|
-
export type { AfterSuiteRunMeta as A, Constructable as C, Environment as E, HappyDOMOptions as H, JSDOMOptions as J, ModuleGraphData as M, Nullable as N,
|
|
173
|
+
export type { AfterSuiteRunMeta as A, Constructable as C, Environment as E, HappyDOMOptions as H, JSDOMOptions as J, ModuleGraphData as M, Nullable as N, ProvidedContext as P, ResolvedTestEnvironment as R, TransformMode as T, UserConsoleLog as U, VmEnvironmentReturn as V, EnvironmentReturn as a, Awaitable as b, Arrayable as c, ArgumentsType as d, MutableArray as e, EnvironmentOptions as f, ModuleCache as g };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as globalApis } from './constants.fzPh7AOq.js';
|
|
2
|
-
import { V as VitestIndex } from './index.
|
|
3
|
-
import './vi.
|
|
2
|
+
import { V as VitestIndex } from './index.CkWmZCXU.js';
|
|
3
|
+
import './vi.S4Fq8wSo.js';
|
|
4
4
|
import '@vitest/expect';
|
|
5
5
|
import '@vitest/runner';
|
|
6
6
|
import '@vitest/runner/utils';
|