vitest 1.5.3 → 1.6.1
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 +1 -1
- package/dist/browser.js +1 -1
- package/dist/chunks/environments-node.vcoXCoKs.js +19 -0
- package/dist/chunks/{integrations-globals.Hr6znn-f.js → integrations-globals.kw4co3rx.js} +3 -3
- package/dist/chunks/{runtime-runBaseTests.l6qXp5eU.js → runtime-runBaseTests.oAvMKtQC.js} +8 -9
- package/dist/cli.js +2 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/coverage.d.ts +1 -1
- package/dist/environments.d.ts +1 -1
- package/dist/execute.d.ts +6 -4
- package/dist/execute.js +3 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +4 -4
- package/dist/node.d.ts +2 -2
- package/dist/node.js +7 -7
- package/dist/{reporters-BXNXFKfg.d.ts → reporters-w_64AS5f.d.ts} +103 -25
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +5 -5
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +2 -2
- package/dist/snapshot.d.ts +9 -0
- package/dist/snapshot.js +8 -0
- package/dist/{suite-KPWE530F.d.ts → suite-dWqIFb_-.d.ts} +1 -1
- package/dist/suite.d.ts +2 -2
- package/dist/vendor/{base.Xt0Omgh7.js → base.5NT-gWu5.js} +9 -1
- package/dist/vendor/{base.oIzAvGLe.js → base.Ybri3C14.js} +2 -2
- package/dist/vendor/{cac.RDd_SGOd.js → cac.cdAtVkJZ.js} +38 -15
- package/dist/vendor/{cli-api.AmIc1Dmz.js → cli-api.OdDWuB7Y.js} +159 -42
- package/dist/vendor/{execute.2_yoIC01.js → execute.fL3szUAI.js} +8 -3
- package/dist/vendor/{index.X7lgIMc_.js → index.-xs08BYx.js} +177 -122
- package/dist/vendor/{index.Fm6OikHU.js → index.DpVgvm2P.js} +17 -18
- package/dist/vendor/{index.QVcwRDVW.js → index.dI9lHwVn.js} +1 -1
- package/dist/vendor/{setup-common.5nUd4r76.js → setup-common.8nJLd4ay.js} +1 -1
- package/dist/vendor/{utils.VYmeMh-u.js → utils.dEtNIEgr.js} +1 -1
- package/dist/vendor/{vi.Y_w82WR8.js → vi.YFlodzP_.js} +1 -1
- package/dist/vendor/{vm.i4FO5N37.js → vm.QEE48c0T.js} +131 -41
- package/dist/worker.js +8 -2
- package/dist/workers/forks.js +4 -4
- package/dist/workers/runVmTests.js +10 -8
- package/dist/workers/threads.js +4 -4
- package/dist/workers/vmForks.js +4 -4
- package/dist/workers/vmThreads.js +4 -4
- package/dist/workers.d.ts +1 -1
- package/dist/workers.js +5 -5
- package/package.json +13 -9
- package/snapshot.d.ts +1 -0
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { processError, startTests } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-
|
|
2
|
+
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-w_64AS5f.js';
|
|
3
3
|
import { VitestExecutor } from './execute.js';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import 'vite-node';
|
package/dist/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { processError, startTests } from '@vitest/runner';
|
|
2
|
-
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './vendor/setup-common.
|
|
2
|
+
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv } from './vendor/setup-common.8nJLd4ay.js';
|
|
3
3
|
export { g as getCoverageProvider, a as startCoverageInsideWorker, s as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './vendor/coverage.E7sG1b3r.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import '@vitest/snapshot';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NodeSnapshotEnvironment } from '@vitest/snapshot/environment';
|
|
2
|
+
import 'pathe';
|
|
3
|
+
import '@vitest/runner/utils';
|
|
4
|
+
import '@vitest/utils';
|
|
5
|
+
import { g as getWorkerState } from '../vendor/global.CkGT_TMy.js';
|
|
6
|
+
import '../vendor/env.AtSIuHFg.js';
|
|
7
|
+
import 'std-env';
|
|
8
|
+
|
|
9
|
+
class VitestNodeSnapshotEnvironment extends NodeSnapshotEnvironment {
|
|
10
|
+
getHeader() {
|
|
11
|
+
return `// Vitest Snapshot v${this.getVersion()}, https://vitest.dev/guide/snapshot.html`;
|
|
12
|
+
}
|
|
13
|
+
resolvePath(filepath) {
|
|
14
|
+
const rpc = getWorkerState().rpc;
|
|
15
|
+
return rpc.resolveSnapshotPath(filepath);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { VitestNodeSnapshotEnvironment };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as globalApis } from '../vendor/constants.5J7I254_.js';
|
|
2
|
-
import { V as VitestIndex } from '../vendor/index.
|
|
2
|
+
import { V as VitestIndex } from '../vendor/index.dI9lHwVn.js';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import '../vendor/benchmark.yGkUTKnC.js';
|
|
5
5
|
import '@vitest/runner/utils';
|
|
@@ -10,7 +10,7 @@ import '../vendor/global.CkGT_TMy.js';
|
|
|
10
10
|
import '../vendor/env.AtSIuHFg.js';
|
|
11
11
|
import 'std-env';
|
|
12
12
|
import '../vendor/run-once.Olz_Zkd8.js';
|
|
13
|
-
import '../vendor/vi.
|
|
13
|
+
import '../vendor/vi.YFlodzP_.js';
|
|
14
14
|
import 'chai';
|
|
15
15
|
import '../vendor/_commonjsHelpers.jjO7Zipk.js';
|
|
16
16
|
import '@vitest/expect';
|
|
@@ -18,7 +18,7 @@ import '@vitest/snapshot';
|
|
|
18
18
|
import '@vitest/utils/error';
|
|
19
19
|
import '../vendor/tasks.IknbGB2n.js';
|
|
20
20
|
import '@vitest/utils/source-map';
|
|
21
|
-
import '../vendor/base.
|
|
21
|
+
import '../vendor/base.5NT-gWu5.js';
|
|
22
22
|
import '../vendor/date.Ns1pGd_X.js';
|
|
23
23
|
import '@vitest/spy';
|
|
24
24
|
|
|
@@ -5,16 +5,16 @@ import '@vitest/runner/utils';
|
|
|
5
5
|
import { setupColors, createColors, getSafeTimers } from '@vitest/utils';
|
|
6
6
|
import { g as getWorkerState } from '../vendor/global.CkGT_TMy.js';
|
|
7
7
|
import '../vendor/env.AtSIuHFg.js';
|
|
8
|
-
import { a as globalExpect, r as resetModules, v as vi } from '../vendor/vi.
|
|
8
|
+
import { a as globalExpect, r as resetModules, v as vi } from '../vendor/vi.YFlodzP_.js';
|
|
9
9
|
import { a as startCoverageInsideWorker, s as stopCoverageInsideWorker } from '../vendor/coverage.E7sG1b3r.js';
|
|
10
|
-
import {
|
|
10
|
+
import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from '../vendor/index.DpVgvm2P.js';
|
|
11
11
|
import { createRequire } from 'node:module';
|
|
12
12
|
import util from 'node:util';
|
|
13
13
|
import timers from 'node:timers';
|
|
14
14
|
import { isatty } from 'node:tty';
|
|
15
15
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
16
|
-
import { V as VitestIndex } from '../vendor/index.
|
|
17
|
-
import { s as setupCommonEnv } from '../vendor/setup-common.
|
|
16
|
+
import { V as VitestIndex } from '../vendor/index.dI9lHwVn.js';
|
|
17
|
+
import { s as setupCommonEnv } from '../vendor/setup-common.8nJLd4ay.js';
|
|
18
18
|
import { c as closeInspector } from '../vendor/inspector.IgLX3ur5.js';
|
|
19
19
|
import 'std-env';
|
|
20
20
|
import 'chai';
|
|
@@ -24,10 +24,9 @@ import '@vitest/snapshot';
|
|
|
24
24
|
import '@vitest/utils/error';
|
|
25
25
|
import '../vendor/tasks.IknbGB2n.js';
|
|
26
26
|
import '@vitest/utils/source-map';
|
|
27
|
-
import '../vendor/base.
|
|
27
|
+
import '../vendor/base.5NT-gWu5.js';
|
|
28
28
|
import '../vendor/date.Ns1pGd_X.js';
|
|
29
29
|
import '@vitest/spy';
|
|
30
|
-
import '@vitest/snapshot/environment';
|
|
31
30
|
import '../path.js';
|
|
32
31
|
import 'node:url';
|
|
33
32
|
import '../vendor/rpc.joBhAkyK.js';
|
|
@@ -37,7 +36,7 @@ import '../vendor/index.SMVOaj7F.js';
|
|
|
37
36
|
import '../vendor/run-once.Olz_Zkd8.js';
|
|
38
37
|
|
|
39
38
|
let globalSetup = false;
|
|
40
|
-
async function setupGlobalEnv(config, { environment }) {
|
|
39
|
+
async function setupGlobalEnv(config, { environment }, executor) {
|
|
41
40
|
await setupCommonEnv(config);
|
|
42
41
|
Object.defineProperty(globalThis, "__vitest_index__", {
|
|
43
42
|
value: VitestIndex,
|
|
@@ -45,7 +44,7 @@ async function setupGlobalEnv(config, { environment }) {
|
|
|
45
44
|
});
|
|
46
45
|
const state = getWorkerState();
|
|
47
46
|
if (!state.config.snapshotOptions.snapshotEnvironment)
|
|
48
|
-
state.config.snapshotOptions.snapshotEnvironment =
|
|
47
|
+
state.config.snapshotOptions.snapshotEnvironment = await resolveSnapshotEnvironment(config, executor);
|
|
49
48
|
if (globalSetup)
|
|
50
49
|
return;
|
|
51
50
|
globalSetup = true;
|
|
@@ -91,7 +90,7 @@ async function withEnv({ environment }, options, fn) {
|
|
|
91
90
|
|
|
92
91
|
async function run(files, config, environment, executor) {
|
|
93
92
|
const workerState = getWorkerState();
|
|
94
|
-
await setupGlobalEnv(config, environment);
|
|
93
|
+
await setupGlobalEnv(config, environment, executor);
|
|
95
94
|
await startCoverageInsideWorker(config.coverage, executor);
|
|
96
95
|
if (config.chaiConfig)
|
|
97
96
|
setupChaiConfig(config.chaiConfig);
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as createCLI } from './vendor/cac.
|
|
1
|
+
import { c as createCLI } from './vendor/cac.cdAtVkJZ.js';
|
|
2
2
|
import 'pathe';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'picocolors';
|
|
5
|
-
import './vendor/base.
|
|
5
|
+
import './vendor/base.5NT-gWu5.js';
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import './vendor/constants.5J7I254_.js';
|
|
8
8
|
|
package/dist/config.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const defaultCoverageExcludes = [
|
|
|
23
23
|
"cypress/**",
|
|
24
24
|
"test?(s)/**",
|
|
25
25
|
"test?(-*).?(c|m)[jt]s?(x)",
|
|
26
|
-
"**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)",
|
|
26
|
+
"**/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)",
|
|
27
27
|
"**/__tests__/**",
|
|
28
28
|
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
|
|
29
29
|
"**/vitest.{workspace,projects}.[jt]s?(on)",
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ConfigEnv, UserConfig, mergeConfig } from 'vite';
|
|
2
|
-
export {
|
|
2
|
+
export { ax as UserConfigExport, aw as UserConfigFn, au as UserConfigFnObject, av as UserConfigFnPromise, az as UserProjectConfigExport, ay as UserProjectConfigFn, a1 as UserWorkspaceConfig, aD as configDefaults, aG as coverageConfigDefaults, aF as defaultExclude, aE as defaultInclude, aA as defineConfig, aB as defineProject, aC as defineWorkspace, aH as extraInlineDeps } from './reporters-w_64AS5f.js';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite-node';
|
|
5
5
|
import '@vitest/snapshot';
|
package/dist/config.js
CHANGED
|
@@ -21,7 +21,7 @@ const defaultCoverageExcludes = [
|
|
|
21
21
|
"cypress/**",
|
|
22
22
|
"test?(s)/**",
|
|
23
23
|
"test?(-*).?(c|m)[jt]s?(x)",
|
|
24
|
-
"**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)",
|
|
24
|
+
"**/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)",
|
|
25
25
|
"**/__tests__/**",
|
|
26
26
|
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
|
|
27
27
|
"**/vitest.{workspace,projects}.[jt]s?(on)",
|
package/dist/coverage.d.ts
CHANGED
package/dist/environments.d.ts
CHANGED
package/dist/execute.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import vm from 'node:vm';
|
|
2
2
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
3
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
4
|
-
import {
|
|
4
|
+
import { ar as PendingSuiteMock, as as MockFactory, e as RuntimeRPC, W as WorkerGlobalState, at as MockMap } from './reporters-w_64AS5f.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import '@vitest/snapshot';
|
|
@@ -97,6 +97,7 @@ interface ExternalModulesExecutorOptions {
|
|
|
97
97
|
viteClientModule: Record<string, unknown>;
|
|
98
98
|
}
|
|
99
99
|
declare class ExternalModulesExecutor {
|
|
100
|
+
#private;
|
|
100
101
|
private options;
|
|
101
102
|
private cjs;
|
|
102
103
|
private esm;
|
|
@@ -105,6 +106,9 @@ declare class ExternalModulesExecutor {
|
|
|
105
106
|
private fs;
|
|
106
107
|
private resolvers;
|
|
107
108
|
constructor(options: ExternalModulesExecutorOptions);
|
|
109
|
+
import(identifier: string): Promise<Object>;
|
|
110
|
+
require(identifier: string): any;
|
|
111
|
+
createRequire(identifier: string): NodeRequire;
|
|
108
112
|
importModuleDynamically: (specifier: string, referencer: VMModule) => Promise<VMModule>;
|
|
109
113
|
resolveModule: (specifier: string, referencer: string) => Promise<VMModule>;
|
|
110
114
|
resolve(specifier: string, parent: string): string;
|
|
@@ -113,9 +117,7 @@ declare class ExternalModulesExecutor {
|
|
|
113
117
|
private wrapCommonJsSynteticModule;
|
|
114
118
|
private getModuleInformation;
|
|
115
119
|
private createModule;
|
|
116
|
-
|
|
117
|
-
require(identifier: string): any;
|
|
118
|
-
createRequire(identifier: string): NodeRequire;
|
|
120
|
+
private get isNetworkSupported();
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
interface ExecuteOptions extends ViteNodeRunnerOptions {
|
package/dist/execute.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { V as VitestExecutor } from './vendor/execute.
|
|
1
|
+
export { V as VitestExecutor } from './vendor/execute.fL3szUAI.js';
|
|
2
2
|
import 'node:vm';
|
|
3
3
|
import 'node:url';
|
|
4
|
+
import 'node:fs';
|
|
4
5
|
import 'vite-node/client';
|
|
5
6
|
import 'vite-node/utils';
|
|
6
7
|
import 'pathe';
|
|
7
8
|
import '@vitest/utils/error';
|
|
8
9
|
import './path.js';
|
|
9
|
-
import 'node:fs';
|
|
10
10
|
import '@vitest/utils';
|
|
11
|
-
import './vendor/base.
|
|
11
|
+
import './vendor/base.5NT-gWu5.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TaskPopulated, File, TaskResultPack, CancelReason } from '@vitest/runner';
|
|
2
2
|
export { Custom, DoneCallback, ExtendedContext, File, HookCleanupCallback, HookListener, OnTestFailedHandler, RunMode, RuntimeContext, SequenceHooks, SequenceSetupFiles, Suite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteHooks, Task, TaskBase, TaskContext, TaskCustomOptions, TaskMeta, TaskResult, TaskResultPack, TaskState, Test, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
3
|
-
export { b as bench } from './suite-
|
|
3
|
+
export { b as bench } from './suite-dWqIFb_-.js';
|
|
4
4
|
import { ExpectStatic } from '@vitest/expect';
|
|
5
5
|
export { Assertion, AsymmetricMatchersContaining, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
6
|
-
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper,
|
|
7
|
-
export {
|
|
6
|
+
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper, s as RuntimeConfig, P as ProvidedContext, A as AfterSuiteRunMeta, t as UserConsoleLog, R as ResolvedConfig, u as ModuleGraphData, v as Reporter } from './reporters-w_64AS5f.js';
|
|
7
|
+
export { Q as ApiConfig, aa as ArgumentsType, a9 as Arrayable, a7 as Awaitable, B as BaseCoverageOptions, ap as BenchFunction, an as Benchmark, aq as BenchmarkAPI, ao as BenchmarkResult, am as BenchmarkUserOptions, a0 as BrowserConfigOptions, r as BrowserScript, L as BuiltinEnvironment, O as CSSModuleScopeStrategy, y as CollectLineNumbers, z as CollectLines, ac as Constructable, G as Context, f as ContextRPC, a3 as ContextTestEnvironment, aj as CoverageIstanbulOptions, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, ai as CoverageReporter, ak as CoverageV8Options, al as CustomProviderOptions, X as DepsOptimizationOptions, E as Environment, S as EnvironmentOptions, ae as EnvironmentReturn, K as HappyDOMOptions, Z as InlineConfig, J as JSDOMOptions, ad as ModuleCache, ab as MutableArray, a8 as Nullable, ag as OnServerRestartHandler, H as Pool, I as PoolOptions, $ as ProjectConfig, w as RawErrsMap, ah as ReportContext, a5 as ResolveIdFunction, a as ResolvedCoverageOptions, a4 as ResolvedTestEnvironment, D as RootAndTarget, a2 as RunnerRPC, e as RuntimeRPC, Y as TransformModePatterns, x as TscErrorInfo, _ as TypecheckConfig, U as UserConfig, a1 as UserWorkspaceConfig, i as Vitest, N as VitestEnvironment, V as VitestRunMode, af as VmEnvironmentReturn, g as WorkerContext, W as WorkerGlobalState, a6 as WorkerRPC } from './reporters-w_64AS5f.js';
|
|
8
8
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
9
9
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject, SpyInstance } from '@vitest/spy';
|
|
10
10
|
export { SnapshotEnvironment } from '@vitest/snapshot/environment';
|
|
@@ -683,6 +683,7 @@ interface WebSocketHandlers {
|
|
|
683
683
|
getCountOfFailedTests: () => number;
|
|
684
684
|
sendLog: (log: UserConsoleLog) => void;
|
|
685
685
|
getFiles: () => File[];
|
|
686
|
+
getTestFiles: () => Promise<[name: string, file: string][]>;
|
|
686
687
|
getPaths: () => string[];
|
|
687
688
|
getConfig: () => ResolvedConfig;
|
|
688
689
|
resolveSnapshotPath: (testPath: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
2
2
|
export { b as bench } from './vendor/benchmark.yGkUTKnC.js';
|
|
3
3
|
export { i as isFirstRun, a as runOnce } from './vendor/run-once.Olz_Zkd8.js';
|
|
4
|
-
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.
|
|
5
|
-
import { d as dist } from './vendor/index.
|
|
6
|
-
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.
|
|
4
|
+
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.YFlodzP_.js';
|
|
5
|
+
import { d as dist } from './vendor/index.dI9lHwVn.js';
|
|
6
|
+
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.dI9lHwVn.js';
|
|
7
7
|
import * as chai from 'chai';
|
|
8
8
|
export { chai };
|
|
9
9
|
export { assert, should } from 'chai';
|
|
@@ -20,7 +20,7 @@ import '@vitest/snapshot';
|
|
|
20
20
|
import '@vitest/utils/error';
|
|
21
21
|
import './vendor/tasks.IknbGB2n.js';
|
|
22
22
|
import '@vitest/utils/source-map';
|
|
23
|
-
import './vendor/base.
|
|
23
|
+
import './vendor/base.5NT-gWu5.js';
|
|
24
24
|
import './vendor/date.Ns1pGd_X.js';
|
|
25
25
|
import '@vitest/spy';
|
|
26
26
|
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-
|
|
2
|
-
export { p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-
|
|
1
|
+
import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-w_64AS5f.js';
|
|
2
|
+
export { p as BrowserProvider, o as BrowserProviderInitializationOptions, q as BrowserProviderOptions, r as BrowserScript, l as ProcessPool, n as TestSequencerConstructor, m as VitestPackageInstaller } from './reporters-w_64AS5f.js';
|
|
3
3
|
import { UserConfig as UserConfig$1, Plugin } from 'vite';
|
|
4
4
|
import { Writable } from 'node:stream';
|
|
5
5
|
import '@vitest/runner';
|
package/dist/node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.
|
|
2
|
-
export { p as parseCLI } from './vendor/cac.
|
|
3
|
-
export { B as BaseSequencer } from './vendor/index.
|
|
1
|
+
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.OdDWuB7Y.js';
|
|
2
|
+
export { p as parseCLI } from './vendor/cac.cdAtVkJZ.js';
|
|
3
|
+
export { B as BaseSequencer } from './vendor/index.-xs08BYx.js';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import './vendor/constants.5J7I254_.js';
|
|
6
6
|
import './vendor/coverage.E7sG1b3r.js';
|
|
@@ -25,7 +25,7 @@ import 'vite-node/client';
|
|
|
25
25
|
import '@vitest/snapshot/manager';
|
|
26
26
|
import 'vite-node/server';
|
|
27
27
|
import '@vitest/runner/utils';
|
|
28
|
-
import './vendor/base.
|
|
28
|
+
import './vendor/base.5NT-gWu5.js';
|
|
29
29
|
import '@vitest/utils';
|
|
30
30
|
import './vendor/env.AtSIuHFg.js';
|
|
31
31
|
import 'std-env';
|
|
@@ -40,18 +40,19 @@ import 'net';
|
|
|
40
40
|
import 'tls';
|
|
41
41
|
import 'url';
|
|
42
42
|
import '@vitest/utils/source-map';
|
|
43
|
+
import 'node:crypto';
|
|
43
44
|
import 'node:v8';
|
|
44
45
|
import 'node:os';
|
|
45
46
|
import 'node:events';
|
|
46
47
|
import 'tinypool';
|
|
48
|
+
import 'node:fs/promises';
|
|
47
49
|
import 'local-pkg';
|
|
48
|
-
import 'node:crypto';
|
|
49
50
|
import 'vite-node/utils';
|
|
50
51
|
import 'magic-string';
|
|
51
52
|
import 'acorn-walk';
|
|
52
53
|
import '@vitest/utils/ast';
|
|
53
54
|
import 'strip-literal';
|
|
54
|
-
import './vendor/utils.
|
|
55
|
+
import './vendor/utils.dEtNIEgr.js';
|
|
55
56
|
import 'node:module';
|
|
56
57
|
import './vendor/index.SMVOaj7F.js';
|
|
57
58
|
import './vendor/global.CkGT_TMy.js';
|
|
@@ -62,7 +63,6 @@ import 'node:perf_hooks';
|
|
|
62
63
|
import './chunks/runtime-console.EO5ha7qv.js';
|
|
63
64
|
import 'node:stream';
|
|
64
65
|
import './vendor/date.Ns1pGd_X.js';
|
|
65
|
-
import 'node:fs/promises';
|
|
66
66
|
import 'execa';
|
|
67
67
|
import 'module';
|
|
68
68
|
import 'assert';
|
|
@@ -714,6 +714,42 @@ interface BrowserConfigOptions {
|
|
|
714
714
|
* @default test.fileParallelism
|
|
715
715
|
*/
|
|
716
716
|
fileParallelism?: boolean;
|
|
717
|
+
/**
|
|
718
|
+
* Scripts injected into the tester iframe.
|
|
719
|
+
*/
|
|
720
|
+
testerScripts?: BrowserScript[];
|
|
721
|
+
/**
|
|
722
|
+
* Scripts injected into the main window.
|
|
723
|
+
*/
|
|
724
|
+
indexScripts?: BrowserScript[];
|
|
725
|
+
}
|
|
726
|
+
interface BrowserScript {
|
|
727
|
+
/**
|
|
728
|
+
* If "content" is provided and type is "module", this will be its identifier.
|
|
729
|
+
*
|
|
730
|
+
* If you are using TypeScript, you can add `.ts` extension here for example.
|
|
731
|
+
* @default `injected-${index}.js`
|
|
732
|
+
*/
|
|
733
|
+
id?: string;
|
|
734
|
+
/**
|
|
735
|
+
* JavaScript content to be injected. This string is processed by Vite plugins if type is "module".
|
|
736
|
+
*
|
|
737
|
+
* You can use `id` to give Vite a hint about the file extension.
|
|
738
|
+
*/
|
|
739
|
+
content?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Path to the script. This value is resolved by Vite so it can be a node module or a file path.
|
|
742
|
+
*/
|
|
743
|
+
src?: string;
|
|
744
|
+
/**
|
|
745
|
+
* If the script should be loaded asynchronously.
|
|
746
|
+
*/
|
|
747
|
+
async?: boolean;
|
|
748
|
+
/**
|
|
749
|
+
* Script type.
|
|
750
|
+
* @default 'module'
|
|
751
|
+
*/
|
|
752
|
+
type?: string;
|
|
717
753
|
}
|
|
718
754
|
interface ResolvedBrowserOptions extends BrowserConfigOptions {
|
|
719
755
|
enabled: boolean;
|
|
@@ -745,6 +781,8 @@ declare class WorkspaceProject {
|
|
|
745
781
|
reject: (v: unknown) => void;
|
|
746
782
|
} | undefined;
|
|
747
783
|
testFilesList: string[] | null;
|
|
784
|
+
readonly id: string;
|
|
785
|
+
readonly tmpDir: string;
|
|
748
786
|
private _globalSetups;
|
|
749
787
|
private _provided;
|
|
750
788
|
constructor(path: string | number, ctx: Vitest, options?: InitializeProjectOptions | undefined);
|
|
@@ -774,6 +812,7 @@ declare class WorkspaceProject {
|
|
|
774
812
|
isBrowserEnabled(): boolean;
|
|
775
813
|
getSerializableConfig(): ResolvedConfig;
|
|
776
814
|
close(): Promise<unknown>;
|
|
815
|
+
private clearTmpDir;
|
|
777
816
|
initBrowserProvider(): Promise<void>;
|
|
778
817
|
}
|
|
779
818
|
|
|
@@ -952,16 +991,18 @@ declare class Vitest {
|
|
|
952
991
|
private initCoverageProvider;
|
|
953
992
|
private initBrowserProviders;
|
|
954
993
|
start(filters?: string[]): Promise<void>;
|
|
994
|
+
init(): Promise<void>;
|
|
955
995
|
private getTestDependencies;
|
|
956
996
|
filterTestsBySource(specs: WorkspaceSpec[]): Promise<WorkspaceSpec[]>;
|
|
957
997
|
getProjectsByTestFile(file: string): WorkspaceSpec[];
|
|
958
998
|
initializeGlobalSetup(paths: WorkspaceSpec[]): Promise<void>;
|
|
999
|
+
private initializeDistPath;
|
|
959
1000
|
runFiles(paths: WorkspaceSpec[], allTestsRun: boolean): Promise<void>;
|
|
960
1001
|
cancelCurrentRun(reason: CancelReason): Promise<void>;
|
|
961
1002
|
rerunFiles(files?: string[], trigger?: string): Promise<void>;
|
|
962
1003
|
changeProjectName(pattern: string): Promise<void>;
|
|
963
1004
|
changeNamePattern(pattern: string, files?: string[], trigger?: string): Promise<void>;
|
|
964
|
-
changeFilenamePattern(pattern: string): Promise<void>;
|
|
1005
|
+
changeFilenamePattern(pattern: string, files?: string[]): Promise<void>;
|
|
965
1006
|
rerunFailed(): Promise<void>;
|
|
966
1007
|
updateSnapshot(files?: string[]): Promise<void>;
|
|
967
1008
|
private _rerunTimer;
|
|
@@ -984,6 +1025,7 @@ declare class Vitest {
|
|
|
984
1025
|
*/
|
|
985
1026
|
exit(force?: boolean): Promise<void>;
|
|
986
1027
|
report<T extends keyof Reporter>(name: T, ...args: ArgumentsType$1<Reporter[T]>): Promise<void>;
|
|
1028
|
+
getTestFilepaths(): Promise<string[]>;
|
|
987
1029
|
globTestFiles(filters?: string[]): Promise<WorkspaceSpec[]>;
|
|
988
1030
|
shouldKeepServer(): boolean;
|
|
989
1031
|
onServerRestart(fn: OnServerRestartHandler): void;
|
|
@@ -1129,7 +1171,7 @@ interface JsonTestResults {
|
|
|
1129
1171
|
interface JsonOptions$1 {
|
|
1130
1172
|
outputFile?: string;
|
|
1131
1173
|
}
|
|
1132
|
-
declare class JsonReporter
|
|
1174
|
+
declare class JsonReporter implements Reporter {
|
|
1133
1175
|
start: number;
|
|
1134
1176
|
ctx: Vitest;
|
|
1135
1177
|
options: JsonOptions$1;
|
|
@@ -1179,6 +1221,16 @@ interface JUnitOptions {
|
|
|
1179
1221
|
outputFile?: string;
|
|
1180
1222
|
classname?: string;
|
|
1181
1223
|
suiteName?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* Write <system-out> and <system-err> for console output
|
|
1226
|
+
* @default true
|
|
1227
|
+
*/
|
|
1228
|
+
includeConsoleOutput?: boolean;
|
|
1229
|
+
/**
|
|
1230
|
+
* Add <testcase file="..."> attribute (validated on CIRCLE CI and GitLab CI)
|
|
1231
|
+
* @default false
|
|
1232
|
+
*/
|
|
1233
|
+
addFileAttribute?: boolean;
|
|
1182
1234
|
}
|
|
1183
1235
|
declare class JUnitReporter implements Reporter {
|
|
1184
1236
|
private ctx;
|
|
@@ -1213,25 +1265,12 @@ declare class GithubActionsReporter implements Reporter {
|
|
|
1213
1265
|
onFinished(files?: File[], errors?: unknown[]): Promise<void>;
|
|
1214
1266
|
}
|
|
1215
1267
|
|
|
1216
|
-
declare class JsonReporter implements Reporter {
|
|
1217
|
-
start: number;
|
|
1218
|
-
ctx: Vitest;
|
|
1219
|
-
onInit(ctx: Vitest): void;
|
|
1220
|
-
protected logTasks(files: File[]): Promise<void>;
|
|
1221
|
-
onFinished(files?: File[]): Promise<void>;
|
|
1222
|
-
/**
|
|
1223
|
-
* Writes the report to an output file if specified in the config,
|
|
1224
|
-
* or logs it to the console otherwise.
|
|
1225
|
-
* @param report
|
|
1226
|
-
*/
|
|
1227
|
-
writeReport(report: string): Promise<void>;
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
1268
|
interface TableRendererOptions {
|
|
1231
1269
|
renderSucceed?: boolean;
|
|
1232
1270
|
logger: Logger;
|
|
1233
1271
|
showHeap: boolean;
|
|
1234
1272
|
slowTestThreshold: number;
|
|
1273
|
+
compare?: FlatBenchmarkReport;
|
|
1235
1274
|
}
|
|
1236
1275
|
declare function createTableRenderer(_tasks: Task[], options: TableRendererOptions): {
|
|
1237
1276
|
start(): any;
|
|
@@ -1244,19 +1283,25 @@ declare class TableReporter extends BaseReporter {
|
|
|
1244
1283
|
renderer?: ReturnType<typeof createTableRenderer>;
|
|
1245
1284
|
rendererOptions: TableRendererOptions;
|
|
1246
1285
|
onTestRemoved(trigger?: string): Promise<void>;
|
|
1247
|
-
onCollected(): void
|
|
1286
|
+
onCollected(): Promise<void>;
|
|
1248
1287
|
onTaskUpdate(packs: TaskResultPack[]): void;
|
|
1249
|
-
onFinished(files?:
|
|
1288
|
+
onFinished(files?: File[], errors?: unknown[]): Promise<void>;
|
|
1250
1289
|
onWatcherStart(): Promise<void>;
|
|
1251
1290
|
stopListRender(): Promise<void>;
|
|
1252
1291
|
onWatcherRerun(files: string[], trigger?: string): Promise<void>;
|
|
1253
1292
|
onUserConsoleLog(log: UserConsoleLog): void;
|
|
1254
1293
|
}
|
|
1294
|
+
interface FlatBenchmarkReport {
|
|
1295
|
+
[id: string]: FormattedBenchmarkResult;
|
|
1296
|
+
}
|
|
1297
|
+
type FormattedBenchmarkResult = Omit<BenchmarkResult, 'samples'> & {
|
|
1298
|
+
id: string;
|
|
1299
|
+
sampleCount: number;
|
|
1300
|
+
};
|
|
1255
1301
|
|
|
1256
1302
|
declare const BenchmarkReportsMap: {
|
|
1257
1303
|
default: typeof TableReporter;
|
|
1258
1304
|
verbose: typeof VerboseReporter;
|
|
1259
|
-
json: typeof JsonReporter;
|
|
1260
1305
|
};
|
|
1261
1306
|
type BenchmarkBuiltinReporters = keyof typeof BenchmarkReportsMap;
|
|
1262
1307
|
|
|
@@ -1265,7 +1310,7 @@ declare const ReportersMap: {
|
|
|
1265
1310
|
basic: typeof BasicReporter;
|
|
1266
1311
|
verbose: typeof VerboseReporter;
|
|
1267
1312
|
dot: typeof DotReporter;
|
|
1268
|
-
json: typeof JsonReporter
|
|
1313
|
+
json: typeof JsonReporter;
|
|
1269
1314
|
tap: typeof TapReporter;
|
|
1270
1315
|
'tap-flat': typeof TapFlatReporter;
|
|
1271
1316
|
junit: typeof JUnitReporter;
|
|
@@ -1443,7 +1488,10 @@ interface PendingSuiteMock {
|
|
|
1443
1488
|
|
|
1444
1489
|
type TransformMode = 'web' | 'ssr';
|
|
1445
1490
|
interface RuntimeRPC {
|
|
1446
|
-
fetch: (id: string, environment: TransformMode) => Promise<
|
|
1491
|
+
fetch: (id: string, environment: TransformMode) => Promise<{
|
|
1492
|
+
externalize?: string;
|
|
1493
|
+
id?: string;
|
|
1494
|
+
}>;
|
|
1447
1495
|
transform: (id: string, environment: TransformMode) => Promise<FetchResult>;
|
|
1448
1496
|
resolveId: (id: string, importer: string | undefined, environment: TransformMode) => Promise<ViteNodeResolveId | null>;
|
|
1449
1497
|
getSourceMap: (id: string, force?: boolean) => Promise<RawSourceMap | undefined>;
|
|
@@ -1587,7 +1635,7 @@ interface BaseCoverageOptions {
|
|
|
1587
1635
|
/**
|
|
1588
1636
|
* List of files excluded from coverage as glob patterns
|
|
1589
1637
|
*
|
|
1590
|
-
* @default ['coverage/**', 'dist/**', '**\/[.]**', 'packages/*\/test?(s)/**', '**\/*.d.ts', '**\/virtual:*', '**\/__x00__*', '**\/\x00*', 'cypress/**', 'test?(s)/**', 'test?(-*).?(c|m)[jt]s?(x)', '**\/*{.,-}{test,spec}.?(c|m)[jt]s?(x)', '**\/__tests__/**', '**\/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', '**\/vitest.{workspace,projects}.[jt]s?(on)', '**\/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}']
|
|
1638
|
+
* @default ['coverage/**', 'dist/**', '**\/[.]**', 'packages/*\/test?(s)/**', '**\/*.d.ts', '**\/virtual:*', '**\/__x00__*', '**\/\x00*', 'cypress/**', 'test?(s)/**', 'test?(-*).?(c|m)[jt]s?(x)', '**\/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)', '**\/__tests__/**', '**\/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*', '**\/vitest.{workspace,projects}.[jt]s?(on)', '**\/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}']
|
|
1591
1639
|
*/
|
|
1592
1640
|
exclude?: string[];
|
|
1593
1641
|
/**
|
|
@@ -1853,6 +1901,14 @@ interface BenchmarkUserOptions {
|
|
|
1853
1901
|
* Also definable individually per reporter by using an object instead.
|
|
1854
1902
|
*/
|
|
1855
1903
|
outputFile?: string | (Partial<Record<BenchmarkBuiltinReporters, string>> & Record<string, string>);
|
|
1904
|
+
/**
|
|
1905
|
+
* benchmark output file to compare against
|
|
1906
|
+
*/
|
|
1907
|
+
compare?: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* benchmark output file
|
|
1910
|
+
*/
|
|
1911
|
+
outputJson?: string;
|
|
1856
1912
|
}
|
|
1857
1913
|
interface Benchmark extends Custom {
|
|
1858
1914
|
meta: {
|
|
@@ -2413,6 +2469,10 @@ interface InlineConfig {
|
|
|
2413
2469
|
* Resolve custom snapshot path
|
|
2414
2470
|
*/
|
|
2415
2471
|
resolveSnapshotPath?: (path: string, extension: string) => string;
|
|
2472
|
+
/**
|
|
2473
|
+
* Path to a custom snapshot environment module that has a defualt export of `SnapshotEnvironment` object.
|
|
2474
|
+
*/
|
|
2475
|
+
snapshotEnvironment?: string;
|
|
2416
2476
|
/**
|
|
2417
2477
|
* Pass with no tests
|
|
2418
2478
|
*/
|
|
@@ -2628,6 +2688,14 @@ interface UserConfig extends InlineConfig {
|
|
|
2628
2688
|
* Setting to `false` will disable config resolving.
|
|
2629
2689
|
*/
|
|
2630
2690
|
config?: string | false | undefined;
|
|
2691
|
+
/**
|
|
2692
|
+
* Do not run tests when Vitest starts.
|
|
2693
|
+
*
|
|
2694
|
+
* Vitest will only run tests if it's called programmatically or the test file changes.
|
|
2695
|
+
*
|
|
2696
|
+
* CLI file filters will be ignored.
|
|
2697
|
+
*/
|
|
2698
|
+
standalone?: boolean;
|
|
2631
2699
|
/**
|
|
2632
2700
|
* Use happy-dom
|
|
2633
2701
|
*/
|
|
@@ -2666,6 +2734,14 @@ interface UserConfig extends InlineConfig {
|
|
|
2666
2734
|
* Override vite config's clearScreen from cli
|
|
2667
2735
|
*/
|
|
2668
2736
|
clearScreen?: boolean;
|
|
2737
|
+
/**
|
|
2738
|
+
* benchmark.compare option exposed at the top level for cli
|
|
2739
|
+
*/
|
|
2740
|
+
compare?: string;
|
|
2741
|
+
/**
|
|
2742
|
+
* benchmark.outputJson option exposed at the top level for cli
|
|
2743
|
+
*/
|
|
2744
|
+
outputJson?: string;
|
|
2669
2745
|
}
|
|
2670
2746
|
interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'browser' | 'coverage' | 'testNamePattern' | 'related' | 'api' | 'reporters' | 'resolveSnapshotPath' | 'benchmark' | 'shard' | 'cache' | 'sequence' | 'typecheck' | 'runner' | 'poolOptions' | 'pool' | 'cliExclude'> {
|
|
2671
2747
|
mode: VitestRunMode;
|
|
@@ -2681,9 +2757,11 @@ interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters'
|
|
|
2681
2757
|
poolOptions?: PoolOptions;
|
|
2682
2758
|
reporters: (InlineReporter | ReporterWithOptions)[];
|
|
2683
2759
|
defines: Record<string, any>;
|
|
2684
|
-
api
|
|
2760
|
+
api: ApiConfig & {
|
|
2761
|
+
token: string;
|
|
2762
|
+
};
|
|
2685
2763
|
cliExclude?: string[];
|
|
2686
|
-
benchmark?: Required<Omit<BenchmarkUserOptions, 'outputFile'>> & Pick<BenchmarkUserOptions, 'outputFile'>;
|
|
2764
|
+
benchmark?: Required<Omit<BenchmarkUserOptions, 'outputFile' | 'compare' | 'outputJson'>> & Pick<BenchmarkUserOptions, 'outputFile' | 'compare' | 'outputJson'>;
|
|
2687
2765
|
shard?: {
|
|
2688
2766
|
index: number;
|
|
2689
2767
|
count: number;
|
|
@@ -2818,4 +2896,4 @@ type Context = RootAndTarget & {
|
|
|
2818
2896
|
lastActivePath?: string;
|
|
2819
2897
|
};
|
|
2820
2898
|
|
|
2821
|
-
export { type
|
|
2899
|
+
export { type ProjectConfig as $, type AfterSuiteRunMeta as A, type BaseCoverageOptions as B, type CoverageOptions as C, type RootAndTarget as D, type Environment as E, type FakeTimerInstallOpts as F, type Context as G, type Pool as H, type PoolOptions as I, type JSDOMOptions as J, type HappyDOMOptions as K, type BuiltinEnvironment as L, type MockFactoryWithHelper as M, type VitestEnvironment as N, type CSSModuleScopeStrategy as O, type ProvidedContext as P, type ApiConfig as Q, type ResolvedConfig as R, type EnvironmentOptions as S, type TestSequencer as T, type UserConfig as U, type VitestRunMode as V, type WorkerGlobalState as W, type DepsOptimizationOptions as X, type TransformModePatterns as Y, type InlineConfig as Z, type TypecheckConfig as _, type ResolvedCoverageOptions as a, type BrowserConfigOptions as a0, type UserWorkspaceConfig as a1, type RunnerRPC as a2, type ContextTestEnvironment as a3, type ResolvedTestEnvironment as a4, type ResolveIdFunction as a5, type WorkerRPC as a6, type Awaitable as a7, type Nullable as a8, type Arrayable as a9, defineConfig as aA, defineProject as aB, defineWorkspace as aC, configDefaults as aD, defaultInclude as aE, defaultExclude as aF, coverageConfigDefaults as aG, extraInlineDeps as aH, DefaultReporter as aI, BasicReporter as aJ, DotReporter as aK, JsonReporter as aL, VerboseReporter as aM, TapReporter as aN, JUnitReporter as aO, TapFlatReporter as aP, HangingProcessReporter as aQ, GithubActionsReporter as aR, BaseReporter as aS, ReportersMap as aT, type BuiltinReporters as aU, type BuiltinReporterOptions as aV, type JsonAssertionResult as aW, type JsonTestResult as aX, type JsonTestResults as aY, BenchmarkReportsMap as aZ, type BenchmarkBuiltinReporters as a_, type ArgumentsType$1 as aa, type MutableArray as ab, type Constructable as ac, type ModuleCache as ad, type EnvironmentReturn as ae, type VmEnvironmentReturn as af, type OnServerRestartHandler as ag, type ReportContext as ah, type CoverageReporter as ai, type CoverageIstanbulOptions as aj, type CoverageV8Options as ak, type CustomProviderOptions as al, type BenchmarkUserOptions as am, type Benchmark as an, type BenchmarkResult as ao, type BenchFunction as ap, type BenchmarkAPI as aq, type PendingSuiteMock as ar, type MockFactory as as, type MockMap as at, type UserConfigFnObject as au, type UserConfigFnPromise as av, type UserConfigFn as aw, type UserConfigExport as ax, type UserProjectConfigFn as ay, type UserProjectConfigExport as az, type CoverageProvider as b, type CoverageProviderModule as c, type BirpcOptions as d, type RuntimeRPC as e, type ContextRPC as f, type WorkerContext as g, type VitestOptions as h, Vitest as i, WorkspaceProject as j, type WorkspaceSpec as k, type ProcessPool as l, VitestPackageInstaller as m, type TestSequencerConstructor as n, type BrowserProviderInitializationOptions as o, type BrowserProvider as p, type BrowserProviderOptions as q, type BrowserScript as r, type RuntimeConfig as s, type UserConsoleLog as t, type ModuleGraphData as u, type Reporter as v, type RawErrsMap as w, type TscErrorInfo as x, type CollectLineNumbers as y, type CollectLines as z };
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aS as BaseReporter, aJ as BasicReporter, a_ as BenchmarkBuiltinReporters, aZ as BenchmarkReportsMap, aV as BuiltinReporterOptions, aU as BuiltinReporters, aI as DefaultReporter, aK as DotReporter, aR as GithubActionsReporter, aQ as HangingProcessReporter, aO as JUnitReporter, aW as JsonAssertionResult, aL as JsonReporter, aX as JsonTestResult, aY as JsonTestResults, v as Reporter, aT as ReportersMap, aP as TapFlatReporter, aN as TapReporter, aM as VerboseReporter } from './reporters-w_64AS5f.js';
|
|
2
2
|
import 'vite';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite-node';
|