vitest 4.0.0-beta.10 → 4.0.0-beta.12
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 +85 -101
- package/dist/browser.d.ts +10 -6
- package/dist/browser.js +8 -5
- package/dist/chunks/{benchmark.CJUa-Hsa.js → benchmark.DHKMYAts.js} +2 -2
- package/dist/chunks/{browser.d.yFAklsD1.d.ts → browser.d.D9YV3JvA.d.ts} +1 -1
- package/dist/chunks/{cac.DCxo_nSu.js → cac.r1gel_VZ.js} +18 -11
- package/dist/chunks/{cli-api.BJJXh9BV.js → cli-api.CpywZzJV.js} +153 -176
- package/dist/chunks/{config.d.B_LthbQq.d.ts → config.d.DGazh2r6.d.ts} +3 -1
- package/dist/chunks/{console.7h5kHUIf.js → console.CTJL2nuH.js} +4 -6
- package/dist/chunks/{coverage.BCU-r2QL.js → coverage.CiB0fs_7.js} +57 -79
- package/dist/chunks/{creator.08Gi-vCA.js → creator.DfXDsUyL.js} +6 -8
- package/dist/chunks/{global.d.BK3X7FW1.d.ts → global.d.BcFPD2LN.d.ts} +0 -13
- package/dist/chunks/{globals.DG-S3xFe.js → globals.DC4ntO86.js} +8 -6
- package/dist/chunks/{index.DIWhzsUh.js → index.Bt-upxGS.js} +6 -12
- package/dist/chunks/{index.BIP7prJq.js → index.CHrBLuEH.js} +94 -103
- package/dist/chunks/{index.X0nbfr6-.js → index.Dc3xnDvT.js} +48 -289
- package/dist/chunks/{index.CMfqw92x.js → index.Dnl38iQ_.js} +2 -2
- package/dist/chunks/{index.BjKEiSn0.js → index.uLUz1RDt.js} +3 -3
- package/dist/chunks/{inspector.CvQD-Nie.js → inspector.Br76Q2Mb.js} +1 -4
- package/dist/chunks/{moduleRunner.d.D9nBoC4p.d.ts → moduleRunner.d.CeYc7nZ0.d.ts} +1 -1
- package/dist/chunks/{node.CyipiPvJ.js → node.BwAWWjHZ.js} +3 -4
- package/dist/chunks/{plugin.d.BMVSnsGV.d.ts → plugin.d.XreRXLXS.d.ts} +1 -1
- package/dist/chunks/{reporters.d.BUWjmRYq.d.ts → reporters.d.CJVTaaWb.d.ts} +54 -13
- package/dist/chunks/{resolveSnapshotEnvironment.Bkht6Yor.js → resolveSnapshotEnvironment.BsJpmVZR.js} +7 -8
- package/dist/chunks/{rpc.BKr6mtxz.js → rpc.cD77ENhU.js} +13 -14
- package/dist/chunks/{setup-common.uiMcU3cv.js → setup-common.BewgbkTd.js} +6 -6
- package/dist/chunks/{startModuleRunner.p67gbNo9.js → startModuleRunner.DPBo3mme.js} +65 -56
- package/dist/chunks/{test.BiqSKISg.js → test.CTuWuHYH.js} +7 -7
- package/dist/chunks/{typechecker.DB-fIMaH.js → typechecker.BfOQ86_a.js} +624 -14
- package/dist/chunks/{utils.D2R2NiOH.js → utils.CG9h5ccR.js} +2 -5
- package/dist/chunks/{vi.ZPgvtBao.js → vi.B2--mG9U.js} +38 -145
- package/dist/{worker.js → chunks/worker.DVTUM2IW.js} +71 -42
- package/dist/chunks/{worker.d.BDsXGkwh.d.ts → worker.d.buwuBpBt.d.ts} +2 -77
- package/dist/cli.js +7 -5
- package/dist/config.d.ts +6 -6
- package/dist/coverage.d.ts +5 -5
- package/dist/coverage.js +4 -5
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +8 -6
- package/dist/module-evaluator.d.ts +3 -3
- package/dist/module-evaluator.js +11 -13
- package/dist/module-runner.js +5 -5
- package/dist/node.d.ts +14 -11
- package/dist/node.js +18 -14
- package/dist/reporters.d.ts +5 -5
- package/dist/reporters.js +7 -5
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +9 -7
- package/dist/snapshot.js +3 -3
- package/dist/suite.js +4 -3
- package/dist/{chunks/base.Cjha6usc.js → worker-base.js} +104 -32
- package/dist/{chunks/vm.Ca0Y0W5f.js → worker-vm.js} +81 -31
- package/dist/workers/runVmTests.js +14 -11
- package/package.json +26 -26
- package/browser.d.ts +0 -1
- package/dist/chunks/moduleTransport.I-bgQy0S.js +0 -19
- package/dist/chunks/resolver.Bx6lE0iq.js +0 -119
- package/dist/chunks/utils.C2YI6McM.js +0 -52
- package/dist/chunks/worker.d.BNcX_2mH.d.ts +0 -8
- package/dist/workers/forks.js +0 -67
- package/dist/workers/threads.js +0 -55
- package/dist/workers/vmForks.js +0 -48
- package/dist/workers/vmThreads.js +0 -38
- package/dist/workers.d.ts +0 -38
- package/dist/workers.js +0 -48
- package/execute.d.ts +0 -1
- package/utils.d.ts +0 -1
- package/workers.d.ts +0 -1
package/dist/config.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { HookHandler, ConfigEnv, UserConfig } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.
|
|
4
|
-
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.
|
|
5
|
-
import { V as VitestPluginContext } from './chunks/plugin.d.
|
|
6
|
-
import { F as FakeTimerInstallOpts } from './chunks/config.d.
|
|
3
|
+
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.CJVTaaWb.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.CJVTaaWb.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.XreRXLXS.js';
|
|
6
|
+
import { F as FakeTimerInstallOpts } from './chunks/config.d.DGazh2r6.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import './chunks/environment.d.BsToaxti.js';
|
|
10
10
|
import 'node:stream';
|
|
11
11
|
import '@vitest/mocker';
|
|
12
12
|
import '@vitest/utils/source-map';
|
|
13
|
-
import './chunks/browser.d.
|
|
14
|
-
import './chunks/worker.d.
|
|
13
|
+
import './chunks/browser.d.D9YV3JvA.js';
|
|
14
|
+
import './chunks/worker.d.buwuBpBt.js';
|
|
15
15
|
import 'vite/module-runner';
|
|
16
16
|
import '@vitest/snapshot';
|
|
17
17
|
import '@vitest/pretty-format';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.CJVTaaWb.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/environment.d.BsToaxti.js';
|
|
4
4
|
import '@vitest/runner';
|
|
@@ -6,13 +6,13 @@ import '@vitest/utils';
|
|
|
6
6
|
import 'node:stream';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
|
-
import './chunks/
|
|
10
|
-
import './chunks/worker.d.BDsXGkwh.js';
|
|
11
|
-
import 'vite/module-runner';
|
|
12
|
-
import './chunks/config.d.B_LthbQq.js';
|
|
9
|
+
import './chunks/config.d.DGazh2r6.js';
|
|
13
10
|
import '@vitest/pretty-format';
|
|
14
11
|
import '@vitest/snapshot';
|
|
15
12
|
import '@vitest/utils/diff';
|
|
13
|
+
import './chunks/browser.d.D9YV3JvA.js';
|
|
14
|
+
import './chunks/worker.d.buwuBpBt.js';
|
|
15
|
+
import 'vite/module-runner';
|
|
16
16
|
import '@vitest/expect';
|
|
17
17
|
import 'vitest/optional-types.js';
|
|
18
18
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/coverage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as BaseCoverageProvider } from './chunks/coverage.
|
|
1
|
+
export { B as BaseCoverageProvider } from './chunks/coverage.CiB0fs_7.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:path';
|
|
4
|
-
import '@vitest/utils';
|
|
4
|
+
import '@vitest/utils/helpers';
|
|
5
5
|
import 'pathe';
|
|
6
6
|
import 'picomatch';
|
|
7
7
|
import 'tinyglobby';
|
|
@@ -21,14 +21,13 @@ import 'node:util';
|
|
|
21
21
|
import 'vite';
|
|
22
22
|
import './chunks/constants.D_Q9UYh-.js';
|
|
23
23
|
import 'node:tty';
|
|
24
|
+
import './path.js';
|
|
24
25
|
import 'node:events';
|
|
25
26
|
import './chunks/index.Bgo3tNWt.js';
|
|
26
27
|
import 'tinypool';
|
|
27
|
-
import './chunks/typechecker.
|
|
28
|
+
import './chunks/typechecker.BfOQ86_a.js';
|
|
28
29
|
import 'node:perf_hooks';
|
|
29
|
-
import '@vitest/utils/source-map';
|
|
30
30
|
import 'tinyexec';
|
|
31
|
-
import './path.js';
|
|
32
31
|
import '@vitest/runner/utils';
|
|
33
32
|
import 'node:worker_threads';
|
|
34
33
|
import './chunks/coverage.D_JHT54q.js';
|
package/dist/environments.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.
|
|
1
|
+
export { e as builtinEnvironments, p as populateGlobal } from './chunks/index.Bt-upxGS.js';
|
|
2
2
|
import 'node:console';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SerializedTestSpecification } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
3
|
-
import './chunks/global.d.
|
|
1
|
+
import { S as SerializedTestSpecification } from './chunks/browser.d.D9YV3JvA.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.D9YV3JvA.js';
|
|
3
|
+
import './chunks/global.d.BcFPD2LN.js';
|
|
4
4
|
import { File, TestAnnotation, TaskResultPack, TaskEventPack, TaskPopulated } from '@vitest/runner';
|
|
5
|
-
export { CancelReason,
|
|
6
|
-
import {
|
|
7
|
-
export { C as ContextRPC,
|
|
8
|
-
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.
|
|
9
|
-
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.d.
|
|
5
|
+
export { CancelReason, ImportDuration, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskEventPack as RunnerTaskEventPack, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
6
|
+
import { B as BirpcReturn } from './chunks/worker.d.buwuBpBt.js';
|
|
7
|
+
export { C as ContextRPC, b as ContextTestEnvironment, R as RunnerRPC, a as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.buwuBpBt.js';
|
|
8
|
+
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.DGazh2r6.js';
|
|
9
|
+
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.d.DGazh2r6.js';
|
|
10
10
|
import { b as Awaitable, U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/environment.d.BsToaxti.js';
|
|
11
11
|
export { A as AfterSuiteRunMeta } from './chunks/environment.d.BsToaxti.js';
|
|
12
12
|
import { ExpectStatic } from '@vitest/expect';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.
|
|
2
|
-
export { b as bench } from './chunks/benchmark.
|
|
3
|
-
export { a as assertType } from './chunks/index.
|
|
1
|
+
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.B2--mG9U.js';
|
|
2
|
+
export { b as bench } from './chunks/benchmark.DHKMYAts.js';
|
|
3
|
+
export { a as assertType } from './chunks/index.Dnl38iQ_.js';
|
|
4
4
|
export { expectTypeOf } from 'expect-type';
|
|
5
5
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
6
6
|
export { EvaluatedModules } from 'vite/module-runner';
|
|
7
7
|
export { chai } from '@vitest/expect';
|
|
8
8
|
import '@vitest/runner/utils';
|
|
9
|
-
import './chunks/utils.
|
|
10
|
-
import '@vitest/utils';
|
|
11
|
-
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
9
|
+
import './chunks/utils.CG9h5ccR.js';
|
|
10
|
+
import '@vitest/utils/timers';
|
|
12
11
|
import '@vitest/snapshot';
|
|
13
12
|
import '@vitest/utils/error';
|
|
13
|
+
import '@vitest/utils/helpers';
|
|
14
14
|
import '@vitest/spy';
|
|
15
|
+
import '@vitest/utils/offset';
|
|
15
16
|
import '@vitest/utils/source-map';
|
|
17
|
+
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
16
18
|
import './chunks/date.-jtEtIeV.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import 'vite/module-runner';
|
|
2
|
-
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.
|
|
2
|
+
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.CeYc7nZ0.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/worker.d.
|
|
5
|
+
import './chunks/worker.d.buwuBpBt.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
|
-
import './chunks/config.d.
|
|
7
|
+
import './chunks/config.d.DGazh2r6.js';
|
|
8
8
|
import '@vitest/pretty-format';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/diff';
|
package/dist/module-evaluator.js
CHANGED
|
@@ -58,7 +58,8 @@ class VitestModuleEvaluator {
|
|
|
58
58
|
if (id in this.stubs) return this.stubs[id];
|
|
59
59
|
const file = this.convertIdToImportUrl(id), namespace = this.vm ? await this.vm.externalModulesExecutor.import(file) : await import(file);
|
|
60
60
|
if (!this.shouldInterop(file, namespace)) return namespace;
|
|
61
|
-
const { mod, defaultExport } = interopModule(namespace), { Proxy, Reflect } = this.primitives
|
|
61
|
+
const { mod, defaultExport } = interopModule(namespace), { Proxy, Reflect } = this.primitives;
|
|
62
|
+
return new Proxy(mod, {
|
|
62
63
|
get(mod, prop) {
|
|
63
64
|
return prop === "default" ? defaultExport : mod[prop] ?? defaultExport?.[prop];
|
|
64
65
|
},
|
|
@@ -75,7 +76,6 @@ class VitestModuleEvaluator {
|
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
78
|
});
|
|
78
|
-
return proxy;
|
|
79
79
|
}
|
|
80
80
|
async runInlinedModule(context, code, module) {
|
|
81
81
|
context.__vite_ssr_import_meta__.env = this.env;
|
|
@@ -107,8 +107,8 @@ class VitestModuleEvaluator {
|
|
|
107
107
|
get exports() {
|
|
108
108
|
return cjsExports;
|
|
109
109
|
}
|
|
110
|
-
}, meta = context[ssrImportMetaKey]
|
|
111
|
-
if (
|
|
110
|
+
}, meta = context[ssrImportMetaKey];
|
|
111
|
+
if (this.options.getCurrentTestFilepath?.() === module.file) {
|
|
112
112
|
const globalNamespace = this.vm?.context || globalThis;
|
|
113
113
|
Object.defineProperty(meta, "vitest", { get: () => globalNamespace.__vitest_index__ });
|
|
114
114
|
}
|
|
@@ -133,14 +133,13 @@ class VitestModuleEvaluator {
|
|
|
133
133
|
columnOffset: -codeDefinition.length
|
|
134
134
|
}, finishModuleExecutionInfo = this.debug.startCalculateModuleExecutionInfo(options.filename, codeDefinition.length);
|
|
135
135
|
try {
|
|
136
|
-
|
|
137
|
-
return dep = String(dep), dep[0] === "#" ? context[ssrDynamicImportKey](wrapId(dep), options) : context[ssrDynamicImportKey](dep, options);
|
|
138
|
-
};
|
|
139
|
-
await initModule(
|
|
136
|
+
await (this.vm ? vm.runInContext(wrappedCode, this.vm.context, options) : vm.runInThisContext(wrappedCode, options))(
|
|
140
137
|
context[ssrModuleExportsKey],
|
|
141
138
|
context[ssrImportMetaKey],
|
|
142
139
|
context[ssrImportKey],
|
|
143
|
-
|
|
140
|
+
async (dep, options) => {
|
|
141
|
+
return dep = String(dep), dep[0] === "#" ? context[ssrDynamicImportKey](wrapId(dep), options) : context[ssrDynamicImportKey](dep, options);
|
|
142
|
+
},
|
|
144
143
|
context[ssrExportAllKey],
|
|
145
144
|
// vite 7 support, remove when vite 7+ is supported
|
|
146
145
|
context.__vite_ssr_exportName__ || ((name, getter) => Object.defineProperty(exportsObject, name, {
|
|
@@ -162,7 +161,7 @@ class VitestModuleEvaluator {
|
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
createRequire(filename) {
|
|
165
|
-
return filename
|
|
164
|
+
return filename[0] === "\0" || !isAbsolute(filename) ? () => ({}) : this.vm ? this.vm.externalModulesExecutor.createRequire(filename) : createRequire(filename);
|
|
166
165
|
}
|
|
167
166
|
shouldInterop(path, mod) {
|
|
168
167
|
// never interop ESM modules
|
|
@@ -179,7 +178,7 @@ function createImportMetaEnvProxy() {
|
|
|
179
178
|
];
|
|
180
179
|
return new Proxy(process.env, {
|
|
181
180
|
get(_, key) {
|
|
182
|
-
|
|
181
|
+
if (typeof key === "string") return booleanKeys.includes(key) ? !!process.env[key] : process.env[key];
|
|
183
182
|
},
|
|
184
183
|
set(_, key, value) {
|
|
185
184
|
if (typeof key !== "string") return true;
|
|
@@ -248,8 +247,7 @@ function defineExport(exports, key, value) {
|
|
|
248
247
|
});
|
|
249
248
|
}
|
|
250
249
|
function isPrimitive(v) {
|
|
251
|
-
|
|
252
|
-
return !isObject || v == null;
|
|
250
|
+
return !(typeof v === "object" || typeof v === "function") || v == null;
|
|
253
251
|
}
|
|
254
252
|
function interopModule(mod) {
|
|
255
253
|
if (isPrimitive(mod)) return {
|
package/dist/module-runner.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { VitestModuleEvaluator } from './module-evaluator.js';
|
|
2
|
-
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.
|
|
3
|
-
export { g as getWorkerState } from './chunks/utils.
|
|
2
|
+
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.DPBo3mme.js';
|
|
3
|
+
export { g as getWorkerState } from './chunks/utils.CG9h5ccR.js';
|
|
4
4
|
import 'node:module';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'node:vm';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'vite/module-runner';
|
|
9
9
|
import 'node:fs';
|
|
10
|
-
import '@vitest/utils';
|
|
10
|
+
import '@vitest/utils/helpers';
|
|
11
11
|
import './path.js';
|
|
12
12
|
import 'node:path';
|
|
13
|
-
import '@vitest/utils/
|
|
13
|
+
import '@vitest/utils/serialize';
|
|
14
14
|
import '@vitest/mocker';
|
|
15
|
-
import '
|
|
15
|
+
import '@vitest/utils/timers';
|
package/dist/node.d.ts
CHANGED
|
@@ -3,24 +3,24 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
|
|
|
3
3
|
export { vite as Vite };
|
|
4
4
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
5
5
|
import { IncomingMessage } from 'node:http';
|
|
6
|
-
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.
|
|
7
|
-
export { al as BaseCoverageOptions, G as BenchmarkUserOptions, K as BrowserBuiltinProvider, N as BrowserCommand, Q as BrowserCommandContext, X as BrowserConfigOptions, Y as BrowserInstanceOption, Z as BrowserModuleMocker, _ as BrowserOrchestrator, $ as BrowserProvider, a0 as BrowserProviderOption, a1 as BrowserScript, a2 as BrowserServerState, a3 as BrowserServerStateSession, aa as BuiltinEnvironment, a4 as CDPSession, ab as CSSModuleScopeStrategy, am as CoverageIstanbulOptions, an as CoverageOptions, ao as CoverageProvider, ap as CoverageProviderModule, aq as CoverageReporter, c as CoverageV8Options, ar as CustomProviderOptions, ac as DepsOptimizationOptions, ad as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a5 as ParentProjectBrowser, ae as PoolOptions, a6 as ProjectBrowser, af as ProjectConfig, b as ReportContext, at as ReportedHookContext, au as Reporter, ah as ResolveSnapshotPathHandler, ai as ResolveSnapshotPathHandlerContext, a7 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ag as ResolvedProjectConfig, S as SerializedTestProject, p as TaskOptions, q as TestCase, r as TestCollection, s as TestDiagnostic, t as TestModule, u as TestModuleState, v as TestResult, w as TestResultFailed, x as TestResultPassed, y as TestResultSkipped, av as TestRunEndReason, as as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, a8 as ToMatchScreenshotComparators, a9 as ToMatchScreenshotOptions, aj as TypecheckConfig, U as UserWorkspaceConfig, ak as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.
|
|
6
|
+
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.CJVTaaWb.js';
|
|
7
|
+
export { al as BaseCoverageOptions, G as BenchmarkUserOptions, K as BrowserBuiltinProvider, N as BrowserCommand, Q as BrowserCommandContext, X as BrowserConfigOptions, Y as BrowserInstanceOption, Z as BrowserModuleMocker, _ as BrowserOrchestrator, $ as BrowserProvider, a0 as BrowserProviderOption, a1 as BrowserScript, a2 as BrowserServerState, a3 as BrowserServerStateSession, aa as BuiltinEnvironment, a4 as CDPSession, ab as CSSModuleScopeStrategy, am as CoverageIstanbulOptions, an as CoverageOptions, ao as CoverageProvider, ap as CoverageProviderModule, aq as CoverageReporter, c as CoverageV8Options, ar as CustomProviderOptions, ac as DepsOptimizationOptions, ad as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a5 as ParentProjectBrowser, ae as PoolOptions, a6 as ProjectBrowser, af as ProjectConfig, b as ReportContext, at as ReportedHookContext, au as Reporter, ah as ResolveSnapshotPathHandler, ai as ResolveSnapshotPathHandlerContext, a7 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ag as ResolvedProjectConfig, S as SerializedTestProject, p as TaskOptions, q as TestCase, r as TestCollection, s as TestDiagnostic, t as TestModule, u as TestModuleState, v as TestResult, w as TestResultFailed, x as TestResultPassed, y as TestResultSkipped, av as TestRunEndReason, as as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, a8 as ToMatchScreenshotComparators, a9 as ToMatchScreenshotOptions, aj as TypecheckConfig, U as UserWorkspaceConfig, ak as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.CJVTaaWb.js';
|
|
8
8
|
import { Awaitable } from '@vitest/utils';
|
|
9
9
|
export { SerializedError } from '@vitest/utils';
|
|
10
|
-
import {
|
|
11
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
10
|
+
import { a as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.buwuBpBt.js';
|
|
11
|
+
export { T as TestExecutionType } from './chunks/worker.d.buwuBpBt.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
14
|
-
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.XreRXLXS.js';
|
|
14
|
+
import { MessagePort } from 'node:worker_threads';
|
|
15
15
|
import { Debugger } from 'debug';
|
|
16
|
-
import './chunks/global.d.
|
|
16
|
+
import './chunks/global.d.BcFPD2LN.js';
|
|
17
17
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
18
|
-
export { b as RuntimeConfig } from './chunks/config.d.
|
|
18
|
+
export { b as RuntimeConfig } from './chunks/config.d.DGazh2r6.js';
|
|
19
19
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
20
20
|
import './chunks/environment.d.BsToaxti.js';
|
|
21
21
|
import '@vitest/mocker';
|
|
22
22
|
import '@vitest/utils/source-map';
|
|
23
|
-
import './chunks/browser.d.
|
|
23
|
+
import './chunks/browser.d.D9YV3JvA.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
|
26
26
|
import '@vitest/utils/diff';
|
|
@@ -33,7 +33,6 @@ import '@vitest/snapshot/manager';
|
|
|
33
33
|
import 'node:fs';
|
|
34
34
|
import 'node:console';
|
|
35
35
|
import 'vite/module-runner';
|
|
36
|
-
import 'node:worker_threads';
|
|
37
36
|
|
|
38
37
|
type RawErrsMap = Map<string, TscErrorInfo[]>;
|
|
39
38
|
interface TscErrorInfo {
|
|
@@ -152,6 +151,10 @@ declare class BaseSequencer implements TestSequencer {
|
|
|
152
151
|
|
|
153
152
|
declare function registerConsoleShortcuts(ctx: Vitest, stdin: NodeJS.ReadStream | undefined, stdout: NodeJS.WriteStream | Writable): () => void;
|
|
154
153
|
|
|
154
|
+
interface WorkerContext extends ContextRPC {
|
|
155
|
+
port: MessagePort;
|
|
156
|
+
}
|
|
157
|
+
|
|
155
158
|
declare function createViteLogger(console: Logger, level?: LogLevel, options?: LoggerOptions): Logger$1;
|
|
156
159
|
|
|
157
160
|
declare const rootDir: string;
|
|
@@ -166,4 +169,4 @@ declare const createViteServer: typeof vite.createServer;
|
|
|
166
169
|
declare const rolldownVersion: string | undefined;
|
|
167
170
|
|
|
168
171
|
export { ApiConfig, BaseSequencer, GitNotFoundError, Pool, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, Vitest, VitestOptions, VitestPlugin, VitestRunMode, createDebugger, createMethodsRPC, createViteLogger, createViteServer, createVitest, distDir, escapeTestName, getFilePoolName, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rolldownVersion, rootDir, startVitest, version };
|
|
169
|
-
export type { CliParseOptions, ProcessPool, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget };
|
|
172
|
+
export type { CliParseOptions, ProcessPool, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget, WorkerContext };
|
package/dist/node.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
3
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
4
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.
|
|
5
|
-
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, h as createDebugger, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
7
|
-
import { r as resolveConfig$2 } from './chunks/coverage.
|
|
8
|
-
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.
|
|
9
|
-
import { slash, deepClone } from '@vitest/utils';
|
|
10
|
-
import {
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.CpywZzJV.js';
|
|
5
|
+
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, h as createDebugger, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.CpywZzJV.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.r1gel_VZ.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.CiB0fs_7.js';
|
|
8
|
+
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.CiB0fs_7.js';
|
|
9
|
+
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
|
+
import { a as any } from './chunks/index.Dc3xnDvT.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
12
12
|
import { c as configFiles } from './chunks/constants.D_Q9UYh-.js';
|
|
13
13
|
export { distDir, rootDir } from './path.js';
|
|
@@ -18,18 +18,20 @@ import 'node:path';
|
|
|
18
18
|
import 'node:os';
|
|
19
19
|
import '@vitest/snapshot/manager';
|
|
20
20
|
import './chunks/index.Bgo3tNWt.js';
|
|
21
|
-
import './chunks/index.
|
|
21
|
+
import './chunks/index.CHrBLuEH.js';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import './chunks/typechecker.
|
|
23
|
+
import './chunks/typechecker.BfOQ86_a.js';
|
|
24
24
|
import 'node:perf_hooks';
|
|
25
|
-
import '@vitest/utils/source-map';
|
|
26
25
|
import 'tinyexec';
|
|
26
|
+
import '@vitest/utils/source-map';
|
|
27
27
|
import 'tinyrainbow';
|
|
28
28
|
import './chunks/env.D4Lgay0q.js';
|
|
29
29
|
import 'std-env';
|
|
30
30
|
import 'node:util';
|
|
31
31
|
import 'node:console';
|
|
32
32
|
import 'node:stream';
|
|
33
|
+
import '@vitest/utils/display';
|
|
34
|
+
import '@vitest/utils/offset';
|
|
33
35
|
import 'node:module';
|
|
34
36
|
import 'events';
|
|
35
37
|
import 'https';
|
|
@@ -46,17 +48,19 @@ import 'node:crypto';
|
|
|
46
48
|
import 'debug';
|
|
47
49
|
import '#module-evaluator';
|
|
48
50
|
import 'vite/module-runner';
|
|
51
|
+
import '@vitest/utils/highlight';
|
|
49
52
|
import 'node:url';
|
|
50
53
|
import 'picomatch';
|
|
51
54
|
import 'tinyglobby';
|
|
52
55
|
import 'magic-string';
|
|
53
56
|
import '@vitest/mocker/node';
|
|
54
57
|
import './chunks/defaults.CXFFjsi8.js';
|
|
55
|
-
import '
|
|
58
|
+
import '@vitest/utils/constants';
|
|
59
|
+
import '@vitest/utils/resolver';
|
|
56
60
|
import 'es-module-lexer';
|
|
57
|
-
import './chunks/index.
|
|
61
|
+
import './chunks/index.uLUz1RDt.js';
|
|
58
62
|
import 'node:assert';
|
|
59
|
-
import '@vitest/utils/
|
|
63
|
+
import '@vitest/utils/serialize';
|
|
60
64
|
import 'node:readline';
|
|
61
65
|
import 'node:process';
|
|
62
66
|
import 'node:v8';
|
|
@@ -68,7 +72,7 @@ import 'readline';
|
|
|
68
72
|
|
|
69
73
|
// this is only exported as a public function and not used inside vitest
|
|
70
74
|
async function resolveConfig(options = {}, viteOverrides = {}) {
|
|
71
|
-
const root = slash(resolve(options.root || process.cwd())), configPath = options.config === false ? false : options.config ? resolve(root, options.config) :
|
|
75
|
+
const root = slash(resolve(options.root || process.cwd())), configPath = options.config === false ? false : options.config ? resolve(root, options.config) : any(configFiles, { cwd: root });
|
|
72
76
|
options.config = configPath;
|
|
73
77
|
const vitest = new Vitest("test", deepClone(options)), config = await resolveConfig$1(mergeConfig({
|
|
74
78
|
configFile: configPath,
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aJ as BaseReporter, aK as BenchmarkBuiltinReporters, aw as BenchmarkReporter, ax as BenchmarkReportsMap, aL as BuiltinReporterOptions, aM as BuiltinReporters, ay as DefaultReporter, az as DotReporter, aA as GithubActionsReporter, aB as HangingProcessReporter, aD as JUnitReporter, aN as JsonAssertionResult, aC as JsonReporter, aO as JsonTestResult, aP as JsonTestResults, at as ReportedHookContext, au as Reporter, aE as ReportersMap, aF as TapFlatReporter, aG as TapReporter, av as TestRunEndReason, aH as VerboseBenchmarkReporter, aI as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aJ as BaseReporter, aK as BenchmarkBuiltinReporters, aw as BenchmarkReporter, ax as BenchmarkReportsMap, aL as BuiltinReporterOptions, aM as BuiltinReporters, ay as DefaultReporter, az as DotReporter, aA as GithubActionsReporter, aB as HangingProcessReporter, aD as JUnitReporter, aN as JsonAssertionResult, aC as JsonReporter, aO as JsonTestResult, aP as JsonTestResults, at as ReportedHookContext, au as Reporter, aE as ReportersMap, aF as TapFlatReporter, aG as TapReporter, av as TestRunEndReason, aH as VerboseBenchmarkReporter, aI as VerboseReporter } from './chunks/reporters.d.CJVTaaWb.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/environment.d.BsToaxti.js';
|
|
@@ -6,13 +6,13 @@ import 'node:stream';
|
|
|
6
6
|
import 'vite';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
|
-
import './chunks/
|
|
10
|
-
import './chunks/worker.d.BDsXGkwh.js';
|
|
11
|
-
import 'vite/module-runner';
|
|
12
|
-
import './chunks/config.d.B_LthbQq.js';
|
|
9
|
+
import './chunks/config.d.DGazh2r6.js';
|
|
13
10
|
import '@vitest/pretty-format';
|
|
14
11
|
import '@vitest/snapshot';
|
|
15
12
|
import '@vitest/utils/diff';
|
|
13
|
+
import './chunks/browser.d.D9YV3JvA.js';
|
|
14
|
+
import './chunks/worker.d.buwuBpBt.js';
|
|
15
|
+
import 'vite/module-runner';
|
|
16
16
|
import '@vitest/expect';
|
|
17
17
|
import 'vitest/optional-types.js';
|
|
18
18
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/reporters.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.
|
|
2
|
-
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.
|
|
1
|
+
export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.CHrBLuEH.js';
|
|
2
|
+
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.uLUz1RDt.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
|
6
|
-
import './chunks/typechecker.
|
|
6
|
+
import './chunks/typechecker.BfOQ86_a.js';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:perf_hooks';
|
|
9
|
-
import '@vitest/utils/source-map';
|
|
10
9
|
import 'tinyexec';
|
|
11
10
|
import './path.js';
|
|
12
11
|
import 'node:path';
|
|
13
12
|
import 'node:url';
|
|
14
13
|
import '@vitest/runner/utils';
|
|
15
|
-
import '@vitest/utils';
|
|
14
|
+
import '@vitest/utils/helpers';
|
|
16
15
|
import 'vite';
|
|
16
|
+
import '@vitest/utils/source-map';
|
|
17
17
|
import 'tinyrainbow';
|
|
18
18
|
import './chunks/env.D4Lgay0q.js';
|
|
19
19
|
import 'std-env';
|
|
20
20
|
import 'node:util';
|
|
21
21
|
import 'node:console';
|
|
22
22
|
import 'node:stream';
|
|
23
|
+
import '@vitest/utils/display';
|
|
24
|
+
import '@vitest/utils/offset';
|
|
23
25
|
import 'node:module';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TestContext, ImportDuration } from '@vitest/runner';
|
|
3
3
|
export { VitestRunner } from '@vitest/runner';
|
|
4
|
-
import { a as SerializedConfig } from './chunks/config.d.
|
|
4
|
+
import { a as SerializedConfig } from './chunks/config.d.DGazh2r6.js';
|
|
5
5
|
import '@vitest/pretty-format';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
7
|
import '@vitest/utils/diff';
|
package/dist/runners.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.
|
|
1
|
+
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.CTuWuHYH.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
|
-
import '@vitest/utils';
|
|
4
|
-
import '
|
|
3
|
+
import '@vitest/utils/helpers';
|
|
4
|
+
import '@vitest/utils/timers';
|
|
5
|
+
import './chunks/benchmark.DHKMYAts.js';
|
|
5
6
|
import '@vitest/runner/utils';
|
|
6
|
-
import './chunks/utils.
|
|
7
|
+
import './chunks/utils.CG9h5ccR.js';
|
|
7
8
|
import '@vitest/expect';
|
|
8
9
|
import '@vitest/utils/error';
|
|
9
10
|
import 'pathe';
|
|
10
|
-
import './chunks/vi.
|
|
11
|
-
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
11
|
+
import './chunks/vi.B2--mG9U.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/spy';
|
|
14
|
+
import '@vitest/utils/offset';
|
|
14
15
|
import '@vitest/utils/source-map';
|
|
16
|
+
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
15
17
|
import './chunks/date.-jtEtIeV.js';
|
|
16
|
-
import './chunks/rpc.
|
|
18
|
+
import './chunks/rpc.cD77ENhU.js';
|
|
17
19
|
import './chunks/index.Bgo3tNWt.js';
|
package/dist/snapshot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './chunks/node.
|
|
1
|
+
export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from './chunks/node.BwAWWjHZ.js';
|
|
2
2
|
import '@vitest/snapshot/environment';
|
|
3
|
-
import './chunks/utils.
|
|
4
|
-
import '@vitest/utils';
|
|
3
|
+
import './chunks/utils.CG9h5ccR.js';
|
|
4
|
+
import '@vitest/utils/timers';
|
package/dist/suite.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { g as getBenchFn, a as getBenchOptions } from './chunks/benchmark.
|
|
1
|
+
export { g as getBenchFn, a as getBenchOptions } from './chunks/benchmark.DHKMYAts.js';
|
|
2
2
|
export { createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
|
|
3
3
|
export { createChainable } from '@vitest/runner/utils';
|
|
4
|
-
import '@vitest/utils';
|
|
5
|
-
import './chunks/utils.
|
|
4
|
+
import '@vitest/utils/helpers';
|
|
5
|
+
import './chunks/utils.CG9h5ccR.js';
|
|
6
|
+
import '@vitest/utils/timers';
|