vitest 1.6.0 → 2.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/LICENSE.md +172 -0
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +4 -4
- package/dist/chunks/{environments-node.vcoXCoKs.js → environments-node.39w4gmlF.js} +2 -2
- package/dist/chunks/{install-pkg.LE8oaA1t.js → install-pkg.DNUmWFkO.js} +2 -2
- package/dist/chunks/integrations-globals.B5Jl0grA.js +31 -0
- package/dist/chunks/{runtime-console.EO5ha7qv.js → runtime-console.CUES-L8X.js} +9 -9
- package/dist/chunks/{runtime-runBaseTests.oAvMKtQC.js → runtime-runBaseTests._dXkRAZc.js} +18 -18
- package/dist/cli.js +3 -3
- package/dist/config.cjs +2 -3
- package/dist/config.d.ts +1 -1
- package/dist/config.js +2 -3
- package/dist/coverage.d.ts +1 -1
- package/dist/coverage.js +2 -2
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/dist/execute.d.ts +2 -1
- package/dist/execute.js +2 -2
- package/dist/index.d.ts +769 -21
- package/dist/index.js +12 -12
- package/dist/node.d.ts +2 -2
- package/dist/node.js +20 -21
- package/dist/{reporters-yx5ZTtEV.d.ts → reporters-DFgqsvtL.d.ts} +29 -32
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +10 -11
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +17 -18
- package/dist/snapshot.js +3 -3
- package/dist/{suite-IbNSsUWN.d.ts → suite-C_sqQjdz.d.ts} +1 -1
- package/dist/suite.d.ts +2 -2
- package/dist/suite.js +4 -4
- package/dist/vendor/{base.Ybri3C14.js → base.VFkIJ66g.js} +3 -3
- package/dist/vendor/{base.5NT-gWu5.js → base._gnK9Slw.js} +1 -2
- package/dist/vendor/{benchmark.yGkUTKnC.js → benchmark.BNLebNi5.js} +1 -1
- package/dist/vendor/{cac.EdDItJD-.js → cac.CtP0aXu-.js} +5 -6
- package/dist/vendor/{cli-api.E07AF1Yq.js → cli-api.B2QW76dQ.js} +3061 -362
- package/dist/vendor/{execute.fL3szUAI.js → execute.CLLNVNnK.js} +1 -1
- package/dist/vendor/{index.DpVgvm2P.js → index.BfoZyXD1.js} +5 -5
- package/dist/vendor/{index.8bPxjt7g.js → index.BpSiYbpB.js} +5 -1
- package/dist/vendor/{index.Q04MCqDO.js → index.CRxYS9H3.js} +414 -113
- package/dist/vendor/{index.dI9lHwVn.js → index.CmILuxzC.js} +8 -6
- package/dist/vendor/{index.xL8XjTLv.js → index.DP-km6lF.js} +1 -1
- package/dist/vendor/{index.SMVOaj7F.js → index._7XLd8Kd.js} +2 -2
- package/dist/vendor/{rpc.joBhAkyK.js → rpc.DRDE9Pu1.js} +2 -2
- package/dist/vendor/{run-once.Olz_Zkd8.js → run-once.DLomgGUH.js} +1 -1
- package/dist/vendor/{setup-common.8nJLd4ay.js → setup-common.XeoZAW8t.js} +2 -2
- package/dist/vendor/{tasks.IknbGB2n.js → tasks.WC7M-K-v.js} +4 -1
- package/dist/vendor/{utils.dEtNIEgr.js → utils.D5gGkwyH.js} +1 -1
- package/dist/vendor/{vi.YFlodzP_.js → vi.ClD3hi7L.js} +23 -10
- package/dist/vendor/{vm.QEE48c0T.js → vm.Bi3bljci.js} +47 -59
- package/dist/worker.js +6 -6
- package/dist/workers/forks.js +5 -5
- package/dist/workers/runVmTests.js +17 -17
- package/dist/workers/threads.js +5 -5
- package/dist/workers/vmForks.js +8 -8
- package/dist/workers/vmThreads.js +8 -8
- package/dist/workers.d.ts +1 -1
- package/dist/workers.js +13 -13
- package/package.json +29 -29
- package/vitest.mjs +1 -1
- package/dist/chunks/integrations-globals.kw4co3rx.js +0 -31
- package/dist/cli-wrapper.js +0 -119
- /package/dist/chunks/{node-git.Hw101KjS.js → node-git.CCI8evVZ.js} +0 -0
- /package/dist/vendor/{_commonjsHelpers.jjO7Zipk.js → _commonjsHelpers.BFTU3MAI.js} +0 -0
- /package/dist/vendor/{constants.5J7I254_.js → constants.5SOfHUj0.js} +0 -0
- /package/dist/vendor/{coverage.E7sG1b3r.js → coverage.ChSqD-qS.js} +0 -0
- /package/dist/vendor/{date.Ns1pGd_X.js → date.BKM1wewY.js} +0 -0
- /package/dist/vendor/{env.AtSIuHFg.js → env.bmJgw1qP.js} +0 -0
- /package/dist/vendor/{global.CkGT_TMy.js → global.7bFbnyXl.js} +0 -0
- /package/dist/vendor/{index.GVFv9dZ0.js → index.DeR1hhfY.js} +0 -0
- /package/dist/vendor/{inspector.IgLX3ur5.js → inspector.hPQncR7V.js} +0 -0
- /package/dist/vendor/{utils.0uYuCbzo.js → utils.CUjzkRH7.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
2
|
-
export { b as bench } from './vendor/benchmark.
|
|
3
|
-
export { i as isFirstRun, a as runOnce } from './vendor/run-once.
|
|
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.
|
|
2
|
+
export { b as bench } from './vendor/benchmark.BNLebNi5.js';
|
|
3
|
+
export { i as isFirstRun, a as runOnce } from './vendor/run-once.DLomgGUH.js';
|
|
4
|
+
export { c as createExpect, a as expect, v as vi, b as vitest } from './vendor/vi.ClD3hi7L.js';
|
|
5
|
+
import { d as dist } from './vendor/index.CmILuxzC.js';
|
|
6
|
+
export { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './vendor/index.CmILuxzC.js';
|
|
7
7
|
import * as chai from 'chai';
|
|
8
8
|
export { chai };
|
|
9
9
|
export { assert, should } from 'chai';
|
|
10
10
|
import '@vitest/runner/utils';
|
|
11
11
|
import '@vitest/utils';
|
|
12
|
-
import './vendor/index.
|
|
12
|
+
import './vendor/index._7XLd8Kd.js';
|
|
13
13
|
import 'pathe';
|
|
14
|
-
import './vendor/global.
|
|
15
|
-
import './vendor/env.
|
|
14
|
+
import './vendor/global.7bFbnyXl.js';
|
|
15
|
+
import './vendor/env.bmJgw1qP.js';
|
|
16
16
|
import 'std-env';
|
|
17
|
-
import './vendor/_commonjsHelpers.
|
|
17
|
+
import './vendor/_commonjsHelpers.BFTU3MAI.js';
|
|
18
18
|
import '@vitest/expect';
|
|
19
19
|
import '@vitest/snapshot';
|
|
20
20
|
import '@vitest/utils/error';
|
|
21
|
-
import './vendor/tasks.
|
|
21
|
+
import './vendor/tasks.WC7M-K-v.js';
|
|
22
22
|
import '@vitest/utils/source-map';
|
|
23
|
-
import './vendor/base.
|
|
24
|
-
import './vendor/date.
|
|
23
|
+
import './vendor/base._gnK9Slw.js';
|
|
24
|
+
import './vendor/date.BKM1wewY.js';
|
|
25
25
|
import '@vitest/spy';
|
|
26
26
|
|
|
27
27
|
|
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, r as BrowserScript, 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-DFgqsvtL.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-DFgqsvtL.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,10 +1,10 @@
|
|
|
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.B2QW76dQ.js';
|
|
2
|
+
export { p as parseCLI } from './vendor/cac.CtP0aXu-.js';
|
|
3
|
+
export { B as BaseSequencer } from './vendor/index.CRxYS9H3.js';
|
|
4
4
|
import 'pathe';
|
|
5
|
-
import './vendor/constants.
|
|
6
|
-
import './vendor/coverage.
|
|
7
|
-
import './vendor/index.
|
|
5
|
+
import './vendor/constants.5SOfHUj0.js';
|
|
6
|
+
import './vendor/coverage.ChSqD-qS.js';
|
|
7
|
+
import './vendor/index.DeR1hhfY.js';
|
|
8
8
|
import 'node:console';
|
|
9
9
|
import 'vite';
|
|
10
10
|
import 'node:path';
|
|
@@ -12,10 +12,10 @@ import 'node:url';
|
|
|
12
12
|
import 'node:process';
|
|
13
13
|
import 'node:fs';
|
|
14
14
|
import 'node:worker_threads';
|
|
15
|
-
import './vendor/_commonjsHelpers.
|
|
15
|
+
import './vendor/_commonjsHelpers.BFTU3MAI.js';
|
|
16
16
|
import 'os';
|
|
17
17
|
import 'path';
|
|
18
|
-
import './vendor/index.
|
|
18
|
+
import './vendor/index.DP-km6lF.js';
|
|
19
19
|
import 'util';
|
|
20
20
|
import 'stream';
|
|
21
21
|
import 'events';
|
|
@@ -25,12 +25,12 @@ 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._gnK9Slw.js';
|
|
29
29
|
import '@vitest/utils';
|
|
30
|
-
import './vendor/env.
|
|
30
|
+
import './vendor/env.bmJgw1qP.js';
|
|
31
31
|
import 'std-env';
|
|
32
32
|
import './path.js';
|
|
33
|
-
import './vendor/index.
|
|
33
|
+
import './vendor/index.BpSiYbpB.js';
|
|
34
34
|
import 'zlib';
|
|
35
35
|
import 'buffer';
|
|
36
36
|
import 'crypto';
|
|
@@ -46,23 +46,22 @@ import 'node:events';
|
|
|
46
46
|
import 'tinypool';
|
|
47
47
|
import 'node:crypto';
|
|
48
48
|
import 'node:fs/promises';
|
|
49
|
-
import '
|
|
49
|
+
import 'node:module';
|
|
50
|
+
import 'node:assert';
|
|
51
|
+
import 'node:util';
|
|
50
52
|
import 'vite-node/utils';
|
|
51
53
|
import 'magic-string';
|
|
52
|
-
import 'acorn-walk';
|
|
53
54
|
import '@vitest/utils/ast';
|
|
54
|
-
import '
|
|
55
|
-
import './vendor/
|
|
56
|
-
import '
|
|
57
|
-
import './vendor/index.SMVOaj7F.js';
|
|
58
|
-
import './vendor/global.CkGT_TMy.js';
|
|
55
|
+
import './vendor/utils.D5gGkwyH.js';
|
|
56
|
+
import './vendor/index._7XLd8Kd.js';
|
|
57
|
+
import './vendor/global.7bFbnyXl.js';
|
|
59
58
|
import 'node:readline';
|
|
60
59
|
import 'readline';
|
|
61
|
-
import './vendor/tasks.
|
|
60
|
+
import './vendor/tasks.WC7M-K-v.js';
|
|
62
61
|
import 'node:perf_hooks';
|
|
63
|
-
import './chunks/runtime-console.
|
|
62
|
+
import './chunks/runtime-console.CUES-L8X.js';
|
|
64
63
|
import 'node:stream';
|
|
65
|
-
import './vendor/date.
|
|
64
|
+
import './vendor/date.BKM1wewY.js';
|
|
66
65
|
import 'execa';
|
|
67
66
|
import 'module';
|
|
68
67
|
import 'assert';
|
|
@@ -3,7 +3,7 @@ import { ViteDevServer, TransformResult as TransformResult$1, UserConfig as User
|
|
|
3
3
|
import * as _vitest_runner from '@vitest/runner';
|
|
4
4
|
import { File, Test as Test$1, Suite, TaskResultPack, Task, CancelReason, Custom, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
5
5
|
import { RawSourceMap, FetchResult, ViteNodeResolveId, ModuleCacheMap, ViteNodeServerOptions } from 'vite-node';
|
|
6
|
-
import { SnapshotResult, SnapshotStateOptions, SnapshotState } from '@vitest/snapshot';
|
|
6
|
+
import { SnapshotSummary, SnapshotResult, SnapshotStateOptions, SnapshotState } from '@vitest/snapshot';
|
|
7
7
|
import { ExpectStatic } from '@vitest/expect';
|
|
8
8
|
import { ChainableFunction } from '@vitest/runner/utils';
|
|
9
9
|
import { ParsedStack, Awaitable as Awaitable$1, Arrayable as Arrayable$1 } from '@vitest/utils';
|
|
@@ -632,13 +632,13 @@ declare class Logger {
|
|
|
632
632
|
clearFullScreen(message: string): void;
|
|
633
633
|
clearScreen(message: string, force?: boolean): void;
|
|
634
634
|
private _clearScreen;
|
|
635
|
-
printError(err: unknown, options?: ErrorOptions):
|
|
635
|
+
printError(err: unknown, options?: ErrorOptions): void;
|
|
636
636
|
clearHighlightCache(filename?: string): void;
|
|
637
637
|
highlight(filename: string, source: string): string;
|
|
638
638
|
printNoTestFound(filters?: string[]): void;
|
|
639
639
|
printBanner(): void;
|
|
640
|
-
printUnhandledErrors(errors: unknown[]):
|
|
641
|
-
printSourceTypeErrors(errors: TypeCheckError[]):
|
|
640
|
+
printUnhandledErrors(errors: unknown[]): void;
|
|
641
|
+
printSourceTypeErrors(errors: TypeCheckError[]): void;
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
interface BrowserProviderInitializationOptions {
|
|
@@ -910,6 +910,7 @@ declare class ResultsCache {
|
|
|
910
910
|
private cachePath;
|
|
911
911
|
private version;
|
|
912
912
|
private root;
|
|
913
|
+
constructor(version: string);
|
|
913
914
|
getCachePath(): string | null;
|
|
914
915
|
setConfig(root: string, config: ResolvedConfig['cache']): void;
|
|
915
916
|
getResults(key: string): SuiteResultCache | undefined;
|
|
@@ -931,6 +932,7 @@ declare class FilesStatsCache {
|
|
|
931
932
|
declare class VitestCache {
|
|
932
933
|
results: ResultsCache;
|
|
933
934
|
stats: FilesStatsCache;
|
|
935
|
+
constructor(version: string);
|
|
934
936
|
getFileTestResults(key: string): SuiteResultCache | undefined;
|
|
935
937
|
getFileStats(key: string): {
|
|
936
938
|
size: number;
|
|
@@ -950,6 +952,7 @@ interface VitestOptions {
|
|
|
950
952
|
}
|
|
951
953
|
declare class Vitest {
|
|
952
954
|
readonly mode: VitestRunMode;
|
|
955
|
+
version: string;
|
|
953
956
|
config: ResolvedConfig;
|
|
954
957
|
configOverride: Partial<ResolvedConfig>;
|
|
955
958
|
server: ViteDevServer;
|
|
@@ -1062,25 +1065,25 @@ declare abstract class BaseReporter implements Reporter {
|
|
|
1062
1065
|
get mode(): VitestRunMode;
|
|
1063
1066
|
onInit(ctx: Vitest): void;
|
|
1064
1067
|
relative(path: string): string;
|
|
1065
|
-
onFinished(files?: File[], errors?: unknown[]):
|
|
1068
|
+
onFinished(files?: File[], errors?: unknown[]): void;
|
|
1066
1069
|
onTaskUpdate(packs: TaskResultPack[]): void;
|
|
1067
|
-
onWatcherStart(files?: File[], errors?: unknown[]):
|
|
1070
|
+
onWatcherStart(files?: File[], errors?: unknown[]): void;
|
|
1068
1071
|
private resetLastRunLog;
|
|
1069
|
-
onWatcherRerun(files: string[], trigger?: string):
|
|
1072
|
+
onWatcherRerun(files: string[], trigger?: string): void;
|
|
1070
1073
|
onUserConsoleLog(log: UserConsoleLog): void;
|
|
1071
1074
|
shouldLog(log: UserConsoleLog): boolean;
|
|
1072
1075
|
onServerRestart(reason?: string): void;
|
|
1073
|
-
reportSummary(files: File[], errors: unknown[]):
|
|
1074
|
-
reportTestSummary(files: File[], errors: unknown[]):
|
|
1076
|
+
reportSummary(files: File[], errors: unknown[]): void;
|
|
1077
|
+
reportTestSummary(files: File[], errors: unknown[]): void;
|
|
1075
1078
|
private printErrorsSummary;
|
|
1076
|
-
reportBenchmarkSummary(files: File[]):
|
|
1079
|
+
reportBenchmarkSummary(files: File[]): void;
|
|
1077
1080
|
private printTaskErrors;
|
|
1078
1081
|
registerUnhandledRejection(): void;
|
|
1079
1082
|
}
|
|
1080
1083
|
|
|
1081
1084
|
declare class BasicReporter extends BaseReporter {
|
|
1082
1085
|
isTTY: boolean;
|
|
1083
|
-
reportSummary(files: File[], errors: unknown[]):
|
|
1086
|
+
reportSummary(files: File[], errors: unknown[]): void;
|
|
1084
1087
|
}
|
|
1085
1088
|
|
|
1086
1089
|
interface ListRendererOptions {
|
|
@@ -1093,7 +1096,7 @@ interface ListRendererOptions {
|
|
|
1093
1096
|
declare function createListRenderer(_tasks: Task[], options: ListRendererOptions): {
|
|
1094
1097
|
start(): any;
|
|
1095
1098
|
update(_tasks: Task[]): any;
|
|
1096
|
-
stop():
|
|
1099
|
+
stop(): any;
|
|
1097
1100
|
clear(): void;
|
|
1098
1101
|
};
|
|
1099
1102
|
|
|
@@ -1104,9 +1107,9 @@ declare class DefaultReporter extends BaseReporter {
|
|
|
1104
1107
|
onPathsCollected(paths?: string[]): void;
|
|
1105
1108
|
onTestRemoved(trigger?: string): Promise<void>;
|
|
1106
1109
|
onCollected(): void;
|
|
1107
|
-
onFinished(files?: _vitest_runner.File[], errors?: unknown[]):
|
|
1110
|
+
onFinished(files?: _vitest_runner.File[], errors?: unknown[]): void;
|
|
1108
1111
|
onWatcherStart(files?: _vitest_runner.File[], errors?: unknown[]): Promise<void>;
|
|
1109
|
-
stopListRender():
|
|
1112
|
+
stopListRender(): void;
|
|
1110
1113
|
onWatcherRerun(files: string[], trigger?: string): Promise<void>;
|
|
1111
1114
|
onUserConsoleLog(log: UserConsoleLog): void;
|
|
1112
1115
|
}
|
|
@@ -1143,7 +1146,7 @@ interface JsonAssertionResult {
|
|
|
1143
1146
|
status: Status;
|
|
1144
1147
|
title: string;
|
|
1145
1148
|
duration?: Milliseconds | null;
|
|
1146
|
-
failureMessages: Array<string
|
|
1149
|
+
failureMessages: Array<string> | null;
|
|
1147
1150
|
location?: Callsite | null;
|
|
1148
1151
|
}
|
|
1149
1152
|
interface JsonTestResult {
|
|
@@ -1167,6 +1170,7 @@ interface JsonTestResults {
|
|
|
1167
1170
|
startTime: number;
|
|
1168
1171
|
success: boolean;
|
|
1169
1172
|
testResults: Array<JsonTestResult>;
|
|
1173
|
+
snapshot: SnapshotSummary;
|
|
1170
1174
|
}
|
|
1171
1175
|
interface JsonOptions$1 {
|
|
1172
1176
|
outputFile?: string;
|
|
@@ -1185,7 +1189,6 @@ declare class JsonReporter implements Reporter {
|
|
|
1185
1189
|
* @param report
|
|
1186
1190
|
*/
|
|
1187
1191
|
writeReport(report: string): Promise<void>;
|
|
1188
|
-
protected getFailureLocation(test: Task): Promise<Callsite | undefined>;
|
|
1189
1192
|
}
|
|
1190
1193
|
|
|
1191
1194
|
declare class VerboseReporter extends DefaultReporter {
|
|
@@ -1214,7 +1217,7 @@ declare class TapReporter implements Reporter {
|
|
|
1214
1217
|
static getComment(task: Task): string;
|
|
1215
1218
|
private logErrorDetails;
|
|
1216
1219
|
protected logTasks(tasks: Task[]): void;
|
|
1217
|
-
onFinished(files?: _vitest_runner.File[]):
|
|
1220
|
+
onFinished(files?: _vitest_runner.File[]): void;
|
|
1218
1221
|
}
|
|
1219
1222
|
|
|
1220
1223
|
interface JUnitOptions {
|
|
@@ -1250,7 +1253,7 @@ declare class JUnitReporter implements Reporter {
|
|
|
1250
1253
|
|
|
1251
1254
|
declare class TapFlatReporter extends TapReporter {
|
|
1252
1255
|
onInit(ctx: Vitest): void;
|
|
1253
|
-
onFinished(files?: _vitest_runner.File[]):
|
|
1256
|
+
onFinished(files?: _vitest_runner.File[]): void;
|
|
1254
1257
|
}
|
|
1255
1258
|
|
|
1256
1259
|
declare class HangingProcessReporter implements Reporter {
|
|
@@ -1262,7 +1265,7 @@ declare class HangingProcessReporter implements Reporter {
|
|
|
1262
1265
|
declare class GithubActionsReporter implements Reporter {
|
|
1263
1266
|
ctx: Vitest;
|
|
1264
1267
|
onInit(ctx: Vitest): void;
|
|
1265
|
-
onFinished(files?: File[], errors?: unknown[]):
|
|
1268
|
+
onFinished(files?: File[], errors?: unknown[]): void;
|
|
1266
1269
|
}
|
|
1267
1270
|
|
|
1268
1271
|
interface TableRendererOptions {
|
|
@@ -1275,19 +1278,19 @@ interface TableRendererOptions {
|
|
|
1275
1278
|
declare function createTableRenderer(_tasks: Task[], options: TableRendererOptions): {
|
|
1276
1279
|
start(): any;
|
|
1277
1280
|
update(_tasks: Task[]): any;
|
|
1278
|
-
stop():
|
|
1281
|
+
stop(): any;
|
|
1279
1282
|
clear(): void;
|
|
1280
1283
|
};
|
|
1281
1284
|
|
|
1282
1285
|
declare class TableReporter extends BaseReporter {
|
|
1283
1286
|
renderer?: ReturnType<typeof createTableRenderer>;
|
|
1284
1287
|
rendererOptions: TableRendererOptions;
|
|
1285
|
-
onTestRemoved(trigger?: string):
|
|
1288
|
+
onTestRemoved(trigger?: string): void;
|
|
1286
1289
|
onCollected(): Promise<void>;
|
|
1287
1290
|
onTaskUpdate(packs: TaskResultPack[]): void;
|
|
1288
1291
|
onFinished(files?: File[], errors?: unknown[]): Promise<void>;
|
|
1289
1292
|
onWatcherStart(): Promise<void>;
|
|
1290
|
-
stopListRender():
|
|
1293
|
+
stopListRender(): void;
|
|
1291
1294
|
onWatcherRerun(files: string[], trigger?: string): Promise<void>;
|
|
1292
1295
|
onUserConsoleLog(log: UserConsoleLog): void;
|
|
1293
1296
|
}
|
|
@@ -1467,7 +1470,7 @@ type BirpcFn<T> = PromisifyFn<T> & {
|
|
|
1467
1470
|
/**
|
|
1468
1471
|
* Send event without asking for response
|
|
1469
1472
|
*/
|
|
1470
|
-
asEvent(...args: ArgumentsType<T>)
|
|
1473
|
+
asEvent: (...args: ArgumentsType<T>) => void;
|
|
1471
1474
|
};
|
|
1472
1475
|
type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
|
|
1473
1476
|
[K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
|
|
@@ -1475,7 +1478,7 @@ type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
|
|
|
1475
1478
|
$functions: LocalFunctions;
|
|
1476
1479
|
};
|
|
1477
1480
|
|
|
1478
|
-
type MockFactoryWithHelper = (importOriginal: <T
|
|
1481
|
+
type MockFactoryWithHelper<M = unknown> = (importOriginal: <T extends M>() => Promise<T>) => any;
|
|
1479
1482
|
type MockFactory = () => any;
|
|
1480
1483
|
type MockMap = Map<string, Record<string, string | null | MockFactory>>;
|
|
1481
1484
|
interface PendingSuiteMock {
|
|
@@ -1936,7 +1939,7 @@ declare const configDefaults: Readonly<{
|
|
|
1936
1939
|
watch: boolean;
|
|
1937
1940
|
globals: false;
|
|
1938
1941
|
environment: "node";
|
|
1939
|
-
pool: "
|
|
1942
|
+
pool: "forks";
|
|
1940
1943
|
clearMocks: false;
|
|
1941
1944
|
restoreMocks: false;
|
|
1942
1945
|
mockReset: false;
|
|
@@ -1945,7 +1948,6 @@ declare const configDefaults: Readonly<{
|
|
|
1945
1948
|
testTimeout: number;
|
|
1946
1949
|
hookTimeout: number;
|
|
1947
1950
|
teardownTimeout: number;
|
|
1948
|
-
watchExclude: string[];
|
|
1949
1951
|
forceRerunTriggers: string[];
|
|
1950
1952
|
update: false;
|
|
1951
1953
|
reporters: never[];
|
|
@@ -2370,11 +2372,6 @@ interface InlineConfig {
|
|
|
2370
2372
|
* Path to global setup files
|
|
2371
2373
|
*/
|
|
2372
2374
|
globalSetup?: string | string[];
|
|
2373
|
-
/**
|
|
2374
|
-
* Glob pattern of file paths to be ignore from triggering watch rerun
|
|
2375
|
-
* @deprecated Use server.watch.ignored instead
|
|
2376
|
-
*/
|
|
2377
|
-
watchExclude?: string[];
|
|
2378
2375
|
/**
|
|
2379
2376
|
* Glob patter of file paths that will trigger the whole suite rerun
|
|
2380
2377
|
*
|
|
@@ -2783,7 +2780,7 @@ interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters'
|
|
|
2783
2780
|
};
|
|
2784
2781
|
runner?: string;
|
|
2785
2782
|
}
|
|
2786
|
-
type ProjectConfig = Omit<UserConfig, 'sequencer' | 'shard' | 'watch' | 'run' | 'cache' | 'update' | 'reporters' | 'outputFile' | 'poolOptions' | 'teardownTimeout' | 'silent' | '
|
|
2783
|
+
type ProjectConfig = Omit<UserConfig, 'sequencer' | 'shard' | 'watch' | 'run' | 'cache' | 'update' | 'reporters' | 'outputFile' | 'poolOptions' | 'teardownTimeout' | 'silent' | 'forceRerunTriggers' | 'testNamePattern' | 'ui' | 'open' | 'uiBase' | 'snapshotFormat' | 'resolveSnapshotPath' | 'passWithNoTests' | 'onConsoleLog' | 'onStackTrace' | 'dangerouslyIgnoreUnhandledErrors' | 'slowTestThreshold' | 'inspect' | 'inspectBrk' | 'deps' | 'coverage'> & {
|
|
2787
2784
|
sequencer?: Omit<SequenceOptions, 'sequencer' | 'seed'>;
|
|
2788
2785
|
deps?: Omit<DepsOptions, 'moduleDirectories'>;
|
|
2789
2786
|
poolOptions?: {
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DFgqsvtL.js';
|
|
2
2
|
import 'vite';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite-node';
|
package/dist/reporters.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.
|
|
1
|
+
export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.CRxYS9H3.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'picocolors';
|
|
4
4
|
import 'pathe';
|
|
5
|
-
import './vendor/tasks.
|
|
5
|
+
import './vendor/tasks.WC7M-K-v.js';
|
|
6
6
|
import '@vitest/runner/utils';
|
|
7
7
|
import '@vitest/utils';
|
|
8
|
-
import './vendor/env.
|
|
8
|
+
import './vendor/env.bmJgw1qP.js';
|
|
9
9
|
import 'std-env';
|
|
10
|
-
import './vendor/utils.
|
|
11
|
-
import './vendor/base.
|
|
10
|
+
import './vendor/utils.D5gGkwyH.js';
|
|
11
|
+
import './vendor/base._gnK9Slw.js';
|
|
12
12
|
import 'node:perf_hooks';
|
|
13
|
-
import './vendor/index.
|
|
14
|
-
import './vendor/global.
|
|
15
|
-
import './chunks/runtime-console.
|
|
13
|
+
import './vendor/index._7XLd8Kd.js';
|
|
14
|
+
import './vendor/global.7bFbnyXl.js';
|
|
15
|
+
import './chunks/runtime-console.CUES-L8X.js';
|
|
16
16
|
import 'node:stream';
|
|
17
17
|
import 'node:console';
|
|
18
18
|
import 'node:path';
|
|
19
|
-
import './vendor/date.
|
|
19
|
+
import './vendor/date.BKM1wewY.js';
|
|
20
20
|
import '@vitest/utils/source-map';
|
|
21
21
|
import 'node:os';
|
|
22
22
|
import 'node:fs/promises';
|
|
@@ -26,9 +26,8 @@ import 'path';
|
|
|
26
26
|
import 'fs';
|
|
27
27
|
import 'module';
|
|
28
28
|
import 'vite';
|
|
29
|
-
import 'acorn-walk';
|
|
30
29
|
import 'node:process';
|
|
31
|
-
import './vendor/_commonjsHelpers.
|
|
30
|
+
import './vendor/_commonjsHelpers.BFTU3MAI.js';
|
|
32
31
|
import 'assert';
|
|
33
32
|
import 'events';
|
|
34
33
|
import 'node:crypto';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VitestRunner, VitestRunnerImportSource, Suite, Task, CancelReason, Test, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig } from './reporters-
|
|
2
|
+
import { R as ResolvedConfig } from './reporters-DFgqsvtL.js';
|
|
3
3
|
import * as tinybench from 'tinybench';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import 'vite-node';
|
package/dist/runners.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
|
|
2
|
-
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.
|
|
2
|
+
import { g as getSnapshotClient, c as createExpect, v as vi } from './vendor/vi.ClD3hi7L.js';
|
|
3
3
|
import 'pathe';
|
|
4
|
-
import { g as
|
|
4
|
+
import { g as getTestName } from './vendor/tasks.WC7M-K-v.js';
|
|
5
5
|
import { createDefer, getSafeTimers } from '@vitest/utils';
|
|
6
|
-
import { g as getWorkerState } from './vendor/global.
|
|
7
|
-
import './vendor/env.
|
|
8
|
-
import { r as rpc } from './vendor/rpc.
|
|
6
|
+
import { g as getWorkerState } from './vendor/global.7bFbnyXl.js';
|
|
7
|
+
import './vendor/env.bmJgw1qP.js';
|
|
8
|
+
import { r as rpc } from './vendor/rpc.DRDE9Pu1.js';
|
|
9
9
|
import { getTests, getNames } from '@vitest/runner/utils';
|
|
10
10
|
import { updateTask } from '@vitest/runner';
|
|
11
|
-
import { a as getBenchOptions, g as getBenchFn } from './vendor/benchmark.
|
|
11
|
+
import { a as getBenchOptions, g as getBenchFn } from './vendor/benchmark.BNLebNi5.js';
|
|
12
12
|
import 'chai';
|
|
13
|
-
import './vendor/_commonjsHelpers.
|
|
13
|
+
import './vendor/_commonjsHelpers.BFTU3MAI.js';
|
|
14
14
|
import '@vitest/snapshot';
|
|
15
15
|
import '@vitest/utils/error';
|
|
16
16
|
import '@vitest/utils/source-map';
|
|
17
|
-
import './vendor/base.
|
|
18
|
-
import './vendor/date.
|
|
17
|
+
import './vendor/base._gnK9Slw.js';
|
|
18
|
+
import './vendor/date.BKM1wewY.js';
|
|
19
19
|
import '@vitest/spy';
|
|
20
20
|
import 'std-env';
|
|
21
|
-
import './vendor/index.
|
|
22
|
-
import './vendor/index.
|
|
21
|
+
import './vendor/index.BpSiYbpB.js';
|
|
22
|
+
import './vendor/index._7XLd8Kd.js';
|
|
23
23
|
|
|
24
24
|
class VitestTestRunner {
|
|
25
25
|
constructor(config) {
|
|
@@ -43,7 +43,7 @@ class VitestTestRunner {
|
|
|
43
43
|
async onAfterRunSuite(suite) {
|
|
44
44
|
if (this.config.logHeapUsage && typeof process !== "undefined")
|
|
45
45
|
suite.result.heap = process.memoryUsage().heapUsed;
|
|
46
|
-
if (suite.mode !== "skip" &&
|
|
46
|
+
if (suite.mode !== "skip" && "filepath" in suite) {
|
|
47
47
|
for (const test of getTests(suite)) {
|
|
48
48
|
if (test.mode === "skip") {
|
|
49
49
|
const name = getNames(test).slice(1).join(" > ");
|
|
@@ -54,13 +54,13 @@ class VitestTestRunner {
|
|
|
54
54
|
if (result)
|
|
55
55
|
await rpc().snapshotSaved(result);
|
|
56
56
|
}
|
|
57
|
-
this.workerState.current = suite.suite;
|
|
57
|
+
this.workerState.current = suite.suite || suite.file;
|
|
58
58
|
}
|
|
59
59
|
onAfterRunTask(test) {
|
|
60
60
|
this.snapshotClient.clearTest();
|
|
61
61
|
if (this.config.logHeapUsage && typeof process !== "undefined")
|
|
62
62
|
test.result.heap = process.memoryUsage().heapUsed;
|
|
63
|
-
this.workerState.current = test.suite;
|
|
63
|
+
this.workerState.current = test.suite || test.file;
|
|
64
64
|
}
|
|
65
65
|
onCancel(_reason) {
|
|
66
66
|
this.cancelRun = true;
|
|
@@ -76,21 +76,20 @@ class VitestTestRunner {
|
|
|
76
76
|
async onBeforeRunSuite(suite) {
|
|
77
77
|
if (this.cancelRun)
|
|
78
78
|
suite.mode = "skip";
|
|
79
|
-
if (suite.mode !== "skip" &&
|
|
79
|
+
if (suite.mode !== "skip" && "filepath" in suite) {
|
|
80
80
|
await this.snapshotClient.startCurrentRun(suite.filepath, "__default_name_", this.workerState.config.snapshotOptions);
|
|
81
81
|
}
|
|
82
82
|
this.workerState.current = suite;
|
|
83
83
|
}
|
|
84
84
|
onBeforeTryTask(test) {
|
|
85
|
-
var _a, _b;
|
|
86
85
|
setState({
|
|
87
86
|
assertionCalls: 0,
|
|
88
87
|
isExpectingAssertions: false,
|
|
89
88
|
isExpectingAssertionsError: null,
|
|
90
89
|
expectedAssertionsNumber: null,
|
|
91
90
|
expectedAssertionsNumberErrorGen: null,
|
|
92
|
-
testPath:
|
|
93
|
-
currentTestName:
|
|
91
|
+
testPath: test.file.filepath,
|
|
92
|
+
currentTestName: getTestName(test),
|
|
94
93
|
snapshotState: this.snapshotClient.snapshotState
|
|
95
94
|
}, globalThis[GLOBAL_EXPECT]);
|
|
96
95
|
}
|
package/dist/snapshot.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './chunks/environments-node.
|
|
1
|
+
export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './chunks/environments-node.39w4gmlF.js';
|
|
2
2
|
import '@vitest/snapshot/environment';
|
|
3
3
|
import 'pathe';
|
|
4
4
|
import '@vitest/runner/utils';
|
|
5
5
|
import '@vitest/utils';
|
|
6
|
-
import './vendor/global.
|
|
7
|
-
import './vendor/env.
|
|
6
|
+
import './vendor/global.7bFbnyXl.js';
|
|
7
|
+
import './vendor/env.bmJgw1qP.js';
|
|
8
8
|
import 'std-env';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Custom } from '@vitest/runner';
|
|
2
2
|
import '@vitest/runner/utils';
|
|
3
|
-
import { ap as BenchFunction, aq as BenchmarkAPI } from './reporters-
|
|
3
|
+
import { ap as BenchFunction, aq as BenchmarkAPI } from './reporters-DFgqsvtL.js';
|
|
4
4
|
import { Options } from 'tinybench';
|
|
5
5
|
|
|
6
6
|
declare function getBenchOptions(key: Custom): Options;
|
package/dist/suite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
|
|
2
2
|
export { createChainable } from '@vitest/runner/utils';
|
|
3
|
-
export { g as getBenchFn, a as getBenchOptions } from './suite-
|
|
4
|
-
import './reporters-
|
|
3
|
+
export { g as getBenchFn, a as getBenchOptions } from './suite-C_sqQjdz.js';
|
|
4
|
+
import './reporters-DFgqsvtL.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import 'vite-node';
|
|
7
7
|
import '@vitest/snapshot';
|
package/dist/suite.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
|
|
2
2
|
export { createChainable } from '@vitest/runner/utils';
|
|
3
|
-
export { g as getBenchFn, a as getBenchOptions } from './vendor/benchmark.
|
|
3
|
+
export { g as getBenchFn, a as getBenchOptions } from './vendor/benchmark.BNLebNi5.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
|
-
import './vendor/index.
|
|
5
|
+
import './vendor/index._7XLd8Kd.js';
|
|
6
6
|
import 'pathe';
|
|
7
|
-
import './vendor/global.
|
|
8
|
-
import './vendor/env.
|
|
7
|
+
import './vendor/global.7bFbnyXl.js';
|
|
8
|
+
import './vendor/env.bmJgw1qP.js';
|
|
9
9
|
import 'std-env';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleCacheMap } from 'vite-node/client';
|
|
2
|
-
import { p as provideWorkerState } from './global.
|
|
3
|
-
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.
|
|
2
|
+
import { p as provideWorkerState } from './global.7bFbnyXl.js';
|
|
3
|
+
import { g as getDefaultRequestStubs, s as startVitestExecutor } from './execute.CLLNVNnK.js';
|
|
4
4
|
|
|
5
5
|
let _viteNode;
|
|
6
6
|
const moduleCache = new ModuleCacheMap();
|
|
@@ -25,7 +25,7 @@ async function runBaseTests(state) {
|
|
|
25
25
|
ctx.files.forEach((i) => state.moduleCache.delete(i));
|
|
26
26
|
const [executor, { run }] = await Promise.all([
|
|
27
27
|
startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
|
|
28
|
-
import('../chunks/runtime-runBaseTests.
|
|
28
|
+
import('../chunks/runtime-runBaseTests._dXkRAZc.js')
|
|
29
29
|
]);
|
|
30
30
|
await run(
|
|
31
31
|
ctx.files,
|
|
@@ -111,8 +111,7 @@ const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwy
|
|
|
111
111
|
function nanoid(size = 21) {
|
|
112
112
|
let id = "";
|
|
113
113
|
let i = size;
|
|
114
|
-
while (i--)
|
|
115
|
-
id += urlAlphabet[Math.random() * 64 | 0];
|
|
114
|
+
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
116
115
|
return id;
|
|
117
116
|
}
|
|
118
117
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrentSuite } from '@vitest/runner';
|
|
2
2
|
import { createChainable } from '@vitest/runner/utils';
|
|
3
3
|
import { noop } from '@vitest/utils';
|
|
4
|
-
import { i as isRunningInBenchmark } from './index.
|
|
4
|
+
import { i as isRunningInBenchmark } from './index._7XLd8Kd.js';
|
|
5
5
|
|
|
6
6
|
const benchFns = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
const benchOptsMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { normalize } from 'pathe';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import c from 'picocolors';
|
|
4
|
-
import { t as toArray } from './base.
|
|
5
|
-
import { d as defaultPort, a as defaultBrowserPort } from './constants.
|
|
4
|
+
import { t as toArray } from './base._gnK9Slw.js';
|
|
5
|
+
import { d as defaultPort, a as defaultBrowserPort } from './constants.5SOfHUj0.js';
|
|
6
6
|
|
|
7
7
|
function toArr(any) {
|
|
8
8
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -618,7 +618,7 @@ class CAC extends EventEmitter {
|
|
|
618
618
|
|
|
619
619
|
const cac = (name = "") => new CAC(name);
|
|
620
620
|
|
|
621
|
-
var version = "
|
|
621
|
+
var version = "2.0.0-beta.2";
|
|
622
622
|
|
|
623
623
|
const apiConfig = (port) => ({
|
|
624
624
|
port: {
|
|
@@ -1212,7 +1212,6 @@ const cliOptionsConfig = {
|
|
|
1212
1212
|
snapshotFormat: null,
|
|
1213
1213
|
snapshotSerializers: null,
|
|
1214
1214
|
includeSource: null,
|
|
1215
|
-
watchExclude: null,
|
|
1216
1215
|
alias: null,
|
|
1217
1216
|
env: null,
|
|
1218
1217
|
environmentMatchGlobs: null,
|
|
@@ -1411,13 +1410,13 @@ async function start(mode, cliFilters, options) {
|
|
|
1411
1410
|
} catch {
|
|
1412
1411
|
}
|
|
1413
1412
|
try {
|
|
1414
|
-
const { startVitest } = await import('./cli-api.
|
|
1413
|
+
const { startVitest } = await import('./cli-api.B2QW76dQ.js').then(function (n) { return n.d; });
|
|
1415
1414
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(options));
|
|
1416
1415
|
if (!(ctx == null ? void 0 : ctx.shouldKeepServer()))
|
|
1417
1416
|
await (ctx == null ? void 0 : ctx.exit());
|
|
1418
1417
|
return ctx;
|
|
1419
1418
|
} catch (e) {
|
|
1420
|
-
const { divider } = await import('./utils.
|
|
1419
|
+
const { divider } = await import('./utils.D5gGkwyH.js').then(function (n) { return n.u; });
|
|
1421
1420
|
console.error(`
|
|
1422
1421
|
${c.red(divider(c.bold(c.inverse(" Unhandled Error "))))}`);
|
|
1423
1422
|
console.error(e);
|