vitest 4.0.0-beta.16 → 4.0.0-beta.18
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/browser/context.d.ts +1 -0
- package/dist/browser.d.ts +16 -3
- package/dist/browser.js +1 -1
- package/dist/chunks/{browser.d.CM1rjKAX.d.ts → browser.d.CCG7W26I.d.ts} +1 -1
- package/dist/chunks/{cac.BUHfInSv.js → cac.DYnuYoJK.js} +7 -7
- package/dist/chunks/{cli-api.BB9IOXn3.js → cli-api.xhe4uqTX.js} +15 -7
- package/dist/chunks/{config.d.DGazh2r6.d.ts → config.d.C4PpNy7v.d.ts} +1 -1
- package/dist/chunks/{coverage.3htTSxXZ.js → coverage.Ds84cgzV.js} +85 -43
- package/dist/chunks/{creator.Daoa5_gR.js → creator.DucAaYBz.js} +1 -1
- package/dist/chunks/{global.d.YxmikCHu.d.ts → global.d.RTA0rbJI.d.ts} +2 -1
- package/dist/chunks/{globals.DC4ntO86.js → globals.CwYe1aG7.js} +2 -2
- package/dist/chunks/{index.Dnl38iQ_.js → index.Bcjk8TKX.js} +1 -1
- package/dist/chunks/{index.Bt-upxGS.js → index.CbWINfS7.js} +29 -4
- package/dist/chunks/{index.DehVUBn4.js → index.D2gVI9Ck.js} +1 -1
- package/dist/chunks/{index.01uBqPwR.js → index.eEkl9h8v.js} +1 -1
- package/dist/chunks/{moduleRunner.d.CTZUg34g.d.ts → moduleRunner.d.aXWuQhZN.d.ts} +1 -1
- package/dist/chunks/{plugin.d.DvkMsuLk.d.ts → plugin.d.XtKKWlOO.d.ts} +1 -1
- package/dist/chunks/{reporters.d.DhY37FSs.d.ts → reporters.d.BJ_OuJGZ.d.ts} +48 -17
- package/dist/chunks/{resolveSnapshotEnvironment.BsJpmVZR.js → resolveSnapshotEnvironment.tw2a5ux8.js} +2 -2
- package/dist/chunks/{setup-common.BewgbkTd.js → setup-common.DgXU7Yho.js} +1 -1
- package/dist/chunks/{test.CTuWuHYH.js → test.C3RPt8JR.js} +1 -1
- package/dist/chunks/{vi.B2--mG9U.js → vi.BZvkKVkM.js} +1 -1
- package/dist/chunks/{worker.DVTUM2IW.js → worker.CdzokOSx.js} +1 -1
- package/dist/chunks/{worker.d.B8jq7m7O.d.ts → worker.d.DSgBAZPX.d.ts} +1 -1
- package/dist/cli.js +2 -2
- package/dist/config.d.ts +6 -6
- package/dist/coverage.d.ts +4 -4
- package/dist/coverage.js +1 -1
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/module-evaluator.d.ts +3 -3
- package/dist/node.d.ts +8 -8
- package/dist/node.js +7 -7
- package/dist/reporters.d.ts +4 -4
- package/dist/reporters.js +2 -2
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +2 -2
- package/dist/worker-base.js +7 -7
- package/dist/worker-vm.js +2 -2
- package/dist/workers/runVmTests.js +5 -5
- package/package.json +15 -16
|
@@ -2,7 +2,7 @@ import * as _vitest_spy from '@vitest/spy';
|
|
|
2
2
|
import vm from 'node:vm';
|
|
3
3
|
import * as viteModuleRunner from 'vite/module-runner';
|
|
4
4
|
import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode, FetchFunction, EvaluatedModules } from 'vite/module-runner';
|
|
5
|
-
import { a as RuntimeRPC, c as ResolveFunctionResult, W as WorkerGlobalState } from './worker.d.
|
|
5
|
+
import { a as RuntimeRPC, c as ResolveFunctionResult, W as WorkerGlobalState } from './worker.d.DSgBAZPX.js';
|
|
6
6
|
import { MockedModule, MockedModuleType } from '@vitest/mocker';
|
|
7
7
|
import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './mocker.d.BE_2ls6u.js';
|
|
8
8
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CancelReason, TaskMeta, Suite, File, TestAnnotation, ImportDuration, Test, Task, TaskResultPack, SequenceSetupFiles, SequenceHooks } from '@vitest/runner';
|
|
2
2
|
import { Awaitable, ParsedStack, TestError, SerializedError, Arrayable } from '@vitest/utils';
|
|
3
|
-
import { P as ProvidedContext, A as AfterSuiteRunMeta, U as UserConsoleLog, L as LabelColor } from './worker.d.
|
|
3
|
+
import { P as ProvidedContext, A as AfterSuiteRunMeta, U as UserConsoleLog, L as LabelColor } from './worker.d.DSgBAZPX.js';
|
|
4
4
|
import { Writable } from 'node:stream';
|
|
5
5
|
import { Plugin, ViteDevServer, TransformResult as TransformResult$1, UserConfig as UserConfig$1, DepOptimizationConfig, ServerOptions, ConfigEnv, AliasOptions } from 'vite';
|
|
6
6
|
import { MockedModule } from '@vitest/mocker';
|
|
7
7
|
import { StackTraceParserOptions } from '@vitest/utils/source-map';
|
|
8
8
|
import { BrowserCommands } from 'vitest/browser';
|
|
9
|
-
import { B as BrowserTraceViewMode,
|
|
10
|
-
import { B as BrowserTesterOptions, S as SerializedTestSpecification } from './browser.d.
|
|
9
|
+
import { B as BrowserTraceViewMode, S as SerializedConfig, F as FakeTimerInstallOpts } from './config.d.C4PpNy7v.js';
|
|
10
|
+
import { B as BrowserTesterOptions, S as SerializedTestSpecification } from './browser.d.CCG7W26I.js';
|
|
11
11
|
import { PrettyFormatOptions } from '@vitest/pretty-format';
|
|
12
12
|
import { SnapshotSummary, SnapshotStateOptions } from '@vitest/snapshot';
|
|
13
13
|
import { SerializedDiffOptions } from '@vitest/utils/diff';
|
|
@@ -609,7 +609,6 @@ declare class TestProject {
|
|
|
609
609
|
options?: InitializeProjectOptions | undefined;
|
|
610
610
|
/**
|
|
611
611
|
* The global Vitest instance.
|
|
612
|
-
* @experimental The public Vitest API is experimental and does not follow semver.
|
|
613
612
|
*/
|
|
614
613
|
readonly vitest: Vitest;
|
|
615
614
|
/**
|
|
@@ -1556,6 +1555,16 @@ declare class StateManager {
|
|
|
1556
1555
|
reportedTasksMap: WeakMap<Task, TestModule | TestCase | TestSuite>;
|
|
1557
1556
|
blobs?: MergedBlobs;
|
|
1558
1557
|
transformTime: number;
|
|
1558
|
+
metadata: Record<string, {
|
|
1559
|
+
externalized: Record<string, string>;
|
|
1560
|
+
duration: Record<string, number[]>;
|
|
1561
|
+
tmps: Record<string, string>;
|
|
1562
|
+
dumpDir?: string;
|
|
1563
|
+
outline?: {
|
|
1564
|
+
externalized: number;
|
|
1565
|
+
inlined: number;
|
|
1566
|
+
};
|
|
1567
|
+
}>;
|
|
1559
1568
|
onUnhandledError?: OnUnhandledErrorCallback;
|
|
1560
1569
|
constructor(options: {
|
|
1561
1570
|
onUnhandledError?: OnUnhandledErrorCallback;
|
|
@@ -2034,6 +2043,22 @@ declare class DefaultReporter extends BaseReporter {
|
|
|
2034
2043
|
onInit(ctx: Vitest): void;
|
|
2035
2044
|
}
|
|
2036
2045
|
|
|
2046
|
+
interface GithubActionsReporterOptions {
|
|
2047
|
+
onWritePath?: (path: string) => string;
|
|
2048
|
+
/**
|
|
2049
|
+
* @default true
|
|
2050
|
+
*/
|
|
2051
|
+
displayAnnotations?: boolean;
|
|
2052
|
+
}
|
|
2053
|
+
declare class GithubActionsReporter implements Reporter {
|
|
2054
|
+
ctx: Vitest;
|
|
2055
|
+
options: GithubActionsReporterOptions;
|
|
2056
|
+
constructor(options?: GithubActionsReporterOptions);
|
|
2057
|
+
onInit(ctx: Vitest): void;
|
|
2058
|
+
onTestCaseAnnotate(testCase: TestCase, annotation: TestAnnotation): void;
|
|
2059
|
+
onTestRunEnd(testModules: ReadonlyArray<TestModule>, unhandledErrors: ReadonlyArray<SerializedError>): void;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2037
2062
|
interface HTMLOptions {
|
|
2038
2063
|
outputFile?: string;
|
|
2039
2064
|
}
|
|
@@ -2151,18 +2176,6 @@ declare class DotReporter extends BaseReporter {
|
|
|
2151
2176
|
private createSummary;
|
|
2152
2177
|
}
|
|
2153
2178
|
|
|
2154
|
-
interface GithubActionsReporterOptions {
|
|
2155
|
-
onWritePath?: (path: string) => string;
|
|
2156
|
-
}
|
|
2157
|
-
declare class GithubActionsReporter implements Reporter {
|
|
2158
|
-
ctx: Vitest;
|
|
2159
|
-
options: GithubActionsReporterOptions;
|
|
2160
|
-
constructor(options?: GithubActionsReporterOptions);
|
|
2161
|
-
onInit(ctx: Vitest): void;
|
|
2162
|
-
onTestCaseAnnotate(testCase: TestCase, annotation: TestAnnotation): void;
|
|
2163
|
-
onTestRunEnd(testModules: ReadonlyArray<TestModule>, unhandledErrors: ReadonlyArray<SerializedError>): void;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
2179
|
declare class HangingProcessReporter implements Reporter {
|
|
2167
2180
|
whyRunning: (() => void) | undefined;
|
|
2168
2181
|
onInit(): void;
|
|
@@ -2256,6 +2269,7 @@ interface BuiltinReporterOptions {
|
|
|
2256
2269
|
"junit": JUnitOptions;
|
|
2257
2270
|
"hanging-process": never;
|
|
2258
2271
|
"html": HTMLOptions;
|
|
2272
|
+
"github-actions": GithubActionsReporterOptions;
|
|
2259
2273
|
}
|
|
2260
2274
|
|
|
2261
2275
|
interface TestSequencer {
|
|
@@ -2489,6 +2503,23 @@ interface InlineConfig {
|
|
|
2489
2503
|
deps?: DepsOptions;
|
|
2490
2504
|
server?: {
|
|
2491
2505
|
deps?: ServerDepsOptions;
|
|
2506
|
+
debug?: {
|
|
2507
|
+
/**
|
|
2508
|
+
* The folder where Vitest stores the contents of transformed
|
|
2509
|
+
* test files that can be inspected manually.
|
|
2510
|
+
*
|
|
2511
|
+
* If `true`, Vitest dumps the files in `.vitest-dump` folder relative to the root of the project.
|
|
2512
|
+
*
|
|
2513
|
+
* You can also use `VITEST_DEBUG_DUMP` env variable to enable this.
|
|
2514
|
+
*/
|
|
2515
|
+
dump?: string | true;
|
|
2516
|
+
/**
|
|
2517
|
+
* If dump is enabled, should Vitest load the files from there instead of transforming them.
|
|
2518
|
+
*
|
|
2519
|
+
* You can also use `VITEST_DEBUG_LOAD_DUMP` env variable to enable this.
|
|
2520
|
+
*/
|
|
2521
|
+
load?: boolean;
|
|
2522
|
+
};
|
|
2492
2523
|
};
|
|
2493
2524
|
/**
|
|
2494
2525
|
* Base directory to scan for the test files
|
|
@@ -2683,7 +2714,6 @@ interface InlineConfig {
|
|
|
2683
2714
|
ui?: boolean;
|
|
2684
2715
|
/**
|
|
2685
2716
|
* options for test in a browser environment
|
|
2686
|
-
* @experimental
|
|
2687
2717
|
*
|
|
2688
2718
|
* @default false
|
|
2689
2719
|
*/
|
|
@@ -3115,6 +3145,7 @@ interface ResolvedConfig extends Omit<Required<UserConfig>, "project" | "config"
|
|
|
3115
3145
|
};
|
|
3116
3146
|
runner?: string;
|
|
3117
3147
|
maxWorkers: number;
|
|
3148
|
+
dumpDir?: string;
|
|
3118
3149
|
}
|
|
3119
3150
|
type NonProjectOptions = "shard" | "watch" | "run" | "cache" | "update" | "reporters" | "outputFile" | "teardownTimeout" | "silent" | "forceRerunTriggers" | "testNamePattern" | "ui" | "open" | "uiBase" | "snapshotFormat" | "resolveSnapshotPath" | "passWithNoTests" | "onConsoleLog" | "onStackTrace" | "dangerouslyIgnoreUnhandledErrors" | "slowTestThreshold" | "inspect" | "inspectBrk" | "coverage" | "maxWorkers" | "fileParallelism" | "watchTriggerPatterns";
|
|
3120
3151
|
interface ServerDepsOptions {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { chai } from '@vitest/expect';
|
|
2
|
-
import { l as loadDiffConfig, b as loadSnapshotSerializers, t as takeCoverageInsideWorker } from './setup-common.
|
|
2
|
+
import { l as loadDiffConfig, b as loadSnapshotSerializers, t as takeCoverageInsideWorker } from './setup-common.DgXU7Yho.js';
|
|
3
3
|
import { r as rpc } from './rpc.cD77ENhU.js';
|
|
4
4
|
import { g as getWorkerState } from './utils.CG9h5ccR.js';
|
|
5
|
-
import { V as VitestTestRunner, N as NodeBenchmarkRunner } from './test.
|
|
5
|
+
import { V as VitestTestRunner, N as NodeBenchmarkRunner } from './test.C3RPt8JR.js';
|
|
6
6
|
|
|
7
7
|
function setupChaiConfig(config) {
|
|
8
8
|
Object.assign(chai.config, config);
|
|
@@ -18,7 +18,7 @@ async function stopCoverageInsideWorker(options, loader, runtimeOptions) {
|
|
|
18
18
|
|
|
19
19
|
let globalSetup = false;
|
|
20
20
|
async function setupCommonEnv(config) {
|
|
21
|
-
if (setupDefines(config), setupEnv(config.env), !globalSetup && (globalSetup = true, setSafeTimers(), config.globals)) (await import('./globals.
|
|
21
|
+
if (setupDefines(config), setupEnv(config.env), !globalSetup && (globalSetup = true, setSafeTimers(), config.globals)) (await import('./globals.CwYe1aG7.js')).registerApiGlobally();
|
|
22
22
|
}
|
|
23
23
|
function setupDefines(config) {
|
|
24
24
|
for (const key in config.defines) globalThis[key] = config.defines[key];
|
|
@@ -7,7 +7,7 @@ import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
|
|
|
7
7
|
import { getTests, getNames, getTestName } from '@vitest/runner/utils';
|
|
8
8
|
import { processError } from '@vitest/utils/error';
|
|
9
9
|
import { normalize } from 'pathe';
|
|
10
|
-
import { a as getSnapshotClient, i as inject, c as createExpect, v as vi } from './vi.
|
|
10
|
+
import { a as getSnapshotClient, i as inject, c as createExpect, v as vi } from './vi.BZvkKVkM.js';
|
|
11
11
|
import { r as rpc } from './rpc.cD77ENhU.js';
|
|
12
12
|
|
|
13
13
|
function createBenchmarkResult(name) {
|
|
@@ -257,7 +257,7 @@ function createExpect(test) {
|
|
|
257
257
|
return getWorkerState().filepath;
|
|
258
258
|
},
|
|
259
259
|
currentTestName: test ? getTestName(test) : globalState.currentTestName
|
|
260
|
-
}, expect), expect.extend = (matchers) => chai.expect.extend(expect, matchers), expect.addEqualityTesters = (customTesters) => addCustomEqualityTesters(customTesters), expect.soft = (...args) => {
|
|
260
|
+
}, expect), expect.assert = chai.assert, expect.extend = (matchers) => chai.expect.extend(expect, matchers), expect.addEqualityTesters = (customTesters) => addCustomEqualityTesters(customTesters), expect.soft = (...args) => {
|
|
261
261
|
// @ts-expect-error private soft access
|
|
262
262
|
return expect(...args).withContext({ soft: true });
|
|
263
263
|
}, expect.poll = createExpectPoll(expect), expect.unreachable = (message) => {
|
|
@@ -5,7 +5,7 @@ import { isBuiltin } from 'node:module';
|
|
|
5
5
|
import { pathToFileURL } from 'node:url';
|
|
6
6
|
import { resolve } from 'pathe';
|
|
7
7
|
import { b as VitestTransport } from './startModuleRunner.DPBo3mme.js';
|
|
8
|
-
import { e as environments } from './index.
|
|
8
|
+
import { e as environments } from './index.CbWINfS7.js';
|
|
9
9
|
import { s as setupInspect } from './inspector.Br76Q2Mb.js';
|
|
10
10
|
import { c as createRuntimeRpc, a as rpcDone } from './rpc.cD77ENhU.js';
|
|
11
11
|
import { i as isChildProcess } from './utils.CG9h5ccR.js';
|
|
@@ -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 {
|
|
3
|
+
import { S as SerializedConfig } from './config.d.C4PpNy7v.js';
|
|
4
4
|
import { E as Environment } from './environment.d.CrsxCzP1.js';
|
|
5
5
|
import { SnapshotResult } from '@vitest/snapshot';
|
|
6
6
|
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as createCLI } from './chunks/cac.
|
|
1
|
+
import { c as createCLI } from './chunks/cac.DYnuYoJK.js';
|
|
2
2
|
import '@vitest/utils/helpers';
|
|
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.D2gVI9Ck.js';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import './chunks/typechecker.DsKAhua5.js';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.BJ_OuJGZ.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.BJ_OuJGZ.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.XtKKWlOO.js';
|
|
6
|
+
import { F as FakeTimerInstallOpts } from './chunks/config.d.C4PpNy7v.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/worker.d.DSgBAZPX.js';
|
|
10
10
|
import 'vite/module-runner';
|
|
11
11
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
@@ -14,7 +14,7 @@ import 'node:stream';
|
|
|
14
14
|
import '@vitest/mocker';
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
16
|
import 'vitest/browser';
|
|
17
|
-
import './chunks/browser.d.
|
|
17
|
+
import './chunks/browser.d.CCG7W26I.js';
|
|
18
18
|
import '@vitest/pretty-format';
|
|
19
19
|
import '@vitest/utils/diff';
|
|
20
20
|
import '@vitest/expect';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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.BJ_OuJGZ.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
|
-
import { A as AfterSuiteRunMeta } from './chunks/worker.d.
|
|
3
|
+
import { A as AfterSuiteRunMeta } from './chunks/worker.d.DSgBAZPX.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
7
7
|
import '@vitest/mocker';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
9
|
import 'vitest/browser';
|
|
10
|
-
import './chunks/config.d.
|
|
10
|
+
import './chunks/config.d.C4PpNy7v.js';
|
|
11
11
|
import '@vitest/pretty-format';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/utils/diff';
|
|
14
|
-
import './chunks/browser.d.
|
|
14
|
+
import './chunks/browser.d.CCG7W26I.js';
|
|
15
15
|
import '@vitest/expect';
|
|
16
16
|
import 'vitest/optional-types.js';
|
|
17
17
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/coverage.js
CHANGED
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.CbWINfS7.js';
|
|
2
2
|
import 'node:console';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.CCG7W26I.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.CCG7W26I.js';
|
|
3
|
+
import './chunks/global.d.RTA0rbJI.js';
|
|
4
4
|
import { File, TestAnnotation, TaskResultPack, TaskEventPack, TaskPopulated } from '@vitest/runner';
|
|
5
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
6
|
import { Awaitable } from '@vitest/utils';
|
|
7
7
|
export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
8
|
-
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, B as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.
|
|
9
|
-
export { A as AfterSuiteRunMeta, C as ContextRPC, b as ContextTestEnvironment, R as RunnerRPC, a as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
10
|
-
import {
|
|
11
|
-
export { b as RuntimeConfig,
|
|
8
|
+
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, B as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.DSgBAZPX.js';
|
|
9
|
+
export { A as AfterSuiteRunMeta, C as ContextRPC, b as ContextTestEnvironment, R as RunnerRPC, a as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.DSgBAZPX.js';
|
|
10
|
+
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.C4PpNy7v.js';
|
|
11
|
+
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.d.C4PpNy7v.js';
|
|
12
12
|
import { ExpectStatic } from '@vitest/expect';
|
|
13
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';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
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.BZvkKVkM.js';
|
|
2
2
|
export { b as bench } from './chunks/benchmark.DHKMYAts.js';
|
|
3
|
-
export { a as assertType } from './chunks/index.
|
|
3
|
+
export { a as assertType } from './chunks/index.Bcjk8TKX.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';
|
|
@@ -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.aXWuQhZN.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/worker.d.
|
|
5
|
+
import './chunks/worker.d.DSgBAZPX.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
|
-
import './chunks/config.d.
|
|
7
|
+
import './chunks/config.d.C4PpNy7v.js';
|
|
8
8
|
import '@vitest/pretty-format';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/diff';
|
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 { ao 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, a0 as BrowserProvider, a1 as BrowserProviderOption, a2 as BrowserScript, a3 as BrowserServerFactory, a4 as BrowserServerOptions, a5 as BrowserServerState, a6 as BrowserServerStateSession, ad as BuiltinEnvironment, a7 as CDPSession, ae as CSSModuleScopeStrategy, ap as CoverageIstanbulOptions, aq as CoverageOptions, ar as CoverageProvider, as as CoverageProviderModule, at as CoverageReporter, c as CoverageV8Options, au as CustomProviderOptions, af as DepsOptimizationOptions, ag as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a8 as ParentProjectBrowser, ah as PoolOptions, a9 as ProjectBrowser, ai as ProjectConfig, b as ReportContext, aw as ReportedHookContext, ax as Reporter, ak as ResolveSnapshotPathHandler, al as ResolveSnapshotPathHandlerContext, aa as ResolvedBrowserOptions, R as ResolvedCoverageOptions, aj 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, ay as TestRunEndReason, av as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, ab as ToMatchScreenshotComparators, ac as ToMatchScreenshotOptions, am as TypecheckConfig, U as UserWorkspaceConfig, an as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, _ as _BrowserNames, 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.BJ_OuJGZ.js';
|
|
7
|
+
export { ao 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, a0 as BrowserProvider, a1 as BrowserProviderOption, a2 as BrowserScript, a3 as BrowserServerFactory, a4 as BrowserServerOptions, a5 as BrowserServerState, a6 as BrowserServerStateSession, ad as BuiltinEnvironment, a7 as CDPSession, ae as CSSModuleScopeStrategy, ap as CoverageIstanbulOptions, aq as CoverageOptions, ar as CoverageProvider, as as CoverageProviderModule, at as CoverageReporter, c as CoverageV8Options, au as CustomProviderOptions, af as DepsOptimizationOptions, ag as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a8 as ParentProjectBrowser, ah as PoolOptions, a9 as ProjectBrowser, ai as ProjectConfig, b as ReportContext, aw as ReportedHookContext, ax as Reporter, ak as ResolveSnapshotPathHandler, al as ResolveSnapshotPathHandlerContext, aa as ResolvedBrowserOptions, R as ResolvedCoverageOptions, aj 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, ay as TestRunEndReason, av as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, ab as ToMatchScreenshotComparators, ac as ToMatchScreenshotOptions, am as TypecheckConfig, U as UserWorkspaceConfig, an as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, _ as _BrowserNames, E as experimental_getRunnerTask } from './chunks/reporters.d.BJ_OuJGZ.js';
|
|
8
8
|
import { Awaitable } from '@vitest/utils';
|
|
9
9
|
export { SerializedError } from '@vitest/utils';
|
|
10
|
-
import { a as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.
|
|
11
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
10
|
+
import { a as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.DSgBAZPX.js';
|
|
11
|
+
export { T as TestExecutionType } from './chunks/worker.d.DSgBAZPX.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.XtKKWlOO.js';
|
|
14
14
|
import { MessagePort } from 'node:worker_threads';
|
|
15
15
|
import { Debugger } from 'debug';
|
|
16
|
-
import './chunks/global.d.
|
|
16
|
+
import './chunks/global.d.RTA0rbJI.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.C4PpNy7v.js';
|
|
19
19
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
20
20
|
import '@vitest/mocker';
|
|
21
21
|
import '@vitest/utils/source-map';
|
|
22
22
|
import 'vitest/browser';
|
|
23
|
-
import './chunks/browser.d.
|
|
23
|
+
import './chunks/browser.d.CCG7W26I.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
|
26
26
|
import '@vitest/utils/diff';
|
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, 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, d as createDebugger, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.xhe4uqTX.js';
|
|
5
|
+
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, 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.xhe4uqTX.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.DYnuYoJK.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.Ds84cgzV.js';
|
|
8
|
+
export { b as BaseSequencer, d as createDebugger, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.Ds84cgzV.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
10
|
import { a as any } from './chunks/index.Dc3xnDvT.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
@@ -38,7 +38,7 @@ import 'vite/module-runner';
|
|
|
38
38
|
import 'node:console';
|
|
39
39
|
import 'tinyrainbow';
|
|
40
40
|
import '@vitest/utils/highlight';
|
|
41
|
-
import './chunks/index.
|
|
41
|
+
import './chunks/index.D2gVI9Ck.js';
|
|
42
42
|
import 'node:fs/promises';
|
|
43
43
|
import '@vitest/utils/source-map';
|
|
44
44
|
import './chunks/env.D4Lgay0q.js';
|
|
@@ -57,7 +57,7 @@ import './chunks/defaults.CXFFjsi8.js';
|
|
|
57
57
|
import '@vitest/utils/constants';
|
|
58
58
|
import '@vitest/utils/resolver';
|
|
59
59
|
import 'es-module-lexer';
|
|
60
|
-
import './chunks/index.
|
|
60
|
+
import './chunks/index.eEkl9h8v.js';
|
|
61
61
|
import 'node:assert';
|
|
62
62
|
import '@vitest/utils/serialize';
|
|
63
63
|
import 'node:readline';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { aM as BaseReporter, aN as BenchmarkBuiltinReporters, az as BenchmarkReporter, aA as BenchmarkReportsMap, aO as BuiltinReporterOptions, aP as BuiltinReporters, aB as DefaultReporter, aC as DotReporter, aD as GithubActionsReporter, aE as HangingProcessReporter, aG as JUnitReporter, aQ as JsonAssertionResult, aF as JsonReporter, aR as JsonTestResult, aS as JsonTestResults, aw as ReportedHookContext, ax as Reporter, aH as ReportersMap, aI as TapFlatReporter, aJ as TapReporter, ay as TestRunEndReason, aK as VerboseBenchmarkReporter, aL as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aM as BaseReporter, aN as BenchmarkBuiltinReporters, az as BenchmarkReporter, aA as BenchmarkReportsMap, aO as BuiltinReporterOptions, aP as BuiltinReporters, aB as DefaultReporter, aC as DotReporter, aD as GithubActionsReporter, aE as HangingProcessReporter, aG as JUnitReporter, aQ as JsonAssertionResult, aF as JsonReporter, aR as JsonTestResult, aS as JsonTestResults, aw as ReportedHookContext, ax as Reporter, aH as ReportersMap, aI as TapFlatReporter, aJ as TapReporter, ay as TestRunEndReason, aK as VerboseBenchmarkReporter, aL as VerboseReporter } from './chunks/reporters.d.BJ_OuJGZ.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
|
-
import './chunks/worker.d.
|
|
4
|
+
import './chunks/worker.d.DSgBAZPX.js';
|
|
5
5
|
import 'vite/module-runner';
|
|
6
|
-
import './chunks/config.d.
|
|
6
|
+
import './chunks/config.d.C4PpNy7v.js';
|
|
7
7
|
import '@vitest/pretty-format';
|
|
8
8
|
import '@vitest/snapshot';
|
|
9
9
|
import '@vitest/utils/diff';
|
|
@@ -13,7 +13,7 @@ import 'vite';
|
|
|
13
13
|
import '@vitest/mocker';
|
|
14
14
|
import '@vitest/utils/source-map';
|
|
15
15
|
import 'vitest/browser';
|
|
16
|
-
import './chunks/browser.d.
|
|
16
|
+
import './chunks/browser.d.CCG7W26I.js';
|
|
17
17
|
import '@vitest/expect';
|
|
18
18
|
import 'vitest/optional-types.js';
|
|
19
19
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/reporters.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.D2gVI9Ck.js';
|
|
2
|
+
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.eEkl9h8v.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import './chunks/typechecker.DsKAhua5.js';
|
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 {
|
|
4
|
+
import { S as SerializedConfig } from './chunks/config.d.C4PpNy7v.js';
|
|
5
5
|
import '@vitest/pretty-format';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
7
|
import '@vitest/utils/diff';
|
package/dist/runners.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.
|
|
1
|
+
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.C3RPt8JR.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils/helpers';
|
|
4
4
|
import '@vitest/utils/timers';
|
|
@@ -8,7 +8,7 @@ import './chunks/utils.CG9h5ccR.js';
|
|
|
8
8
|
import '@vitest/expect';
|
|
9
9
|
import '@vitest/utils/error';
|
|
10
10
|
import 'pathe';
|
|
11
|
-
import './chunks/vi.
|
|
11
|
+
import './chunks/vi.BZvkKVkM.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/spy';
|
|
14
14
|
import '@vitest/utils/offset';
|
package/dist/worker-base.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createForksRpcOptions, u as unwrapSerializableConfig, a as createThreadsRpcOptions, e as execute, t as teardown$1 } from './chunks/worker.
|
|
1
|
+
import { c as createForksRpcOptions, u as unwrapSerializableConfig, a as createThreadsRpcOptions, e as execute, t as teardown$1 } from './chunks/worker.CdzokOSx.js';
|
|
2
2
|
import v8 from 'node:v8';
|
|
3
3
|
import { runInThisContext } from 'node:vm';
|
|
4
4
|
import * as spyModule from '@vitest/spy';
|
|
@@ -6,9 +6,9 @@ import { EvaluatedModules } from 'vite/module-runner';
|
|
|
6
6
|
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './chunks/startModuleRunner.DPBo3mme.js';
|
|
7
7
|
import { performance } from 'node:perf_hooks';
|
|
8
8
|
import { startTests, collectTests } from '@vitest/runner';
|
|
9
|
-
import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './chunks/resolveSnapshotEnvironment.
|
|
10
|
-
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './chunks/setup-common.
|
|
11
|
-
import { g as globalExpect, v as vi } from './chunks/vi.
|
|
9
|
+
import { a as resolveSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './chunks/resolveSnapshotEnvironment.tw2a5ux8.js';
|
|
10
|
+
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './chunks/setup-common.DgXU7Yho.js';
|
|
11
|
+
import { g as globalExpect, v as vi } from './chunks/vi.BZvkKVkM.js';
|
|
12
12
|
import { c as closeInspector } from './chunks/inspector.Br76Q2Mb.js';
|
|
13
13
|
import { createRequire } from 'node:module';
|
|
14
14
|
import timers from 'node:timers';
|
|
@@ -16,13 +16,13 @@ import timersPromises from 'node:timers/promises';
|
|
|
16
16
|
import util from 'node:util';
|
|
17
17
|
import { KNOWN_ASSET_TYPES } from '@vitest/utils/constants';
|
|
18
18
|
import { getSafeTimers } from '@vitest/utils/timers';
|
|
19
|
-
import { i as index } from './chunks/index.
|
|
19
|
+
import { i as index } from './chunks/index.Bcjk8TKX.js';
|
|
20
20
|
import { g as getWorkerState, r as resetModules, p as provideWorkerState } from './chunks/utils.CG9h5ccR.js';
|
|
21
21
|
import '@vitest/utils/source-map';
|
|
22
22
|
import 'node:fs';
|
|
23
23
|
import 'node:url';
|
|
24
24
|
import 'pathe';
|
|
25
|
-
import './chunks/index.
|
|
25
|
+
import './chunks/index.CbWINfS7.js';
|
|
26
26
|
import 'node:console';
|
|
27
27
|
import './chunks/rpc.cD77ENhU.js';
|
|
28
28
|
import './chunks/index.Bgo3tNWt.js';
|
|
@@ -33,7 +33,7 @@ import '@vitest/utils/serialize';
|
|
|
33
33
|
import './module-evaluator.js';
|
|
34
34
|
import '@vitest/mocker';
|
|
35
35
|
import '@vitest/expect';
|
|
36
|
-
import './chunks/test.
|
|
36
|
+
import './chunks/test.C3RPt8JR.js';
|
|
37
37
|
import './chunks/benchmark.DHKMYAts.js';
|
|
38
38
|
import '@vitest/runner/utils';
|
|
39
39
|
import '@vitest/utils/error';
|
package/dist/worker-vm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createForksRpcOptions, u as unwrapSerializableConfig, a as createThreadsRpcOptions, e as execute, t as teardown$1 } from './chunks/worker.
|
|
1
|
+
import { c as createForksRpcOptions, u as unwrapSerializableConfig, a as createThreadsRpcOptions, e as execute, t as teardown$1 } from './chunks/worker.CdzokOSx.js';
|
|
2
2
|
import v8 from 'node:v8';
|
|
3
3
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
4
4
|
import vm, { isContext, runInContext } from 'node:vm';
|
|
@@ -16,7 +16,7 @@ import { s as startVitestModuleRunner, c as createNodeImportMeta, a as VITEST_VM
|
|
|
16
16
|
import { p as provideWorkerState } from './chunks/utils.CG9h5ccR.js';
|
|
17
17
|
import '@vitest/utils/source-map';
|
|
18
18
|
import 'vite/module-runner';
|
|
19
|
-
import './chunks/index.
|
|
19
|
+
import './chunks/index.CbWINfS7.js';
|
|
20
20
|
import 'node:console';
|
|
21
21
|
import './chunks/inspector.Br76Q2Mb.js';
|
|
22
22
|
import './chunks/rpc.cD77ENhU.js';
|
|
@@ -5,17 +5,17 @@ import timersPromises from 'node:timers/promises';
|
|
|
5
5
|
import util from 'node:util';
|
|
6
6
|
import { startTests, collectTests } from '@vitest/runner';
|
|
7
7
|
import { KNOWN_ASSET_TYPES } from '@vitest/utils/constants';
|
|
8
|
-
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/resolveSnapshotEnvironment.
|
|
9
|
-
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/setup-common.
|
|
10
|
-
import { i as index } from '../chunks/index.
|
|
8
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/resolveSnapshotEnvironment.tw2a5ux8.js';
|
|
9
|
+
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/setup-common.DgXU7Yho.js';
|
|
10
|
+
import { i as index } from '../chunks/index.Bcjk8TKX.js';
|
|
11
11
|
import { c as closeInspector } from '../chunks/inspector.Br76Q2Mb.js';
|
|
12
12
|
import { g as getWorkerState } from '../chunks/utils.CG9h5ccR.js';
|
|
13
|
-
import { g as globalExpect } from '../chunks/vi.
|
|
13
|
+
import { g as globalExpect } from '../chunks/vi.BZvkKVkM.js';
|
|
14
14
|
import '@vitest/expect';
|
|
15
15
|
import '../chunks/rpc.cD77ENhU.js';
|
|
16
16
|
import '@vitest/utils/timers';
|
|
17
17
|
import '../chunks/index.Bgo3tNWt.js';
|
|
18
|
-
import '../chunks/test.
|
|
18
|
+
import '../chunks/test.C3RPt8JR.js';
|
|
19
19
|
import '@vitest/utils/helpers';
|
|
20
20
|
import '../chunks/benchmark.DHKMYAts.js';
|
|
21
21
|
import '@vitest/runner/utils';
|