vitest 5.0.5 → 5.1.0-beta.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/LICENSE.md +1 -1
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +3 -3
- package/dist/chunks/{base.CzXt2BO_.js → base.PJyN9N0u.js} +12 -11
- package/dist/chunks/{browser.d.FGQ9_rK6.d.ts → browser.d.D7a15z82.d.ts} +4 -3
- package/dist/chunks/{cac.CLrZKo1g.js → cac.Ccf5Je_F.js} +21 -9
- package/dist/chunks/{cli-api.De07GUeT.js → cli-api.DE22LIzq.js} +3091 -2891
- package/dist/chunks/{config.d.QBNYCgFU.d.ts → config.d.BgktgHfG.d.ts} +134 -93
- package/dist/chunks/{console.DtI4yxfN.js → console.DrMPSuFo.js} +5 -2
- package/dist/chunks/{constants.-juJ8b_4.js → constants.DLYM6cZY.js} +1 -1
- package/dist/chunks/{creator.C5g4egeG.js → creator.BQ3onxbh.js} +5 -5
- package/dist/chunks/{doctor.BK86Cncq.js → doctor.CPlMs7-y.js} +1 -1
- package/dist/chunks/{environment.d.BY56MoGs.d.ts → environment.d.CbTLsZSj.d.ts} +1 -1
- package/dist/chunks/{globals.CXEE6_2C.js → globals.TipXUFcZ.js} +5 -5
- package/dist/chunks/{index.CoUIxZd4.js → index.B03wg4V0.js} +3 -3
- package/dist/chunks/{index.CK-t0WMg.js → index.BFXLpwll.js} +114 -37
- package/dist/chunks/{index.aTZaPVhf.js → index.BXttT2gP.js} +37 -18
- package/dist/chunks/{index.1TqnEahn.js → index.D14IAvnE.js} +43 -17
- package/dist/chunks/{init-forks.CRxIPOJR.js → init-forks.BL1E3__4.js} +1 -1
- package/dist/chunks/{init-threads.Dv3kwST_.js → init-threads.CYXAGzKQ.js} +1 -1
- package/dist/chunks/{init.PvxYpuCm.js → init.DVorxUyL.js} +3 -3
- package/dist/chunks/{nativeModuleMocker.BxrHJNAF.js → nativeModuleMocker.3uBcOd84.js} +2 -1
- package/dist/chunks/{plugin.d.C8mmycim.d.ts → plugin.d.olEn8IL9.d.ts} +108 -20
- package/dist/chunks/{rpc.DpkUyY1N.js → rpc.BV0XpJ5q.js} +1 -1
- package/dist/chunks/{rpc.d.Cft1biqy.d.ts → rpc.d.DGFP7vWr.d.ts} +1 -1
- package/dist/chunks/{run.BPv-BBRv.js → run.BfrMbGVD.js} +22 -4
- package/dist/chunks/{setup-common.HGAqWOnX.js → setup-common.llxJkJaD.js} +2 -2
- package/dist/chunks/{source-map.DdKI5IHB.js → source-map.BjWcsIL9.js} +32 -24
- package/dist/chunks/{source-map.d.kzFtk_dj.d.ts → source-map.d.C5A_Tr6V.d.ts} +2 -1
- package/dist/chunks/{task-utils.d.PFh2BV6Q.d.ts → task-utils.d.BUh7ylUT.d.ts} +2 -1
- package/dist/chunks/{vm.FGl2rw_t.js → vm.Cwj01UFE.js} +16 -5
- package/dist/chunks/{worker.d.BH-r1bPu.d.ts → worker.d.gsA26mmR.d.ts} +3 -3
- package/dist/cli.js +2 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.ts +11 -11
- package/dist/config.js +1 -1
- package/dist/index.d.ts +14 -13
- package/dist/index.js +4 -4
- package/dist/module-evaluator.d.ts +3 -2
- package/dist/node.d.ts +29 -11
- package/dist/node.js +7 -7
- package/dist/runtime.d.ts +4 -4
- package/dist/runtime.js +3 -2
- package/dist/task-utils.js +3 -1
- package/dist/worker.d.ts +4 -4
- package/dist/worker.js +9 -9
- package/dist/workers/forks.js +10 -10
- package/dist/workers/runVmTests.js +9 -8
- package/dist/workers/threads.js +10 -10
- package/dist/workers/vmForks.js +9 -8
- package/dist/workers/vmThreads.js +9 -8
- package/package.json +14 -14
package/LICENSE.md
CHANGED
package/dist/browser.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as FileSpecification, c as SerializedDiffOptions } from './chunks/config.d.
|
|
1
|
+
import { F as FileSpecification, c as SerializedDiffOptions } from './chunks/config.d.BgktgHfG.js';
|
|
2
2
|
import { SerializedCoverageConfig, RunnerTestFile as File, SerializedConfig, DiffOptions, TestError } from './index.js';
|
|
3
3
|
import { VitestRunner } from './runtime.js';
|
|
4
|
-
export { P as ParsedStack, _ as SpyModule, d as StringifyOptions, f as format, i as inspect, s as stringify } from './chunks/config.d.
|
|
5
|
-
import { R as RuntimeCoverageModuleLoader } from './chunks/source-map.d.
|
|
6
|
-
export { D as DecodedMap, g as getOriginalPosition } from './chunks/source-map.d.
|
|
4
|
+
export { P as ParsedStack, _ as SpyModule, d as StringifyOptions, f as format, i as inspect, s as stringify } from './chunks/config.d.BgktgHfG.js';
|
|
5
|
+
import { R as RuntimeCoverageModuleLoader } from './chunks/source-map.d.C5A_Tr6V.js';
|
|
6
|
+
export { D as DecodedMap, g as getOriginalPosition } from './chunks/source-map.d.C5A_Tr6V.js';
|
|
7
7
|
import 'vitest/optional-runtime-types.js';
|
|
8
8
|
import 'tinybench';
|
|
9
9
|
|
package/dist/browser.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.-bm5IxnW.js';
|
|
2
|
-
export { p as collectTests, a as processError, s as startTests } from './chunks/run.
|
|
3
|
-
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as setupEnv } from './chunks/setup-common.
|
|
2
|
+
export { p as collectTests, a as processError, s as startTests } from './chunks/run.BfrMbGVD.js';
|
|
3
|
+
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as setupEnv } from './chunks/setup-common.llxJkJaD.js';
|
|
4
4
|
export { s as SpyModule } from './chunks/spy.DDMXghXv.js';
|
|
5
5
|
export { f as format, i as inspect, s as stringify } from './chunks/display.BlTmubjj.js';
|
|
6
6
|
export { g as getType } from './chunks/pathe.M-eThtNZ.Ba-7h1rE.js';
|
|
7
|
-
export { D as DecodedMap, g as getOriginalPosition, a as getSafeTimers, s as setSafeTimers } from './chunks/source-map.
|
|
7
|
+
export { D as DecodedMap, g as getOriginalPosition, a as getSafeTimers, s as setSafeTimers } from './chunks/source-map.BjWcsIL9.js';
|
|
8
8
|
import './chunks/coverage.cTDc4uSS.js';
|
|
9
9
|
import './chunks/index.D0heQG4v.js';
|
|
10
10
|
import './chunks/tinyrainbow.Do8I1XRG.js';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { runInThisContext } from 'node:vm';
|
|
2
2
|
import { s as spyModule } from './spy.DDMXghXv.js';
|
|
3
|
-
import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.
|
|
4
|
-
import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.
|
|
3
|
+
import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.B03wg4V0.js';
|
|
4
|
+
import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.DVorxUyL.js';
|
|
5
5
|
import { n as nativeImports, g as getEvaluatedImports, c as collectDependencies } from './module-dependencies.CwNPkcV4.js';
|
|
6
6
|
import { Traces } from '../traces.js';
|
|
7
|
-
import { V as VitestEvaluatedModules } from './rpc.
|
|
8
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './index.
|
|
7
|
+
import { V as VitestEvaluatedModules } from './rpc.BV0XpJ5q.js';
|
|
8
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './index.BFXLpwll.js';
|
|
9
9
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
10
10
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './coverage.-bm5IxnW.js';
|
|
11
|
-
import { i as index, g as globalExpect, v as vi } from './index.
|
|
11
|
+
import { i as index, g as globalExpect, v as vi } from './index.BXttT2gP.js';
|
|
12
12
|
import { c as closeInspector } from './inspector.CvyFGlXm.js';
|
|
13
|
-
import { s as startTests, p as publicCollect } from './run.
|
|
14
|
-
import { createRequire } from 'node:module';
|
|
13
|
+
import { s as startTests, p as publicCollect } from './run.BfrMbGVD.js';
|
|
14
|
+
import { createRequire, syncBuiltinESMExports } from 'node:module';
|
|
15
15
|
import timers from 'node:timers';
|
|
16
16
|
import timersPromises from 'node:timers/promises';
|
|
17
17
|
import util from 'node:util';
|
|
18
18
|
import { K as KNOWN_ASSET_TYPES } from './pathe.M-eThtNZ.Ba-7h1rE.js';
|
|
19
|
-
import { s as setupCommonEnv, b as setupEnv } from './setup-common.
|
|
19
|
+
import { s as setupCommonEnv, b as setupEnv } from './setup-common.llxJkJaD.js';
|
|
20
20
|
import { g as getWorkerState, r as resetModules, p as provideWorkerState, a as getSafeWorkerState } from './utils.DYj33du9.js';
|
|
21
21
|
|
|
22
22
|
// this should only be used in Node
|
|
@@ -47,7 +47,8 @@ async function setupGlobalEnv(config, environment) {
|
|
|
47
47
|
globalThis.__vitest_required__ = {
|
|
48
48
|
util,
|
|
49
49
|
timers,
|
|
50
|
-
timersPromises
|
|
50
|
+
timersPromises,
|
|
51
|
+
syncBuiltinESMExports
|
|
51
52
|
};
|
|
52
53
|
if (!config.disableConsoleIntercept) await setupConsoleLogSpy();
|
|
53
54
|
}
|
|
@@ -58,7 +59,7 @@ function resolveAsset(mod, url) {
|
|
|
58
59
|
mod.exports = url;
|
|
59
60
|
}
|
|
60
61
|
async function setupConsoleLogSpy() {
|
|
61
|
-
const { createCustomConsole } = await import('./console.
|
|
62
|
+
const { createCustomConsole } = await import('./console.DrMPSuFo.js');
|
|
62
63
|
globalThis.console = createCustomConsole();
|
|
63
64
|
}
|
|
64
65
|
|
|
@@ -127,7 +128,7 @@ async function startModuleRunner(options) {
|
|
|
127
128
|
let mocker;
|
|
128
129
|
if (options.state.config.experimental.nodeLoader !== false) {
|
|
129
130
|
// this additionally imports acorn/magic-string
|
|
130
|
-
const { NativeModuleMocker } = await import('./nativeModuleMocker.
|
|
131
|
+
const { NativeModuleMocker } = await import('./nativeModuleMocker.3uBcOd84.js');
|
|
131
132
|
mocker = new NativeModuleMocker({
|
|
132
133
|
async resolveId(id, importer) {
|
|
133
134
|
// TODO: use import.meta.resolve instead
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FileSpecification } from './config.d.
|
|
2
|
-
import { O as OTELCarrier } from './rpc.d.
|
|
3
|
-
import { T as TestExecutionMethod } from './worker.d.
|
|
1
|
+
import { F as FileSpecification } from './config.d.BgktgHfG.js';
|
|
2
|
+
import { O as OTELCarrier } from './rpc.d.DGFP7vWr.js';
|
|
3
|
+
import { T as TestExecutionMethod } from './worker.d.gsA26mmR.js';
|
|
4
4
|
|
|
5
5
|
interface ModuleDefinitionLocation {
|
|
6
6
|
line: number;
|
|
@@ -48,6 +48,7 @@ type SerializedTestSpecification = [project: {
|
|
|
48
48
|
pool: string;
|
|
49
49
|
testLines?: number[] | undefined;
|
|
50
50
|
testIds?: string[] | undefined;
|
|
51
|
+
testNames?: string[] | undefined;
|
|
51
52
|
testNamePattern?: RegExp | undefined;
|
|
52
53
|
testTagsFilter?: string[] | undefined;
|
|
53
54
|
}];
|
|
@@ -2,7 +2,7 @@ import { n as normalize, t as toArray } from './pathe.M-eThtNZ.Ba-7h1rE.js';
|
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { w } from './tinyrainbow.Do8I1XRG.js';
|
|
4
4
|
import { i as isForceColor } from './env.BKKtU2WC.js';
|
|
5
|
-
import { a as defaultPort, d as defaultBrowserPort } from './constants
|
|
5
|
+
import { a as defaultPort, d as defaultBrowserPort } from './constants.DLYM6cZY.js';
|
|
6
6
|
import assert from 'node:assert';
|
|
7
7
|
import { isAgent } from 'std-env';
|
|
8
8
|
|
|
@@ -620,7 +620,7 @@ class CAC extends EventEmitter {
|
|
|
620
620
|
|
|
621
621
|
const cac = (name = "") => new CAC(name);
|
|
622
622
|
|
|
623
|
-
var version = "5.0.
|
|
623
|
+
var version = "5.1.0-beta.1";
|
|
624
624
|
|
|
625
625
|
const apiConfig = (port) => ({
|
|
626
626
|
port: {
|
|
@@ -882,6 +882,7 @@ const cliOptionsConfig = {
|
|
|
882
882
|
},
|
|
883
883
|
dependencySourcemaps: { description: "Serve sourcemaps of dependencies to the browser in headless runs, used by devtools when debugging into `node_modules`. Reported test errors are source-mapped either way. Use `--browser.dependencySourcemaps=false` to speed up test runs if you don't step into dependency code (default: `true`)" },
|
|
884
884
|
trackUnhandledErrors: { description: "Control if Vitest catches uncaught exceptions so they can be reported (default: `true`)" },
|
|
885
|
+
importMapMocks: { description: "Serve module mocks through an import map instead of request interception. By default, enabled when the browser supports it" },
|
|
885
886
|
trace: {
|
|
886
887
|
description: "Enable trace view mode. Supported: \"on\", \"off\", \"on-first-retry\", \"on-all-retries\", \"retain-on-failure\".",
|
|
887
888
|
argument: "<mode>",
|
|
@@ -897,7 +898,8 @@ const cliOptionsConfig = {
|
|
|
897
898
|
subcommands: {
|
|
898
899
|
enabled: { description: "Enable Vitest trace-view collection for browser tests (default: `false`)" },
|
|
899
900
|
recordCanvas: { description: "Capture canvas pixels in trace-view snapshots (default: `false`)" },
|
|
900
|
-
inlineImages: { description: "Inline loaded image pixels in trace-view snapshots (default: `false`)" }
|
|
901
|
+
inlineImages: { description: "Inline loaded image pixels in trace-view snapshots (default: `false`)" },
|
|
902
|
+
ariaSnapshot: { description: "Capture the accessibility tree in trace-view snapshots (default: `true`)" }
|
|
901
903
|
}
|
|
902
904
|
},
|
|
903
905
|
orchestratorScripts: null,
|
|
@@ -961,6 +963,11 @@ const cliOptionsConfig = {
|
|
|
961
963
|
description: "Run tests that are affected by the changed files (default: `false`)",
|
|
962
964
|
argument: "[since]"
|
|
963
965
|
},
|
|
966
|
+
sinceLastRun: {
|
|
967
|
+
alias: "since-last-run",
|
|
968
|
+
description: "Run only the tests whose recorded dependencies were modified since the last run of the test, and the tests that failed in their last run. Enables `--changed`, `--experimental.recordDependencies` and the `mtime` provider (default: `false`)"
|
|
969
|
+
},
|
|
970
|
+
lastFailed: { description: "Run only the tests that failed in the last run (default: `false`)" },
|
|
964
971
|
sequence: {
|
|
965
972
|
description: "Options for how tests should be sorted",
|
|
966
973
|
argument: "<options>",
|
|
@@ -1272,7 +1279,7 @@ const cliOptionsConfig = {
|
|
|
1272
1279
|
nodeLoader: { description: "Controls whether Vitest will use Node.js Loader API to process in-source or mocked files. This has no effect if `viteModuleRunner` is enabled. Disabling this can increase performance. (default: `true`)" },
|
|
1273
1280
|
vcsProvider: {
|
|
1274
1281
|
argument: "<path>",
|
|
1275
|
-
description: "
|
|
1282
|
+
description: "Provider for detecting changed files: `git`, `mtime` (requires `experimental.recordDependencies`) or a path to a custom provider. (default: `git`)",
|
|
1276
1283
|
subcommands: null
|
|
1277
1284
|
},
|
|
1278
1285
|
recordDependencies: { description: "Record the modules loaded by every test file in the cache and use the records with `--changed` and `--related` instead of the static module graph. A test file without a record always runs. (default: `false`)" },
|
|
@@ -1346,7 +1353,12 @@ const collectCliOptionsConfig = {
|
|
|
1346
1353
|
changed: {
|
|
1347
1354
|
description: "Print only tests that are affected by the changed files (default: `false`)",
|
|
1348
1355
|
argument: "[since]"
|
|
1349
|
-
}
|
|
1356
|
+
},
|
|
1357
|
+
sinceLastRun: {
|
|
1358
|
+
alias: "since-last-run",
|
|
1359
|
+
description: "Print only the tests whose recorded dependencies were modified since the last run of the test, and the tests that failed in their last run (default: `false`)"
|
|
1360
|
+
},
|
|
1361
|
+
lastFailed: { description: "Print only the tests that failed in the last run (default: `false`)" }
|
|
1350
1362
|
};
|
|
1351
1363
|
|
|
1352
1364
|
const a={ShellCompDirectiveError:1,ShellCompDirectiveNoSpace:2,ShellCompDirectiveNoFileComp:4,ShellCompDirectiveFilterFileExt:8,ShellCompDirectiveFilterDirs:16,ShellCompDirectiveKeepOrder:32,ShellCompDirectiveDefault:0};var o$1=class o{name;variadic;command;handler;constructor(e,t,n,r=false){this.command=e,this.name=t,this.handler=n,this.variadic=r;}},s$1=class s{value;description;command;handler;alias;isBoolean;constructor(e,t,n,r,i,a){this.command=e,this.value=t,this.description=n,this.handler=r,this.alias=i,this.isBoolean=a;}},c$1=class c{value;description;options=new Map;arguments=new Map;parent;constructor(e,t){this.value=e,this.description=t;}option(e,t,n,r){let i,a,o;typeof n==`function`?(i=n,a=r,o=false):typeof n==`string`?(i=void 0,a=n,o=true):(i=void 0,a=void 0,o=true);let c=new s$1(this,e,t,i,a,o);return this.options.set(e,c),this}argument(e,t,n=false){let r=new o$1(this,e,t,n);return this.arguments.set(e,r),this}},l$1=class l extends c$1{commands=new Map;completions=[];directive=a.ShellCompDirectiveDefault;constructor(){super(``,``);}command(e,t){let n=new c$1(e,t);return this.commands.set(e,n),n}stripOptions(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r.startsWith(`-`)){n++;let t=false,i=this.findOption(this,r);if(i)t=i.isBoolean??false;else for(let[,e]of this.commands){let n=this.findOption(e,r);if(n){t=n.isBoolean??false;break}}!t&&n<e.length&&!e[n].startsWith(`-`)&&n++;}else t.push(r),n++;}return t}matchCommand(e){e=this.stripOptions(e);let t=[],n=[],r=null;for(let i=0;i<e.length;i++){let a=e[i];t.push(a);let o=this.commands.get(t.join(` `));if(o)r=o;else {n=e.slice(i,e.length);break}}return [r||this,n]}shouldCompleteFlags(e,t){if(t.startsWith(`-`))return true;if(e?.startsWith(`-`)){let t=this.findOption(this,e);if(!t){for(let[,n]of this.commands)if(t=this.findOption(n,e),t)break}return !(t&&t.isBoolean)}return false}shouldCompleteCommands(e){return !e.startsWith(`-`)}handleFlagCompletion(e,t,n,r){let i;if(n.includes(`=`)){let[e]=n.split(`=`);i=e;}else if(r?.startsWith(`-`)){let t=this.findOption(e,r);t&&!t.isBoolean&&(i=r);}if(i){let t=this.findOption(e,i);if(t?.handler){let n=[];t.handler.call(t,(e,t)=>n.push({value:e,description:t}),e.options),this.completions=n;}return}if(n.startsWith(`-`)){let t=n.startsWith(`-`)&&!n.startsWith(`--`),r=n.replace(/^-+/,``);for(let[i,a]of e.options)t&&a.alias&&`-${a.alias}`.startsWith(n)?this.completions.push({value:`-${a.alias}`,description:a.description}):!t&&i.startsWith(r)&&this.completions.push({value:`--${i}`,description:a.description});}}findOption(e,t){let n=e.options.get(t);if(n||(n=e.options.get(t.replace(/^-+/,``)),n))return n;for(let[n,r]of e.options)if(r.alias&&`-${r.alias}`===t)return r}handleCommandCompletion(e,t){let n=this.stripOptions(e);for(let[e,r]of this.commands){if(e===``)continue;let i=e.split(` `);i.slice(0,n.length).every((e,t)=>e===n[t])&&i[n.length]?.startsWith(t)&&this.completions.push({value:i[n.length],description:r.description});}}handlePositionalCompletion(e,t){let n=this.stripOptions(t),r=e.value.split(` `).length,i=Math.max(0,n.length-r),a=Array.from(e.arguments.entries());if(a.length>0){let t;if(i<a.length){let[e,n]=a[i];t=n;}else {let e=a[a.length-1][1];e.variadic&&(t=e);}if(t&&t.handler&&typeof t.handler==`function`){let n=[];t.handler.call(t,(e,t)=>n.push({value:e,description:t}),e.options),this.completions.push(...n);}}}complete(e){this.directive=a.ShellCompDirectiveNoFileComp;let t=new Set;this.completions.filter(e=>t.has(e.value)?false:(t.add(e.value),true)).filter(t=>{if(e.includes(`=`)){let[,n]=e.split(`=`);return t.value.startsWith(n)}return t.value.startsWith(e)}).forEach(e=>console.log(`${e.value}\t${e.description??``}`)),console.log(`:${this.directive}`);}parse(e){this.completions=[];let t=e[e.length-1]===``;t&&e.pop();let n=e[e.length-1]||``,r=e.slice(0,-1);t&&(n!==``&&r.push(n),n=``);let[i]=this.matchCommand(r),a=r[r.length-1];this.shouldCompleteFlags(a,n)?this.handleFlagCompletion(i,r,n,a):(this.shouldCompleteCommands(n)&&this.handleCommandCompletion(r,n),i&&i.arguments.size>0&&this.handlePositionalCompletion(i,r)),this.complete(n);}setup(a,o,s){switch(assert(s===`zsh`||s===`bash`||s===`fish`||s===`powershell`,`Unsupported shell`),s){case `zsh`:{let t$1=t(a,o);console.log(t$1);break}case `bash`:{let e=n(a,o);console.log(e);break}case `fish`:{let e=r(a,o);console.log(e);break}case `powershell`:{let e=i(a,o);console.log(e);break}}}};const u=new l$1;
|
|
@@ -2364,7 +2376,7 @@ function normalizeCliOptions(cliFilters, argv) {
|
|
|
2364
2376
|
}
|
|
2365
2377
|
async function start(cliFilters, options) {
|
|
2366
2378
|
try {
|
|
2367
|
-
const { startVitest } = await import('./cli-api.
|
|
2379
|
+
const { startVitest } = await import('./cli-api.DE22LIzq.js').then(function (n) { return n.j; });
|
|
2368
2380
|
const ctx = await startVitest(cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
2369
2381
|
if (!ctx.shouldKeepServer()) await ctx.exit();
|
|
2370
2382
|
} catch (e) {
|
|
@@ -2378,7 +2390,7 @@ async function start(cliFilters, options) {
|
|
|
2378
2390
|
}
|
|
2379
2391
|
async function doctorCommand(cliFilters, options) {
|
|
2380
2392
|
try {
|
|
2381
|
-
const { doctor } = await import('./doctor.
|
|
2393
|
+
const { doctor } = await import('./doctor.CPlMs7-y.js');
|
|
2382
2394
|
await doctor(cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
2383
2395
|
process.exit();
|
|
2384
2396
|
} catch (e) {
|
|
@@ -2395,12 +2407,12 @@ async function init(project) {
|
|
|
2395
2407
|
console.error(/* @__PURE__ */ new Error("Only the \"browser\" project is supported. Use \"vitest init browser\" to create a new project."));
|
|
2396
2408
|
process.exit(1);
|
|
2397
2409
|
}
|
|
2398
|
-
const { create } = await import('./creator.
|
|
2410
|
+
const { create } = await import('./creator.BQ3onxbh.js');
|
|
2399
2411
|
await create();
|
|
2400
2412
|
}
|
|
2401
2413
|
async function collect(cliFilters, options) {
|
|
2402
2414
|
try {
|
|
2403
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
2415
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.DE22LIzq.js').then(function (n) { return n.j; });
|
|
2404
2416
|
const ctx = await prepareVitest({
|
|
2405
2417
|
...normalizeCliOptions(cliFilters, options),
|
|
2406
2418
|
watch: false,
|