vitest 4.0.0-beta.8 → 4.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +5 -5
- package/dist/browser.js +4 -4
- package/dist/chunks/{runBaseTests.D6sfuWBM.js → base.CA5N8Af0.js} +55 -26
- package/dist/chunks/{benchmark.UW6Ezvxy.js → benchmark.CJUa-Hsa.js} +1 -1
- package/dist/chunks/{browser.d.DOMmqJQx.d.ts → browser.d.DtfyY9yS.d.ts} +1 -1
- package/dist/chunks/{cac.By1HvRIk.js → cac.Dt7e1TIu.js} +6 -24
- package/dist/chunks/{cli-api.C-JHgQgp.js → cli-api.eAzsLIxz.js} +41 -32
- package/dist/chunks/{config.d._GBBbReY.d.ts → config.d.DacWrqWe.d.ts} +1 -0
- package/dist/chunks/{console.B0quX7yH.js → console.7h5kHUIf.js} +1 -1
- package/dist/chunks/{coverage.DarITf6U.js → coverage.CDRAMTt7.js} +19 -50
- package/dist/chunks/{globals.lgsmH00r.js → globals.CJrTTbxC.js} +5 -6
- package/dist/chunks/{index.AzwzFtyi.js → index.BIP7prJq.js} +1 -1
- package/dist/chunks/{index.BuwjkI-q.js → index.BjKEiSn0.js} +1 -1
- package/dist/chunks/{index.AR8aAkCC.js → index.C832ioot.js} +5 -6
- package/dist/chunks/{moduleRunner.d.CX4DuqOx.d.ts → moduleRunner.d.DxTLreRD.d.ts} +4 -1
- package/dist/chunks/{node.BOqcT2jW.js → node.CyipiPvJ.js} +1 -1
- package/dist/chunks/{plugin.d.CHe6slQs.d.ts → plugin.d.CIk0YiKb.d.ts} +1 -1
- package/dist/chunks/{reporters.d.37tJQ2uV.d.ts → reporters.d.DmP-iHLr.d.ts} +9 -16
- package/dist/chunks/{index.CsFXYRkW.js → resolveSnapshotEnvironment.Bvv2zr69.js} +16 -21
- package/dist/chunks/{rpc.RpPylpp0.js → rpc.BKr6mtxz.js} +1 -1
- package/dist/chunks/{setup-common.hLGRxhC8.js → setup-common.B7I37Tji.js} +4 -4
- package/dist/chunks/{startModuleRunner.C8TW8zTN.js → startModuleRunner.BDRvKSdz.js} +7 -2
- package/dist/chunks/test.BAlBebnP.js +214 -0
- package/dist/chunks/{typechecker.DSo_maXz.js → typechecker.DB-fIMaH.js} +44 -1
- package/dist/chunks/{utils.C7__0Iv5.js → utils.D2R2NiOH.js} +1 -10
- package/dist/chunks/{vi.BfdOiD4j.js → vi.BB37KeLx.js} +16 -16
- package/dist/chunks/{vm.BHBje7cC.js → vm.CjLTDaST.js} +12 -7
- package/dist/chunks/{worker.d.DYlqbejz.d.ts → worker.d.B2r4Ln6p.d.ts} +1 -1
- package/dist/chunks/{worker.d.BKu8cnnX.d.ts → worker.d.DJ6qxO2w.d.ts} +1 -1
- package/dist/cli.js +3 -3
- package/dist/config.d.ts +7 -7
- package/dist/coverage.d.ts +5 -5
- package/dist/coverage.js +2 -2
- package/dist/index.d.ts +11 -12
- package/dist/index.js +5 -8
- package/dist/module-evaluator.d.ts +4 -3
- package/dist/module-evaluator.js +3 -3
- package/dist/module-runner.js +2 -2
- package/dist/node.d.ts +9 -10
- package/dist/node.js +8 -8
- package/dist/reporters.d.ts +5 -5
- package/dist/reporters.js +3 -3
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +11 -215
- package/dist/snapshot.js +2 -2
- package/dist/suite.js +2 -2
- package/dist/worker.js +2 -3
- package/dist/workers/forks.js +27 -4
- package/dist/workers/runVmTests.js +18 -19
- package/dist/workers/threads.js +27 -4
- package/dist/workers/vmForks.js +4 -4
- package/dist/workers/vmThreads.js +4 -4
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +26 -8
- package/package.json +10 -13
- package/dist/chunks/base.BXI97p6t.js +0 -39
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, ASYMMETRIC_MATCHERS_OBJECT, getState, setState, addCustomEqualityTesters, customMatchers } from '@vitest/expect';
|
|
1
|
+
import { chai as chai$1, equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, ASYMMETRIC_MATCHERS_OBJECT, getState, setState, addCustomEqualityTesters, customMatchers } from '@vitest/expect';
|
|
2
2
|
import { getCurrentTest } from '@vitest/runner';
|
|
3
3
|
import { getNames, getTestName } from '@vitest/runner/utils';
|
|
4
|
-
import
|
|
5
|
-
import { g as getWorkerState, a as getCurrentEnvironment, i as isChildProcess, w as waitForImportsToResolve, r as resetModules } from './utils.C7__0Iv5.js';
|
|
4
|
+
import { g as getWorkerState, i as isChildProcess, w as waitForImportsToResolve, r as resetModules } from './utils.D2R2NiOH.js';
|
|
6
5
|
import { getSafeTimers, assertTypes, createSimpleStackTrace } from '@vitest/utils';
|
|
7
6
|
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers.BFTU3MAI.js';
|
|
8
7
|
import { stripSnapshotIndentation, addSerializer, SnapshotClient } from '@vitest/snapshot';
|
|
@@ -359,7 +358,6 @@ function createExpect(test) {
|
|
|
359
358
|
isExpectingAssertionsError: null,
|
|
360
359
|
expectedAssertionsNumber: null,
|
|
361
360
|
expectedAssertionsNumberErrorGen: null,
|
|
362
|
-
environment: getCurrentEnvironment(),
|
|
363
361
|
get testPath() {
|
|
364
362
|
return getWorkerState().filepath;
|
|
365
363
|
},
|
|
@@ -394,6 +392,8 @@ Object.defineProperty(globalThis, GLOBAL_EXPECT, {
|
|
|
394
392
|
writable: true,
|
|
395
393
|
configurable: true
|
|
396
394
|
});
|
|
395
|
+
const assert = chai$1.assert;
|
|
396
|
+
const should = chai$1.should;
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
399
|
* Gives access to injected context provided from the main thread.
|
|
@@ -3677,11 +3677,11 @@ function waitUntil(callback, options = {}) {
|
|
|
3677
3677
|
|
|
3678
3678
|
function createVitest() {
|
|
3679
3679
|
let _config = null;
|
|
3680
|
-
const
|
|
3680
|
+
const state = () => getWorkerState();
|
|
3681
3681
|
let _timers;
|
|
3682
3682
|
const timers = () => _timers ||= new FakeTimers({
|
|
3683
3683
|
global: globalThis,
|
|
3684
|
-
config:
|
|
3684
|
+
config: state().config.fakeTimers
|
|
3685
3685
|
}), _stubsGlobal = /* @__PURE__ */ new Map(), _stubsEnv = /* @__PURE__ */ new Map(), _envBooleans = [
|
|
3686
3686
|
"PROD",
|
|
3687
3687
|
"DEV",
|
|
@@ -3689,13 +3689,13 @@ function createVitest() {
|
|
|
3689
3689
|
], utils = {
|
|
3690
3690
|
useFakeTimers(config) {
|
|
3691
3691
|
if (isChildProcess()) {
|
|
3692
|
-
if (config?.toFake?.includes("nextTick") ||
|
|
3692
|
+
if (config?.toFake?.includes("nextTick") || state().config?.fakeTimers?.toFake?.includes("nextTick")) throw new Error("vi.useFakeTimers({ toFake: [\"nextTick\"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.");
|
|
3693
3693
|
}
|
|
3694
3694
|
if (config) timers().configure({
|
|
3695
|
-
...
|
|
3695
|
+
...state().config.fakeTimers,
|
|
3696
3696
|
...config
|
|
3697
3697
|
});
|
|
3698
|
-
else timers().configure(
|
|
3698
|
+
else timers().configure(state().config.fakeTimers);
|
|
3699
3699
|
return timers().useFakeTimers(), utils;
|
|
3700
3700
|
},
|
|
3701
3701
|
isFakeTimers() {
|
|
@@ -3808,7 +3808,7 @@ function createVitest() {
|
|
|
3808
3808
|
}), utils;
|
|
3809
3809
|
},
|
|
3810
3810
|
stubEnv(name, value) {
|
|
3811
|
-
const
|
|
3811
|
+
const env = state().metaEnv;
|
|
3812
3812
|
if (!_stubsEnv.has(name)) _stubsEnv.set(name, env[name]);
|
|
3813
3813
|
if (_envBooleans.includes(name)) env[name] = value ? "1" : "";
|
|
3814
3814
|
else if (value === void 0) delete env[name];
|
|
@@ -3822,24 +3822,24 @@ function createVitest() {
|
|
|
3822
3822
|
}), _stubsGlobal.clear(), utils;
|
|
3823
3823
|
},
|
|
3824
3824
|
unstubAllEnvs() {
|
|
3825
|
-
const
|
|
3825
|
+
const env = state().metaEnv;
|
|
3826
3826
|
return _stubsEnv.forEach((original, name) => {
|
|
3827
3827
|
if (original === void 0) delete env[name];
|
|
3828
3828
|
else env[name] = original;
|
|
3829
3829
|
}), _stubsEnv.clear(), utils;
|
|
3830
3830
|
},
|
|
3831
3831
|
resetModules() {
|
|
3832
|
-
return resetModules(
|
|
3832
|
+
return resetModules(state().evaluatedModules), utils;
|
|
3833
3833
|
},
|
|
3834
3834
|
async dynamicImportSettled() {
|
|
3835
3835
|
return waitForImportsToResolve();
|
|
3836
3836
|
},
|
|
3837
3837
|
setConfig(config) {
|
|
3838
|
-
if (!_config) _config = { ...
|
|
3839
|
-
Object.assign(
|
|
3838
|
+
if (!_config) _config = { ...state().config };
|
|
3839
|
+
Object.assign(state().config, config);
|
|
3840
3840
|
},
|
|
3841
3841
|
resetConfig() {
|
|
3842
|
-
if (_config) Object.assign(
|
|
3842
|
+
if (_config) Object.assign(state().config, _config);
|
|
3843
3843
|
}
|
|
3844
3844
|
};
|
|
3845
3845
|
return utils;
|
|
@@ -3859,4 +3859,4 @@ function getImporter(name) {
|
|
|
3859
3859
|
return stack?.file || "";
|
|
3860
3860
|
}
|
|
3861
3861
|
|
|
3862
|
-
export {
|
|
3862
|
+
export { getSnapshotClient as a, assert as b, createExpect as c, vitest as d, globalExpect as g, inject as i, should as s, vi as v };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
2
|
-
import vm, { isContext } from 'node:vm';
|
|
2
|
+
import vm, { isContext, runInContext } from 'node:vm';
|
|
3
3
|
import { dirname, basename, extname, normalize, resolve } from 'pathe';
|
|
4
4
|
import { distDir } from '../path.js';
|
|
5
|
-
import { createCustomConsole } from './console.
|
|
5
|
+
import { createCustomConsole } from './console.7h5kHUIf.js';
|
|
6
6
|
import fs from 'node:fs';
|
|
7
7
|
import { createRequire, Module, isBuiltin } from 'node:module';
|
|
8
8
|
import { CSS_LANGS_RE, KNOWN_ASSET_RE, toArray, isBareImport } from '@vitest/utils';
|
|
9
9
|
import { f as findNearestPackageData } from './resolver.Bx6lE0iq.js';
|
|
10
10
|
import { dirname as dirname$1 } from 'node:path';
|
|
11
11
|
import { getDefaultRequestStubs } from '../module-evaluator.js';
|
|
12
|
-
import { s as startVitestModuleRunner, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.
|
|
13
|
-
import { p as provideWorkerState } from './utils.
|
|
12
|
+
import { s as startVitestModuleRunner, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.BDRvKSdz.js';
|
|
13
|
+
import { p as provideWorkerState } from './utils.D2R2NiOH.js';
|
|
14
14
|
|
|
15
15
|
function interopCommonJsModule(interopDefault, mod) {
|
|
16
16
|
if (isPrimitive(mod) || Array.isArray(mod) || mod instanceof Promise) return {
|
|
@@ -611,13 +611,13 @@ async function runVmTests(method, state) {
|
|
|
611
611
|
packageCache,
|
|
612
612
|
transform: rpc.transform,
|
|
613
613
|
viteClientModule: stubs["/@vite/client"]
|
|
614
|
-
}), moduleRunner =
|
|
614
|
+
}), moduleRunner = startVitestModuleRunner({
|
|
615
615
|
context,
|
|
616
616
|
evaluatedModules: state.evaluatedModules,
|
|
617
617
|
state,
|
|
618
618
|
externalModulesExecutor
|
|
619
619
|
});
|
|
620
|
-
Object.defineProperty(context, VITEST_VM_CONTEXT_SYMBOL, {
|
|
620
|
+
if (Object.defineProperty(context, VITEST_VM_CONTEXT_SYMBOL, {
|
|
621
621
|
value: {
|
|
622
622
|
context,
|
|
623
623
|
externalModulesExecutor
|
|
@@ -625,7 +625,12 @@ async function runVmTests(method, state) {
|
|
|
625
625
|
configurable: true,
|
|
626
626
|
enumerable: false,
|
|
627
627
|
writable: false
|
|
628
|
-
}), context.__vitest_mocker__ = moduleRunner.mocker
|
|
628
|
+
}), context.__vitest_mocker__ = moduleRunner.mocker, ctx.config.serializedDefines) try {
|
|
629
|
+
runInContext(ctx.config.serializedDefines, context, { filename: "virtual:load-defines.js" });
|
|
630
|
+
} catch (error) {
|
|
631
|
+
throw new Error(`Failed to load custom "defines": ${error.message}`);
|
|
632
|
+
}
|
|
633
|
+
await moduleRunner.mocker.initializeSpyModule();
|
|
629
634
|
const { run } = await moduleRunner.import(entryFile), fileSpecs = ctx.files.map((f) => typeof f === "string" ? {
|
|
630
635
|
filepath: f,
|
|
631
636
|
testLocations: void 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelReason, File, TestAnnotation, TaskResultPack, TaskEventPack, FileSpecification, Task } from '@vitest/runner';
|
|
2
2
|
import { FetchFunctionOptions, FetchResult, EvaluatedModules } from 'vite/module-runner';
|
|
3
|
-
import { a as SerializedConfig } from './config.d.
|
|
3
|
+
import { a as SerializedConfig } from './config.d.DacWrqWe.js';
|
|
4
4
|
import { F as FetchCachedFileSystemResult, R as ResolveFunctionResult, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.d.2fYMoz3o.js';
|
|
5
5
|
import { SnapshotResult } from '@vitest/snapshot';
|
|
6
6
|
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as createCLI } from './chunks/cac.
|
|
1
|
+
import { c as createCLI } from './chunks/cac.Dt7e1TIu.js';
|
|
2
2
|
import '@vitest/utils';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
6
|
import './chunks/constants.D_Q9UYh-.js';
|
|
7
|
-
import './chunks/index.
|
|
7
|
+
import './chunks/index.BIP7prJq.js';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
|
-
import './chunks/typechecker.
|
|
10
|
+
import './chunks/typechecker.DB-fIMaH.js';
|
|
11
11
|
import 'node:os';
|
|
12
12
|
import 'node:perf_hooks';
|
|
13
13
|
import '@vitest/utils/source-map';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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.DmP-iHLr.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.DmP-iHLr.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.CIk0YiKb.js';
|
|
6
|
+
import { F as FakeTimerInstallOpts } from './chunks/config.d.DacWrqWe.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import './chunks/environment.d.2fYMoz3o.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.DtfyY9yS.js';
|
|
14
|
+
import './chunks/worker.d.B2r4Ln6p.js';
|
|
15
15
|
import 'vite/module-runner';
|
|
16
16
|
import '@vitest/snapshot';
|
|
17
17
|
import '@vitest/pretty-format';
|
|
18
18
|
import '@vitest/utils/diff';
|
|
19
|
-
import '
|
|
19
|
+
import '@vitest/expect';
|
|
20
20
|
import 'vitest/optional-types.js';
|
|
21
21
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
|
22
22
|
import '@vitest/runner/utils';
|
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.DmP-iHLr.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/environment.d.2fYMoz3o.js';
|
|
4
4
|
import '@vitest/runner';
|
|
@@ -6,14 +6,14 @@ import '@vitest/utils';
|
|
|
6
6
|
import 'node:stream';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
|
-
import './chunks/browser.d.
|
|
10
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/browser.d.DtfyY9yS.js';
|
|
10
|
+
import './chunks/worker.d.B2r4Ln6p.js';
|
|
11
11
|
import 'vite/module-runner';
|
|
12
|
-
import './chunks/config.d.
|
|
12
|
+
import './chunks/config.d.DacWrqWe.js';
|
|
13
13
|
import '@vitest/pretty-format';
|
|
14
14
|
import '@vitest/snapshot';
|
|
15
15
|
import '@vitest/utils/diff';
|
|
16
|
-
import '
|
|
16
|
+
import '@vitest/expect';
|
|
17
17
|
import 'vitest/optional-types.js';
|
|
18
18
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
|
19
19
|
import '@vitest/runner/utils';
|
package/dist/coverage.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseCoverageProvider } from './chunks/coverage.
|
|
1
|
+
export { B as BaseCoverageProvider } from './chunks/coverage.CDRAMTt7.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:path';
|
|
4
4
|
import '@vitest/utils';
|
|
@@ -24,7 +24,7 @@ import 'node:tty';
|
|
|
24
24
|
import 'node:events';
|
|
25
25
|
import './chunks/index.Bgo3tNWt.js';
|
|
26
26
|
import 'tinypool';
|
|
27
|
-
import './chunks/typechecker.
|
|
27
|
+
import './chunks/typechecker.DB-fIMaH.js';
|
|
28
28
|
import 'node:perf_hooks';
|
|
29
29
|
import '@vitest/utils/source-map';
|
|
30
30
|
import 'tinyexec';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { S as SerializedTestSpecification } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
1
|
+
import { S as SerializedTestSpecification } from './chunks/browser.d.DtfyY9yS.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.DtfyY9yS.js';
|
|
3
3
|
import './chunks/global.d.K6uBQHzY.js';
|
|
4
4
|
import { File, TestAnnotation, TaskResultPack, TaskEventPack, TaskPopulated } from '@vitest/runner';
|
|
5
5
|
export { CancelReason, HookCleanupCallback, HookListener, 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 { a as BirpcReturn } from './chunks/worker.d.
|
|
7
|
-
export { C as ContextRPC, c as ContextTestEnvironment, b as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
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.
|
|
6
|
+
import { a as BirpcReturn } from './chunks/worker.d.B2r4Ln6p.js';
|
|
7
|
+
export { C as ContextRPC, c as ContextTestEnvironment, b as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.B2r4Ln6p.js';
|
|
8
|
+
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.DacWrqWe.js';
|
|
9
|
+
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.d.DacWrqWe.js';
|
|
10
10
|
import { b as Awaitable, U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/environment.d.2fYMoz3o.js';
|
|
11
11
|
export { A as AfterSuiteRunMeta } from './chunks/environment.d.2fYMoz3o.js';
|
|
12
12
|
import { ExpectStatic } from '@vitest/expect';
|
|
13
|
-
export { Assertion, AsymmetricMatchersContaining, DeeplyAllowMatchers, ExpectPollOptions, ExpectStatic, JestAssertion, Matchers } from '@vitest/expect';
|
|
13
|
+
export { Assertion, AsymmetricMatchersContaining, DeeplyAllowMatchers, ExpectPollOptions, ExpectStatic, JestAssertion, Matchers, chai } from '@vitest/expect';
|
|
14
14
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
15
15
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
16
16
|
import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.d.BE_2ls6u.js';
|
|
@@ -21,9 +21,6 @@ export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer,
|
|
|
21
21
|
export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
22
22
|
export { DiffOptions } from '@vitest/utils/diff';
|
|
23
23
|
export { EvaluatedModules } from 'vite/module-runner';
|
|
24
|
-
import * as chai from 'chai';
|
|
25
|
-
export { chai };
|
|
26
|
-
export { assert, should } from 'chai';
|
|
27
24
|
export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, TaskResult as BenchTaskResult } from 'tinybench';
|
|
28
25
|
import '@vitest/pretty-format';
|
|
29
26
|
import '@vitest/mocker';
|
|
@@ -82,6 +79,8 @@ type WebSocketRPC = BirpcReturn<WebSocketEvents, WebSocketHandlers>;
|
|
|
82
79
|
|
|
83
80
|
declare function createExpect(test?: TaskPopulated): ExpectStatic;
|
|
84
81
|
declare const globalExpect: ExpectStatic;
|
|
82
|
+
declare const assert: Chai.Assert;
|
|
83
|
+
declare const should: () => Chai.Should;
|
|
85
84
|
|
|
86
85
|
/**
|
|
87
86
|
* Gives access to injected context provided from the main thread.
|
|
@@ -479,7 +478,7 @@ interface VitestUtils {
|
|
|
479
478
|
*/
|
|
480
479
|
setConfig: (config: RuntimeOptions) => void;
|
|
481
480
|
/**
|
|
482
|
-
* If config was changed with `vi.setConfig`, this will reset it to the original state.
|
|
481
|
+
* If config was changed with `vi.setConfig`, this will reset it to the original state().
|
|
483
482
|
*/
|
|
484
483
|
resetConfig: () => void;
|
|
485
484
|
}
|
|
@@ -496,5 +495,5 @@ interface BrowserUI {
|
|
|
496
495
|
setIframeViewport: (width: number, height: number) => Promise<void>;
|
|
497
496
|
}
|
|
498
497
|
|
|
499
|
-
export { LabelColor, ModuleGraphData, ProvidedContext, SerializedConfig, SerializedTestSpecification, UserConsoleLog, assertType, createExpect, globalExpect as expect, inject, vi, vitest };
|
|
498
|
+
export { LabelColor, ModuleGraphData, ProvidedContext, SerializedConfig, SerializedTestSpecification, UserConsoleLog, assert, assertType, createExpect, globalExpect as expect, inject, should, vi, vitest };
|
|
500
499
|
export type { AssertType, BrowserUI, TransformResultWithSource, VitestUtils, WebSocketEvents, WebSocketHandlers, WebSocketRPC };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
export { c as createExpect,
|
|
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.BB37KeLx.js';
|
|
2
|
+
export { b as bench } from './chunks/benchmark.CJUa-Hsa.js';
|
|
3
|
+
export { a as assertType } from './chunks/index.C832ioot.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
|
-
|
|
8
|
-
export { chai };
|
|
9
|
-
export { assert, should } from 'chai';
|
|
10
|
-
import '@vitest/expect';
|
|
7
|
+
export { chai } from '@vitest/expect';
|
|
11
8
|
import '@vitest/runner/utils';
|
|
12
|
-
import './chunks/utils.
|
|
9
|
+
import './chunks/utils.D2R2NiOH.js';
|
|
13
10
|
import '@vitest/utils';
|
|
14
11
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
15
12
|
import '@vitest/snapshot';
|
|
@@ -1,9 +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.DxTLreRD.js';
|
|
3
3
|
import 'node:vm';
|
|
4
|
-
import '
|
|
4
|
+
import '@vitest/spy';
|
|
5
|
+
import './chunks/worker.d.B2r4Ln6p.js';
|
|
5
6
|
import '@vitest/runner';
|
|
6
|
-
import './chunks/config.d.
|
|
7
|
+
import './chunks/config.d.DacWrqWe.js';
|
|
7
8
|
import '@vitest/pretty-format';
|
|
8
9
|
import '@vitest/snapshot';
|
|
9
10
|
import '@vitest/utils/diff';
|
package/dist/module-evaluator.js
CHANGED
|
@@ -128,10 +128,10 @@ class VitestModuleEvaluator {
|
|
|
128
128
|
if (this.compiledFunctionArgumentsNames) argumentsList.push(...this.compiledFunctionArgumentsNames);
|
|
129
129
|
// add 'use strict' since ESM enables it by default
|
|
130
130
|
const codeDefinition = `'use strict';async (${argumentsList.join(",")})=>{{`, wrappedCode = `${codeDefinition}${code}\n}}`, options = {
|
|
131
|
-
filename: module.
|
|
131
|
+
filename: module.id,
|
|
132
132
|
lineOffset: 0,
|
|
133
133
|
columnOffset: -codeDefinition.length
|
|
134
|
-
}, finishModuleExecutionInfo = this.debug.startCalculateModuleExecutionInfo(filename, codeDefinition.length);
|
|
134
|
+
}, finishModuleExecutionInfo = this.debug.startCalculateModuleExecutionInfo(options.filename, codeDefinition.length);
|
|
135
135
|
try {
|
|
136
136
|
const initModule = this.vm ? vm.runInContext(wrappedCode, this.vm.context, options) : vm.runInThisContext(wrappedCode, options), dynamicRequest = async (dep, options) => {
|
|
137
137
|
return dep = String(dep), dep[0] === "#" ? context[ssrDynamicImportKey](wrapId(dep), options) : context[ssrDynamicImportKey](dep, options);
|
|
@@ -158,7 +158,7 @@ class VitestModuleEvaluator {
|
|
|
158
158
|
} finally {
|
|
159
159
|
// moduleExecutionInfo needs to use Node filename instead of the normalized one
|
|
160
160
|
// because we rely on this behaviour in coverage-v8, for example
|
|
161
|
-
this.options.moduleExecutionInfo?.set(filename, finishModuleExecutionInfo());
|
|
161
|
+
this.options.moduleExecutionInfo?.set(options.filename, finishModuleExecutionInfo());
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
createRequire(filename) {
|
package/dist/module-runner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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.BDRvKSdz.js';
|
|
3
|
+
export { g as getWorkerState } from './chunks/utils.D2R2NiOH.js';
|
|
4
4
|
import 'node:module';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'node:vm';
|
package/dist/node.d.ts
CHANGED
|
@@ -3,28 +3,28 @@ 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 { an 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 BrowserProviderInitializationOptions, a1 as BrowserProviderModule, a2 as BrowserProviderOptions, a3 as BrowserScript, a4 as BrowserServerState, a5 as BrowserServerStateSession, ac as BuiltinEnvironment, a6 as CDPSession, ad as CSSModuleScopeStrategy, ao as CoverageIstanbulOptions, ap as CoverageOptions, aq as CoverageProvider, ar as CoverageProviderModule, as as CoverageReporter, c as CoverageV8Options, at as CustomProviderOptions, ae as DepsOptimizationOptions, af as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a7 as ParentProjectBrowser, ag as PoolOptions, a8 as ProjectBrowser, ah as ProjectConfig, b as ReportContext, av as ReportedHookContext, aw as Reporter, aj as ResolveSnapshotPathHandler, ak as ResolveSnapshotPathHandlerContext, a9 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ai 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, ax as TestRunEndReason, au as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, aa as ToMatchScreenshotComparators, ab as ToMatchScreenshotOptions, al as TypecheckConfig, U as UserWorkspaceConfig, am 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.DmP-iHLr.js';
|
|
7
|
+
export { an 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 BrowserProviderInitializationOptions, a1 as BrowserProviderModule, a2 as BrowserProviderOptions, a3 as BrowserScript, a4 as BrowserServerState, a5 as BrowserServerStateSession, ac as BuiltinEnvironment, a6 as CDPSession, ad as CSSModuleScopeStrategy, ao as CoverageIstanbulOptions, ap as CoverageOptions, aq as CoverageProvider, ar as CoverageProviderModule, as as CoverageReporter, c as CoverageV8Options, at as CustomProviderOptions, ae as DepsOptimizationOptions, af as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a7 as ParentProjectBrowser, ag as PoolOptions, a8 as ProjectBrowser, ah as ProjectConfig, b as ReportContext, av as ReportedHookContext, aw as Reporter, aj as ResolveSnapshotPathHandler, ak as ResolveSnapshotPathHandlerContext, a9 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ai 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, ax as TestRunEndReason, au as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, aa as ToMatchScreenshotComparators, ab as ToMatchScreenshotOptions, al as TypecheckConfig, U as UserWorkspaceConfig, am as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.DmP-iHLr.js';
|
|
8
8
|
import { Awaitable } from '@vitest/utils';
|
|
9
9
|
export { SerializedError } from '@vitest/utils';
|
|
10
|
-
import { R as RuntimeRPC } from './chunks/worker.d.
|
|
11
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
10
|
+
import { R as RuntimeRPC } from './chunks/worker.d.B2r4Ln6p.js';
|
|
11
|
+
export { T as TestExecutionType } from './chunks/worker.d.B2r4Ln6p.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
14
|
-
export { W as WorkerContext } from './chunks/worker.d.
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.CIk0YiKb.js';
|
|
14
|
+
export { W as WorkerContext } from './chunks/worker.d.DJ6qxO2w.js';
|
|
15
15
|
import { Debugger } from 'debug';
|
|
16
16
|
import './chunks/global.d.K6uBQHzY.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.DacWrqWe.js';
|
|
19
19
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
20
20
|
import './chunks/environment.d.2fYMoz3o.js';
|
|
21
21
|
import '@vitest/mocker';
|
|
22
22
|
import '@vitest/utils/source-map';
|
|
23
|
-
import './chunks/browser.d.
|
|
23
|
+
import './chunks/browser.d.DtfyY9yS.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
|
26
26
|
import '@vitest/utils/diff';
|
|
27
|
-
import '
|
|
27
|
+
import '@vitest/expect';
|
|
28
28
|
import 'vitest/optional-types.js';
|
|
29
29
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
|
30
30
|
import 'tinybench';
|
|
@@ -34,7 +34,6 @@ import 'node:fs';
|
|
|
34
34
|
import 'node:console';
|
|
35
35
|
import 'vite/module-runner';
|
|
36
36
|
import 'node:worker_threads';
|
|
37
|
-
import '@vitest/expect';
|
|
38
37
|
|
|
39
38
|
type RawErrsMap = Map<string, TscErrorInfo[]>;
|
|
40
39
|
interface TscErrorInfo {
|
package/dist/node.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.eAzsLIxz.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.eAzsLIxz.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.Dt7e1TIu.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.CDRAMTt7.js';
|
|
8
|
+
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.CDRAMTt7.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils';
|
|
10
10
|
import { f as findUp } from './chunks/index.X0nbfr6-.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
@@ -18,9 +18,9 @@ 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.BIP7prJq.js';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import './chunks/typechecker.
|
|
23
|
+
import './chunks/typechecker.DB-fIMaH.js';
|
|
24
24
|
import 'node:perf_hooks';
|
|
25
25
|
import '@vitest/utils/source-map';
|
|
26
26
|
import 'tinyexec';
|
|
@@ -54,7 +54,7 @@ import '@vitest/mocker/node';
|
|
|
54
54
|
import './chunks/defaults.CXFFjsi8.js';
|
|
55
55
|
import './chunks/resolver.Bx6lE0iq.js';
|
|
56
56
|
import 'es-module-lexer';
|
|
57
|
-
import './chunks/index.
|
|
57
|
+
import './chunks/index.BjKEiSn0.js';
|
|
58
58
|
import 'node:assert';
|
|
59
59
|
import '@vitest/utils/error';
|
|
60
60
|
import 'node:readline';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aL as BaseReporter, aM as BenchmarkBuiltinReporters, ay as BenchmarkReporter, az as BenchmarkReportsMap, aN as BuiltinReporterOptions, aO as BuiltinReporters, aA as DefaultReporter, aB as DotReporter, aC as GithubActionsReporter, aD as HangingProcessReporter, aF as JUnitReporter, aP as JsonAssertionResult, aE as JsonReporter, aQ as JsonTestResult, aR as JsonTestResults, av as ReportedHookContext, aw as Reporter, aG as ReportersMap, aH as TapFlatReporter, aI as TapReporter, ax as TestRunEndReason, aJ as VerboseBenchmarkReporter, aK as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aL as BaseReporter, aM as BenchmarkBuiltinReporters, ay as BenchmarkReporter, az as BenchmarkReportsMap, aN as BuiltinReporterOptions, aO as BuiltinReporters, aA as DefaultReporter, aB as DotReporter, aC as GithubActionsReporter, aD as HangingProcessReporter, aF as JUnitReporter, aP as JsonAssertionResult, aE as JsonReporter, aQ as JsonTestResult, aR as JsonTestResults, av as ReportedHookContext, aw as Reporter, aG as ReportersMap, aH as TapFlatReporter, aI as TapReporter, ax as TestRunEndReason, aJ as VerboseBenchmarkReporter, aK as VerboseReporter } from './chunks/reporters.d.DmP-iHLr.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/environment.d.2fYMoz3o.js';
|
|
@@ -6,14 +6,14 @@ import 'node:stream';
|
|
|
6
6
|
import 'vite';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
|
-
import './chunks/browser.d.
|
|
10
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/browser.d.DtfyY9yS.js';
|
|
10
|
+
import './chunks/worker.d.B2r4Ln6p.js';
|
|
11
11
|
import 'vite/module-runner';
|
|
12
|
-
import './chunks/config.d.
|
|
12
|
+
import './chunks/config.d.DacWrqWe.js';
|
|
13
13
|
import '@vitest/pretty-format';
|
|
14
14
|
import '@vitest/snapshot';
|
|
15
15
|
import '@vitest/utils/diff';
|
|
16
|
-
import '
|
|
16
|
+
import '@vitest/expect';
|
|
17
17
|
import 'vitest/optional-types.js';
|
|
18
18
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
|
19
19
|
import '@vitest/runner/utils';
|
package/dist/reporters.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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.BIP7prJq.js';
|
|
2
|
+
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.BjKEiSn0.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
|
6
|
-
import './chunks/typechecker.
|
|
6
|
+
import './chunks/typechecker.DB-fIMaH.js';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:perf_hooks';
|
|
9
9
|
import '@vitest/utils/source-map';
|
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.DacWrqWe.js';
|
|
5
5
|
import '@vitest/pretty-format';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
7
|
import '@vitest/utils/diff';
|