vitest 4.1.2 → 4.1.3
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 +1 -1
- package/dist/browser.js +1 -1
- package/dist/chunks/{base.BPik1OqN.js → base.C3wvLFNM.js} +4 -4
- package/dist/chunks/{browser.d.BMOr_Kmk.d.ts → browser.d.C0zGu1u9.d.ts} +1 -1
- package/dist/chunks/{cac.DRKYQDPl.js → cac.Bb7YBzMA.js} +17 -5
- package/dist/chunks/{cli-api.Bxr1Nn49.js → cli-api.CaPRsymo.js} +42 -11
- package/dist/chunks/{config.d.Cz9kPrQs.d.ts → config.d.ChUh6-ad.d.ts} +1 -0
- package/dist/chunks/{coverage.kqM80boz.js → coverage.CwUlQe0s.js} +1 -0
- package/dist/chunks/{global.d.x-ILCfAE.d.ts → global.d.D74z04P1.d.ts} +2 -0
- package/dist/chunks/{globals.CVqIbOyt.js → globals.7B-4LHAF.js} +3 -3
- package/dist/chunks/{index.DOa3dzoN.js → index.4L3g53iW.js} +2 -1
- package/dist/chunks/{index.nZ2xqFgD.js → index.Cj9kDiDi.js} +2 -2
- package/dist/chunks/{index.0GYC6HAu.js → index.DICur-LY.js} +1 -0
- package/dist/chunks/{plugin.d.BWbK_Jpw.d.ts → plugin.d.BssAumYw.d.ts} +1 -1
- package/dist/chunks/{reporters.d.B0uk8id2.d.ts → reporters.d.yJ2fBir5.d.ts} +14 -3
- package/dist/chunks/{setup-common.2wZXQUjS.js → setup-common.NdrZGMhw.js} +1 -1
- package/dist/chunks/{test.p_J6dB8a.js → test.BmQO5GaM.js} +401 -335
- package/dist/chunks/{vm.BvVhnZPV.js → vm.DVLYObm9.js} +5 -4
- package/dist/chunks/{worker.d.BT5j8dyR.d.ts → worker.d.CckNUvI5.d.ts} +1 -1
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +6 -6
- package/dist/coverage.d.ts +4 -4
- package/dist/coverage.js +1 -1
- package/dist/index.d.ts +79 -9
- package/dist/index.js +3 -3
- package/dist/node.d.ts +8 -8
- package/dist/node.js +6 -6
- package/dist/reporters.d.ts +4 -4
- package/dist/reporters.js +1 -1
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +2 -2
- package/dist/worker.d.ts +2 -2
- package/dist/worker.js +5 -5
- package/dist/workers/forks.js +5 -5
- package/dist/workers/runVmTests.js +4 -4
- package/dist/workers/threads.js +5 -5
- package/dist/workers/vmForks.js +1 -1
- package/dist/workers/vmThreads.js +1 -1
- package/package.json +20 -12
|
@@ -6,7 +6,7 @@ import { distDir } from '../path.js';
|
|
|
6
6
|
import { createCustomConsole } from './console.3WNpx0tS.js';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import { createRequire, Module, isBuiltin } from 'node:module';
|
|
9
|
-
import { toArray, isBareImport } from '@vitest/utils/helpers';
|
|
9
|
+
import { toArray, splitFileAndPostfix, isBareImport } from '@vitest/utils/helpers';
|
|
10
10
|
import { findNearestPackageData } from '@vitest/utils/resolver';
|
|
11
11
|
import { dirname as dirname$1 } from 'node:path';
|
|
12
12
|
import { CSS_LANGS_RE, KNOWN_ASSET_RE } from '@vitest/utils/constants';
|
|
@@ -617,7 +617,8 @@ class ExternalModulesExecutor {
|
|
|
617
617
|
url: identifier,
|
|
618
618
|
path: identifier
|
|
619
619
|
};
|
|
620
|
-
const
|
|
620
|
+
const { file, postfix } = splitFileAndPostfix(identifier);
|
|
621
|
+
const extension = extname(file);
|
|
621
622
|
if (extension === ".node" || isBuiltin(identifier)) return {
|
|
622
623
|
type: "builtin",
|
|
623
624
|
url: identifier,
|
|
@@ -629,8 +630,8 @@ class ExternalModulesExecutor {
|
|
|
629
630
|
path: identifier
|
|
630
631
|
};
|
|
631
632
|
const isFileUrl = identifier.startsWith("file://");
|
|
632
|
-
const pathUrl = isFileUrl ? fileURLToPath(
|
|
633
|
-
const fileUrl = isFileUrl ? identifier : pathToFileURL(
|
|
633
|
+
const pathUrl = isFileUrl ? fileURLToPath(file) : file;
|
|
634
|
+
const fileUrl = isFileUrl ? identifier : `${pathToFileURL(file)}${postfix}`;
|
|
634
635
|
let type;
|
|
635
636
|
if (this.vite.canResolve(fileUrl)) type = "vite";
|
|
636
637
|
else if (extension === ".mjs") type = "module";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileSpecification, Task, CancelReason } from '@vitest/runner';
|
|
2
2
|
import { EvaluatedModules } from 'vite/module-runner';
|
|
3
|
-
import { S as SerializedConfig } from './config.d.
|
|
3
|
+
import { S as SerializedConfig } from './config.d.ChUh6-ad.js';
|
|
4
4
|
import { E as Environment } from './environment.d.CrsxCzP1.js';
|
|
5
5
|
import { R as RuntimeRPC, a as RunnerRPC } from './rpc.d.BFMWpdph.js';
|
|
6
6
|
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HookHandler, UserConfig, ConfigEnv } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { I as InlineConfig, C as CoverageOptions, F as FieldsWithDefaultValues, U as UserWorkspaceConfig, b as UserProjectConfigFn, c as UserProjectConfigExport } from './chunks/reporters.d.
|
|
4
|
-
export { a as TestProjectConfiguration, d as TestProjectInlineConfiguration, e 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 CoverageOptions, F as FieldsWithDefaultValues, U as UserWorkspaceConfig, b as UserProjectConfigFn, c as UserProjectConfigExport } from './chunks/reporters.d.yJ2fBir5.js';
|
|
4
|
+
export { a as TestProjectConfiguration, d as TestProjectInlineConfiguration, e as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.yJ2fBir5.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.BssAumYw.js';
|
|
6
|
+
import { F as FakeTimerInstallOpts } from './chunks/config.d.ChUh6-ad.js';
|
|
7
7
|
export { TestTagDefinition } from '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import './chunks/rpc.d.BFMWpdph.js';
|
|
@@ -11,8 +11,8 @@ import '@vitest/snapshot';
|
|
|
11
11
|
import 'vite/module-runner';
|
|
12
12
|
import './chunks/traces.d.402V_yFI.js';
|
|
13
13
|
import 'node:stream';
|
|
14
|
-
import './chunks/browser.d.
|
|
15
|
-
import './chunks/worker.d.
|
|
14
|
+
import './chunks/browser.d.C0zGu1u9.js';
|
|
15
|
+
import './chunks/worker.d.CckNUvI5.js';
|
|
16
16
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
17
17
|
import '@vitest/pretty-format';
|
|
18
18
|
import '@vitest/utils/diff';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { V as Vitest, at as ResolvedCoverageOptions, aZ as CoverageMap, am as ReportContext, T as TestProject } from './chunks/reporters.d.
|
|
1
|
+
import { V as Vitest, at as ResolvedCoverageOptions, aZ as CoverageMap, am as ReportContext, T as TestProject } from './chunks/reporters.d.yJ2fBir5.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/rpc.d.BFMWpdph.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
7
|
-
import './chunks/browser.d.
|
|
7
|
+
import './chunks/browser.d.C0zGu1u9.js';
|
|
8
8
|
import './chunks/traces.d.402V_yFI.js';
|
|
9
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/worker.d.CckNUvI5.js';
|
|
10
10
|
import 'vite/module-runner';
|
|
11
|
-
import './chunks/config.d.
|
|
11
|
+
import './chunks/config.d.ChUh6-ad.js';
|
|
12
12
|
import '@vitest/pretty-format';
|
|
13
13
|
import '@vitest/snapshot';
|
|
14
14
|
import '@vitest/utils/diff';
|
package/dist/coverage.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, a as ModuleDefinitionDiagnostic, b as ModuleDefinitionLocation, c as SourceModuleDiagnostic, d as SourceModuleLocations } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
3
|
-
import './chunks/global.d.
|
|
1
|
+
import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, a as ModuleDefinitionDiagnostic, b as ModuleDefinitionLocation, c as SourceModuleDiagnostic, d as SourceModuleLocations } from './chunks/browser.d.C0zGu1u9.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.C0zGu1u9.js';
|
|
3
|
+
import './chunks/global.d.D74z04P1.js';
|
|
4
4
|
import { File, TestAnnotation, TestArtifact, TaskResultPack, TaskEventPack, Test, 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, SuiteOptions, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestAnnotationArtifact, TestArtifact, TestArtifactBase, TestArtifactLocation, TestArtifactRegistry, TestAttachment, TestContext, TestFunction, TestOptions, VitestRunnerConfig as TestRunnerConfig, TestTags, VitestRunner as VitestTestRunner, afterAll, afterEach, aroundAll, aroundEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
|
|
6
6
|
import { Awaitable } from '@vitest/utils';
|
|
7
7
|
export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
8
|
-
import { b as BirpcReturn } from './chunks/worker.d.
|
|
9
|
-
export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
10
|
-
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.
|
|
11
|
-
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.d.
|
|
8
|
+
import { b as BirpcReturn } from './chunks/worker.d.CckNUvI5.js';
|
|
9
|
+
export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.CckNUvI5.js';
|
|
10
|
+
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.ChUh6-ad.js';
|
|
11
|
+
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.d.ChUh6-ad.js';
|
|
12
12
|
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/rpc.d.BFMWpdph.js';
|
|
13
13
|
export { A as AfterSuiteRunMeta, a as RunnerRPC, R as RuntimeRPC } from './chunks/rpc.d.BFMWpdph.js';
|
|
14
|
-
import { ExpectStatic } from '@vitest/expect';
|
|
14
|
+
import { ExpectStatic, MatcherState, SyncExpectationResult, AsyncExpectationResult } from '@vitest/expect';
|
|
15
15
|
export { Assertion, AsymmetricMatchersContaining, DeeplyAllowMatchers, ExpectPollOptions, ExpectStatic, JestAssertion, RawMatcherFn as Matcher, ExpectationResult as MatcherResult, MatcherState, Matchers, chai } from '@vitest/expect';
|
|
16
16
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
17
17
|
export { Mock, MockContext, MockInstance, MockResult, MockResultIncomplete, MockResultReturn, MockResultThrow, MockSettledResult, MockSettledResultFulfilled, MockSettledResultIncomplete, MockSettledResultRejected, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
@@ -100,6 +100,76 @@ declare const should: () => Chai.Should;
|
|
|
100
100
|
*/
|
|
101
101
|
declare function inject<T extends keyof ProvidedContext & string>(key: T): ProvidedContext[T];
|
|
102
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Composable snapshot matcher helpers for building custom snapshot matchers
|
|
105
|
+
* with `expect.extend`.
|
|
106
|
+
*
|
|
107
|
+
* @experimental
|
|
108
|
+
* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers
|
|
109
|
+
*/
|
|
110
|
+
declare const Snapshots: {
|
|
111
|
+
/**
|
|
112
|
+
* Composable for building custom snapshot matchers via `expect.extend`.
|
|
113
|
+
* Call with `this` bound to the matcher state. Returns `{ pass, message }`
|
|
114
|
+
* compatible with the custom matcher return contract.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* import { Snapshots } from 'vitest/runtime'
|
|
119
|
+
*
|
|
120
|
+
* expect.extend({
|
|
121
|
+
* toMatchTrimmedSnapshot(received: string) {
|
|
122
|
+
* return Snapshots.toMatchSnapshot.call(this, received.slice(0, 10))
|
|
123
|
+
* },
|
|
124
|
+
* })
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* @experimental
|
|
128
|
+
* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers
|
|
129
|
+
*/
|
|
130
|
+
toMatchSnapshot(this: MatcherState, received: unknown, propertiesOrHint?: object | string, hint?: string): SyncExpectationResult;
|
|
131
|
+
/**
|
|
132
|
+
* Composable for building custom inline snapshot matchers via `expect.extend`.
|
|
133
|
+
* Call with `this` bound to the matcher state. Returns `{ pass, message }`
|
|
134
|
+
* compatible with the custom matcher return contract.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* import { Snapshots } from 'vitest/runtime'
|
|
139
|
+
*
|
|
140
|
+
* expect.extend({
|
|
141
|
+
* toMatchTrimmedInlineSnapshot(received: string, inlineSnapshot?: string) {
|
|
142
|
+
* return Snapshots.toMatchInlineSnapshot.call(this, received.slice(0, 10), inlineSnapshot)
|
|
143
|
+
* },
|
|
144
|
+
* })
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* @experimental
|
|
148
|
+
* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers
|
|
149
|
+
*/
|
|
150
|
+
toMatchInlineSnapshot(this: MatcherState, received: unknown, propertiesOrInlineSnapshot?: object | string, inlineSnapshotOrHint?: string, hint?: string): SyncExpectationResult;
|
|
151
|
+
/**
|
|
152
|
+
* Composable for building custom file snapshot matchers via `expect.extend`.
|
|
153
|
+
* Call with `this` bound to the matcher state. Returns a `Promise<{ pass, message }>`
|
|
154
|
+
* compatible with the custom matcher return contract.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```ts
|
|
158
|
+
* import { Snapshots } from 'vitest/runtime'
|
|
159
|
+
*
|
|
160
|
+
* expect.extend({
|
|
161
|
+
* async toMatchTrimmedFileSnapshot(received: string, file: string) {
|
|
162
|
+
* return Snapshots.toMatchFileSnapshot.call(this, received.slice(0, 10), file)
|
|
163
|
+
* },
|
|
164
|
+
* })
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* @experimental
|
|
168
|
+
* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers
|
|
169
|
+
*/
|
|
170
|
+
toMatchFileSnapshot(this: MatcherState, received: unknown, filepath: string, hint?: string): AsyncExpectationResult;
|
|
171
|
+
};
|
|
172
|
+
|
|
103
173
|
type WaitForCallback<T> = () => T | Promise<T>;
|
|
104
174
|
interface WaitForOptions {
|
|
105
175
|
/**
|
|
@@ -546,5 +616,5 @@ declare namespace Experimental {
|
|
|
546
616
|
export { ModuleDefinitionDiagnostic, ModuleDefinitionDurationsDiagnostic, ModuleDefinitionLocation, SourceModuleDiagnostic, SourceModuleLocations, UntrackedModuleDefinitionDiagnostic };
|
|
547
617
|
}
|
|
548
618
|
|
|
549
|
-
export { Experimental, LabelColor, ModuleGraphData, ProvidedContext, SerializedConfig, SerializedTestSpecification, UserConsoleLog, assert, assertType, createExpect, globalExpect as expect, inject, should, vi, vitest };
|
|
619
|
+
export { Experimental, LabelColor, ModuleGraphData, ProvidedContext, SerializedConfig, SerializedTestSpecification, Snapshots, UserConsoleLog, assert, assertType, createExpect, globalExpect as expect, inject, should, vi, vitest };
|
|
550
620
|
export type { AssertType, BrowserUI, ExternalResult, TransformResultWithSource, VitestUtils, WebSocketEvents, WebSocketHandlers, WebSocketRPC };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { N as BenchmarkRunner, T as TestRunner, a as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, b as vitest } from './chunks/test.
|
|
1
|
+
export { N as BenchmarkRunner, S as Snapshots, T as TestRunner, a as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, b as vitest } from './chunks/test.BmQO5GaM.js';
|
|
2
2
|
export { b as bench } from './chunks/benchmark.CX_oY03V.js';
|
|
3
3
|
export { V as EvaluatedModules } from './chunks/evaluatedModules.Dg1zASAC.js';
|
|
4
|
-
export { a as assertType } from './chunks/index.
|
|
4
|
+
export { a as assertType } from './chunks/index.4L3g53iW.js';
|
|
5
5
|
export { expectTypeOf } from 'expect-type';
|
|
6
6
|
export { afterAll, afterEach, aroundAll, aroundEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
|
|
7
7
|
export { chai } from '@vitest/expect';
|
|
@@ -11,11 +11,11 @@ import './chunks/utils.BX5Fg8C4.js';
|
|
|
11
11
|
import '@vitest/runner/utils';
|
|
12
12
|
import '@vitest/utils/error';
|
|
13
13
|
import 'pathe';
|
|
14
|
-
import '@vitest/snapshot';
|
|
15
14
|
import '@vitest/spy';
|
|
16
15
|
import '@vitest/utils/offset';
|
|
17
16
|
import '@vitest/utils/source-map';
|
|
18
17
|
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
19
18
|
import './chunks/rpc.MzXet3jl.js';
|
|
20
19
|
import './chunks/index.Chj8NDwU.js';
|
|
20
|
+
import '@vitest/snapshot';
|
|
21
21
|
import 'vite/module-runner';
|
package/dist/node.d.ts
CHANGED
|
@@ -3,23 +3,23 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
|
|
|
3
3
|
export { vite as Vite };
|
|
4
4
|
export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
5
5
|
import { IncomingMessage } from 'node:http';
|
|
6
|
-
import { R as ResolvedConfig, e as UserConfig, f as VitestRunMode, g as VitestOptions, V as Vitest, A as ApiConfig, L as Logger, h as TestSpecification, T as TestProject, P as PoolWorker, i as PoolOptions, j as WorkerRequest, k as TestSequencer } from './chunks/reporters.d.
|
|
7
|
-
export { l as AgentReporter, B as BaseCoverageOptions, m as BaseReporter, n as BenchmarkBuiltinReporters, o as BenchmarkReporter, p as BenchmarkReportsMap, q as BenchmarkUserOptions, r as BrowserBuiltinProvider, s as BrowserCommand, t as BrowserCommandContext, u as BrowserConfigOptions, v as BrowserInstanceOption, w as BrowserModuleMocker, x as BrowserOrchestrator, y as BrowserProvider, z as BrowserProviderOption, D as BrowserScript, E as BrowserServerFactory, G as BrowserServerOptions, H as BrowserServerState, J as BrowserServerStateSession, K as BuiltinEnvironment, M as BuiltinReporterOptions, N as BuiltinReporters, O as CSSModuleScopeStrategy, Q as CoverageIstanbulOptions, C as CoverageOptions, S as CoverageProvider, X as CoverageProviderModule, Y as CoverageReporter, Z as CoverageV8Options, _ as CustomProviderOptions, $ as DefaultReporter, a0 as DepsOptimizationOptions, a1 as DotReporter, a2 as EnvironmentOptions, a3 as GithubActionsReporter, a4 as HTMLOptions, a5 as HangingProcessReporter, I as InlineConfig, a6 as JUnitOptions, a7 as JUnitReporter, a8 as JsonAssertionResult, a9 as JsonOptions, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, ad as ModuleDiagnostic, ae as OnServerRestartHandler, af as OnTestsRerunHandler, ag as ParentProjectBrowser, ah as Pool, ai as PoolRunnerInitializer, aj as PoolTask, ak as ProjectBrowser, al as ProjectConfig, am as ReportContext, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aq as ResolveSnapshotPathHandler, ar as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, at as ResolvedCoverageOptions, au as ResolvedProjectConfig, av as SerializedTestProject, aw as TapFlatReporter, ax as TapReporter, ay as TaskOptions, az as TestCase, aA as TestCollection, aB as TestDiagnostic, aC as TestModule, aD as TestModuleState, aE as TestResult, aF as TestResultFailed, aG as TestResultPassed, aH as TestResultSkipped, aI as TestRunEndReason, aJ as TestRunResult, aK as TestSequencerConstructor, aL as TestSpecificationOptions, aM as TestState, aN as TestSuite, aO as TestSuiteState, aP as ToMatchScreenshotComparators, aQ as ToMatchScreenshotOptions, aR as TypecheckConfig, U as UserWorkspaceConfig, aS as VerboseBenchmarkReporter, aT as VerboseReporter, aU as VitestEnvironment, aV as VitestPackageInstaller, W as WatcherTriggerPattern, aW as WorkerResponse, aX as _BrowserNames, aY as experimental_getRunnerTask } from './chunks/reporters.d.
|
|
8
|
-
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.
|
|
6
|
+
import { R as ResolvedConfig, e as UserConfig, f as VitestRunMode, g as VitestOptions, V as Vitest, A as ApiConfig, L as Logger, h as TestSpecification, T as TestProject, P as PoolWorker, i as PoolOptions, j as WorkerRequest, k as TestSequencer } from './chunks/reporters.d.yJ2fBir5.js';
|
|
7
|
+
export { l as AgentReporter, B as BaseCoverageOptions, m as BaseReporter, n as BenchmarkBuiltinReporters, o as BenchmarkReporter, p as BenchmarkReportsMap, q as BenchmarkUserOptions, r as BrowserBuiltinProvider, s as BrowserCommand, t as BrowserCommandContext, u as BrowserConfigOptions, v as BrowserInstanceOption, w as BrowserModuleMocker, x as BrowserOrchestrator, y as BrowserProvider, z as BrowserProviderOption, D as BrowserScript, E as BrowserServerFactory, G as BrowserServerOptions, H as BrowserServerState, J as BrowserServerStateSession, K as BuiltinEnvironment, M as BuiltinReporterOptions, N as BuiltinReporters, O as CSSModuleScopeStrategy, Q as CoverageIstanbulOptions, C as CoverageOptions, S as CoverageProvider, X as CoverageProviderModule, Y as CoverageReporter, Z as CoverageV8Options, _ as CustomProviderOptions, $ as DefaultReporter, a0 as DepsOptimizationOptions, a1 as DotReporter, a2 as EnvironmentOptions, a3 as GithubActionsReporter, a4 as HTMLOptions, a5 as HangingProcessReporter, I as InlineConfig, a6 as JUnitOptions, a7 as JUnitReporter, a8 as JsonAssertionResult, a9 as JsonOptions, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, ad as ModuleDiagnostic, ae as OnServerRestartHandler, af as OnTestsRerunHandler, ag as ParentProjectBrowser, ah as Pool, ai as PoolRunnerInitializer, aj as PoolTask, ak as ProjectBrowser, al as ProjectConfig, am as ReportContext, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aq as ResolveSnapshotPathHandler, ar as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, at as ResolvedCoverageOptions, au as ResolvedProjectConfig, av as SerializedTestProject, aw as TapFlatReporter, ax as TapReporter, ay as TaskOptions, az as TestCase, aA as TestCollection, aB as TestDiagnostic, aC as TestModule, aD as TestModuleState, aE as TestResult, aF as TestResultFailed, aG as TestResultPassed, aH as TestResultSkipped, aI as TestRunEndReason, aJ as TestRunResult, aK as TestSequencerConstructor, aL as TestSpecificationOptions, aM as TestState, aN as TestSuite, aO as TestSuiteState, aP as ToMatchScreenshotComparators, aQ as ToMatchScreenshotOptions, aR as TypecheckConfig, U as UserWorkspaceConfig, aS as VerboseBenchmarkReporter, aT as VerboseReporter, aU as VitestEnvironment, aV as VitestPackageInstaller, W as WatcherTriggerPattern, aW as WorkerResponse, aX as _BrowserNames, aY as experimental_getRunnerTask } from './chunks/reporters.d.yJ2fBir5.js';
|
|
8
|
+
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.BssAumYw.js';
|
|
9
9
|
export { BaseCoverageProvider } from './coverage.js';
|
|
10
10
|
import { Awaitable } from '@vitest/utils';
|
|
11
11
|
export { SerializedError } from '@vitest/utils';
|
|
12
12
|
import { R as RuntimeRPC } from './chunks/rpc.d.BFMWpdph.js';
|
|
13
13
|
import { Writable } from 'node:stream';
|
|
14
|
-
import { C as ContextRPC } from './chunks/worker.d.
|
|
15
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
14
|
+
import { C as ContextRPC } from './chunks/worker.d.CckNUvI5.js';
|
|
15
|
+
export { T as TestExecutionType } from './chunks/worker.d.CckNUvI5.js';
|
|
16
16
|
import { Debugger } from 'obug';
|
|
17
|
-
import './chunks/global.d.
|
|
17
|
+
import './chunks/global.d.D74z04P1.js';
|
|
18
18
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
19
|
-
export { b as RuntimeConfig } from './chunks/config.d.
|
|
19
|
+
export { b as RuntimeConfig } from './chunks/config.d.ChUh6-ad.js';
|
|
20
20
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
21
21
|
export { CDPSession } from 'vitest/browser';
|
|
22
|
-
import './chunks/browser.d.
|
|
22
|
+
import './chunks/browser.d.C0zGu1u9.js';
|
|
23
23
|
import './chunks/traces.d.402V_yFI.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
package/dist/node.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
3
|
export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
4
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.
|
|
5
|
-
export { F as ForksPoolWorker, G as GitNotFoundError, b as TestsNotFoundError, T as ThreadsPoolWorker, c as TypecheckPoolWorker, d as VitestPackageInstaller, e as VmForksPoolWorker, f as VmThreadsPoolWorker, g as createDebugger, h as createMethodsRPC, i as createViteLogger, j as createVitest, k as escapeTestName, l as experimental_getRunnerTask, m as getFilePoolName, n as isFileServingAllowed, o as isValidApiRequest, r as registerConsoleShortcuts, p 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 BaseCoverageProvider, a as BaseSequencer, b as resolveApiServerConfig } from './chunks/coverage.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.CaPRsymo.js';
|
|
5
|
+
export { F as ForksPoolWorker, G as GitNotFoundError, b as TestsNotFoundError, T as ThreadsPoolWorker, c as TypecheckPoolWorker, d as VitestPackageInstaller, e as VmForksPoolWorker, f as VmThreadsPoolWorker, g as createDebugger, h as createMethodsRPC, i as createViteLogger, j as createVitest, k as escapeTestName, l as experimental_getRunnerTask, m as getFilePoolName, n as isFileServingAllowed, o as isValidApiRequest, r as registerConsoleShortcuts, p as resolveFsAllow, s as startVitest } from './chunks/cli-api.CaPRsymo.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.Bb7YBzMA.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.CwUlQe0s.js';
|
|
8
|
+
export { B as BaseCoverageProvider, a as BaseSequencer, b as resolveApiServerConfig } from './chunks/coverage.CwUlQe0s.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
10
|
import { a as any } from './chunks/index.og1WyBLx.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
12
12
|
import { c as configFiles } from './chunks/constants.CPYnjOGj.js';
|
|
13
|
-
export { A as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.
|
|
13
|
+
export { A as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.DICur-LY.js';
|
|
14
14
|
export { distDir, rootDir } from './path.js';
|
|
15
15
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
16
16
|
import 'node:fs';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { l as AgentReporter, m as BaseReporter, n as BenchmarkBuiltinReporters, o as BenchmarkReporter, p as BenchmarkReportsMap, M as BuiltinReporterOptions, N as BuiltinReporters, $ as DefaultReporter, a1 as DotReporter, a3 as GithubActionsReporter, a5 as HangingProcessReporter, a7 as JUnitReporter, a8 as JsonAssertionResult, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aw as TapFlatReporter, ax as TapReporter, aI as TestRunEndReason, aS as VerboseBenchmarkReporter, aT as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { l as AgentReporter, m as BaseReporter, n as BenchmarkBuiltinReporters, o as BenchmarkReporter, p as BenchmarkReportsMap, M as BuiltinReporterOptions, N as BuiltinReporters, $ as DefaultReporter, a1 as DotReporter, a3 as GithubActionsReporter, a5 as HangingProcessReporter, a7 as JUnitReporter, a8 as JsonAssertionResult, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aw as TapFlatReporter, ax as TapReporter, aI as TestRunEndReason, aS as VerboseBenchmarkReporter, aT as VerboseReporter } from './chunks/reporters.d.yJ2fBir5.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/rpc.d.BFMWpdph.js';
|
|
@@ -7,9 +7,9 @@ import 'vite/module-runner';
|
|
|
7
7
|
import './chunks/traces.d.402V_yFI.js';
|
|
8
8
|
import 'node:stream';
|
|
9
9
|
import 'vite';
|
|
10
|
-
import './chunks/browser.d.
|
|
11
|
-
import './chunks/worker.d.
|
|
12
|
-
import './chunks/config.d.
|
|
10
|
+
import './chunks/browser.d.C0zGu1u9.js';
|
|
11
|
+
import './chunks/worker.d.CckNUvI5.js';
|
|
12
|
+
import './chunks/config.d.ChUh6-ad.js';
|
|
13
13
|
import '@vitest/pretty-format';
|
|
14
14
|
import '@vitest/utils/diff';
|
|
15
15
|
import './chunks/environment.d.CrsxCzP1.js';
|
package/dist/reporters.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.
|
|
1
|
+
export { A as AgentReporter, B as BenchmarkReporter, a as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, c as JsonReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.DICur-LY.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import '@vitest/runner/utils';
|
|
4
4
|
import 'pathe';
|
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, createTaskCollector, getCurrentSuite, getCurrentTest, getHooks, getFn } from '@vitest/runner';
|
|
3
3
|
export { VitestRunner } from '@vitest/runner';
|
|
4
|
-
import { S as SerializedConfig } from './chunks/config.d.
|
|
4
|
+
import { S as SerializedConfig } from './chunks/config.d.ChUh6-ad.js';
|
|
5
5
|
import { T as Traces } from './chunks/traces.d.402V_yFI.js';
|
|
6
6
|
import { createChainable, matchesTags } from '@vitest/runner/utils';
|
|
7
7
|
import { g as getBenchFn, a as getBenchOptions } from './chunks/suite.d.udJtyAgw.js';
|
package/dist/runners.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeBenchmarkRunner, T as VitestTestRunner } from './chunks/test.
|
|
1
|
+
export { N as NodeBenchmarkRunner, T as VitestTestRunner } from './chunks/test.BmQO5GaM.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils/helpers';
|
|
4
4
|
import '@vitest/utils/timers';
|
|
@@ -8,12 +8,12 @@ import './chunks/utils.BX5Fg8C4.js';
|
|
|
8
8
|
import '@vitest/expect';
|
|
9
9
|
import '@vitest/utils/error';
|
|
10
10
|
import 'pathe';
|
|
11
|
-
import '@vitest/snapshot';
|
|
12
11
|
import '@vitest/spy';
|
|
13
12
|
import '@vitest/utils/offset';
|
|
14
13
|
import '@vitest/utils/source-map';
|
|
15
14
|
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
16
15
|
import './chunks/rpc.MzXet3jl.js';
|
|
17
16
|
import './chunks/index.Chj8NDwU.js';
|
|
17
|
+
import '@vitest/snapshot';
|
|
18
18
|
|
|
19
19
|
console.warn("Importing from \"vitest/runners\" is deprecated since Vitest 4.1. Please use \"vitest\" instead.");
|
package/dist/worker.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.
|
|
1
|
+
import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.CckNUvI5.js';
|
|
2
2
|
import { T as Traces } from './chunks/traces.d.402V_yFI.js';
|
|
3
3
|
import { Awaitable } from '@vitest/utils';
|
|
4
4
|
import { ModuleRunner } from 'vite/module-runner';
|
|
5
5
|
import { R as RuntimeRPC } from './chunks/rpc.d.BFMWpdph.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
|
-
import './chunks/config.d.
|
|
7
|
+
import './chunks/config.d.ChUh6-ad.js';
|
|
8
8
|
import '@vitest/pretty-format';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/diff';
|
package/dist/worker.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { r as runBaseTests, s as setupEnvironment } from './chunks/base.
|
|
1
|
+
export { r as runBaseTests, s as setupEnvironment } from './chunks/base.C3wvLFNM.js';
|
|
2
2
|
export { i as init } from './chunks/init.D98-gwRW.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/index.
|
|
5
|
+
import './chunks/index.Cj9kDiDi.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import 'node:async_hooks';
|
|
8
|
-
import './chunks/setup-common.
|
|
8
|
+
import './chunks/setup-common.NdrZGMhw.js';
|
|
9
9
|
import './chunks/coverage.CTzCuANN.js';
|
|
10
10
|
import '@vitest/snapshot';
|
|
11
11
|
import '@vitest/utils/timers';
|
|
12
12
|
import './chunks/utils.BX5Fg8C4.js';
|
|
13
13
|
import './chunks/rpc.MzXet3jl.js';
|
|
14
14
|
import './chunks/index.Chj8NDwU.js';
|
|
15
|
-
import './chunks/test.
|
|
15
|
+
import './chunks/test.BmQO5GaM.js';
|
|
16
16
|
import '@vitest/runner';
|
|
17
17
|
import '@vitest/utils/helpers';
|
|
18
18
|
import './chunks/benchmark.CX_oY03V.js';
|
|
@@ -47,7 +47,7 @@ import './chunks/inspector.CvyFGlXm.js';
|
|
|
47
47
|
import 'node:timers';
|
|
48
48
|
import 'node:timers/promises';
|
|
49
49
|
import '@vitest/utils/constants';
|
|
50
|
-
import './chunks/index.
|
|
50
|
+
import './chunks/index.4L3g53iW.js';
|
|
51
51
|
import 'expect-type';
|
|
52
52
|
import './chunks/index.DC7d2Pf8.js';
|
|
53
53
|
import 'node:console';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as runBaseTests, s as setupBaseEnvironment } from '../chunks/base.
|
|
1
|
+
import { r as runBaseTests, s as setupBaseEnvironment } from '../chunks/base.C3wvLFNM.js';
|
|
2
2
|
import { w as workerInit } from '../chunks/init-forks.UV3ZQGQH.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import '../chunks/index.
|
|
5
|
+
import '../chunks/index.Cj9kDiDi.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import 'node:async_hooks';
|
|
8
|
-
import '../chunks/setup-common.
|
|
8
|
+
import '../chunks/setup-common.NdrZGMhw.js';
|
|
9
9
|
import '../chunks/coverage.CTzCuANN.js';
|
|
10
10
|
import '@vitest/snapshot';
|
|
11
11
|
import '@vitest/utils/timers';
|
|
12
12
|
import '../chunks/utils.BX5Fg8C4.js';
|
|
13
13
|
import '../chunks/rpc.MzXet3jl.js';
|
|
14
14
|
import '../chunks/index.Chj8NDwU.js';
|
|
15
|
-
import '../chunks/test.
|
|
15
|
+
import '../chunks/test.BmQO5GaM.js';
|
|
16
16
|
import '@vitest/runner';
|
|
17
17
|
import '@vitest/utils/helpers';
|
|
18
18
|
import '../chunks/benchmark.CX_oY03V.js';
|
|
@@ -52,7 +52,7 @@ import 'node:perf_hooks';
|
|
|
52
52
|
import 'node:timers';
|
|
53
53
|
import 'node:timers/promises';
|
|
54
54
|
import '@vitest/utils/constants';
|
|
55
|
-
import '../chunks/index.
|
|
55
|
+
import '../chunks/index.4L3g53iW.js';
|
|
56
56
|
import 'expect-type';
|
|
57
57
|
|
|
58
58
|
workerInit({
|
|
@@ -5,12 +5,12 @@ 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, d as detectAsyncLeaks } from '../chunks/index.
|
|
9
|
-
import { s as setupCommonEnv, b as startCoverageInsideWorker, c 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, d as detectAsyncLeaks } from '../chunks/index.Cj9kDiDi.js';
|
|
9
|
+
import { s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker } from '../chunks/setup-common.NdrZGMhw.js';
|
|
10
|
+
import { i as index } from '../chunks/index.4L3g53iW.js';
|
|
11
11
|
import { c as closeInspector } from '../chunks/inspector.CvyFGlXm.js';
|
|
12
12
|
import { g as getWorkerState } from '../chunks/utils.BX5Fg8C4.js';
|
|
13
|
-
import { g as globalExpect } from '../chunks/test.
|
|
13
|
+
import { g as globalExpect } from '../chunks/test.BmQO5GaM.js';
|
|
14
14
|
import '@vitest/expect';
|
|
15
15
|
import 'node:async_hooks';
|
|
16
16
|
import '../chunks/rpc.MzXet3jl.js';
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { s as setupBaseEnvironment, r as runBaseTests } from '../chunks/base.
|
|
1
|
+
import { s as setupBaseEnvironment, r as runBaseTests } from '../chunks/base.C3wvLFNM.js';
|
|
2
2
|
import { w as workerInit } from '../chunks/init-threads.D3eCsY76.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import '../chunks/index.
|
|
5
|
+
import '../chunks/index.Cj9kDiDi.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import 'node:async_hooks';
|
|
8
|
-
import '../chunks/setup-common.
|
|
8
|
+
import '../chunks/setup-common.NdrZGMhw.js';
|
|
9
9
|
import '../chunks/coverage.CTzCuANN.js';
|
|
10
10
|
import '@vitest/snapshot';
|
|
11
11
|
import '@vitest/utils/timers';
|
|
12
12
|
import '../chunks/utils.BX5Fg8C4.js';
|
|
13
13
|
import '../chunks/rpc.MzXet3jl.js';
|
|
14
14
|
import '../chunks/index.Chj8NDwU.js';
|
|
15
|
-
import '../chunks/test.
|
|
15
|
+
import '../chunks/test.BmQO5GaM.js';
|
|
16
16
|
import '@vitest/runner';
|
|
17
17
|
import '@vitest/utils/helpers';
|
|
18
18
|
import '../chunks/benchmark.CX_oY03V.js';
|
|
@@ -52,7 +52,7 @@ import 'node:perf_hooks';
|
|
|
52
52
|
import 'node:timers';
|
|
53
53
|
import 'node:timers/promises';
|
|
54
54
|
import '@vitest/utils/constants';
|
|
55
|
-
import '../chunks/index.
|
|
55
|
+
import '../chunks/index.4L3g53iW.js';
|
|
56
56
|
import 'expect-type';
|
|
57
57
|
import 'node:worker_threads';
|
|
58
58
|
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as workerInit } from '../chunks/init-forks.UV3ZQGQH.js';
|
|
2
|
-
import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.
|
|
2
|
+
import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.DVLYObm9.js';
|
|
3
3
|
import '../chunks/init.D98-gwRW.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:module';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as workerInit } from '../chunks/init-threads.D3eCsY76.js';
|
|
2
|
-
import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.
|
|
2
|
+
import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.DVLYObm9.js';
|
|
3
3
|
import 'node:worker_threads';
|
|
4
4
|
import '../chunks/init.D98-gwRW.js';
|
|
5
5
|
import 'node:fs';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.3",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -135,10 +135,12 @@
|
|
|
135
135
|
"happy-dom": "*",
|
|
136
136
|
"jsdom": "*",
|
|
137
137
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
138
|
-
"@vitest/browser-playwright": "4.1.
|
|
139
|
-
"@vitest/
|
|
140
|
-
"@vitest/browser-
|
|
141
|
-
"@vitest/
|
|
138
|
+
"@vitest/browser-playwright": "4.1.3",
|
|
139
|
+
"@vitest/browser-preview": "4.1.3",
|
|
140
|
+
"@vitest/browser-webdriverio": "4.1.3",
|
|
141
|
+
"@vitest/coverage-istanbul": "4.1.3",
|
|
142
|
+
"@vitest/coverage-v8": "4.1.3",
|
|
143
|
+
"@vitest/ui": "4.1.3"
|
|
142
144
|
},
|
|
143
145
|
"peerDependenciesMeta": {
|
|
144
146
|
"@edge-runtime/vm": {
|
|
@@ -159,6 +161,12 @@
|
|
|
159
161
|
"@vitest/browser-webdriverio": {
|
|
160
162
|
"optional": true
|
|
161
163
|
},
|
|
164
|
+
"@vitest/coverage-istanbul": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"@vitest/coverage-v8": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
162
170
|
"@vitest/ui": {
|
|
163
171
|
"optional": true
|
|
164
172
|
},
|
|
@@ -186,13 +194,13 @@
|
|
|
186
194
|
"tinyrainbow": "^3.1.0",
|
|
187
195
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
188
196
|
"why-is-node-running": "^2.3.0",
|
|
189
|
-
"@vitest/
|
|
190
|
-
"@vitest/
|
|
191
|
-
"@vitest/
|
|
192
|
-
"@vitest/
|
|
193
|
-
"@vitest/
|
|
194
|
-
"@vitest/
|
|
195
|
-
"@vitest/
|
|
197
|
+
"@vitest/expect": "4.1.3",
|
|
198
|
+
"@vitest/mocker": "4.1.3",
|
|
199
|
+
"@vitest/pretty-format": "4.1.3",
|
|
200
|
+
"@vitest/snapshot": "4.1.3",
|
|
201
|
+
"@vitest/utils": "4.1.3",
|
|
202
|
+
"@vitest/runner": "4.1.3",
|
|
203
|
+
"@vitest/spy": "4.1.3"
|
|
196
204
|
},
|
|
197
205
|
"devDependencies": {
|
|
198
206
|
"@antfu/install-pkg": "^1.1.0",
|