vitest 4.1.3 → 4.1.5
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 +2 -2
- package/dist/browser.js +1 -1
- package/dist/chunks/{base.C3wvLFNM.js → base.RR7zL1h0.js} +4 -4
- package/dist/chunks/{browser.d.C0zGu1u9.d.ts → browser.d.BcoexmFG.d.ts} +2 -2
- package/dist/chunks/{cac.Bb7YBzMA.js → cac.DJJmV0dT.js} +6 -6
- package/dist/chunks/{cli-api.CaPRsymo.js → cli-api.Cjt90eJu.js} +28 -15
- package/dist/chunks/{config.d.ChUh6-ad.d.ts → config.d.A1h_Y6Jt.d.ts} +6 -1
- package/dist/chunks/{coverage.CwUlQe0s.js → coverage.DM_a_rWm.js} +25 -4
- package/dist/chunks/{global.d.D74z04P1.d.ts → global.d.DVsSRdQ5.d.ts} +1 -1
- package/dist/chunks/{globals.7B-4LHAF.js → globals.Dj1TGiMC.js} +2 -2
- package/dist/chunks/{index.Cj9kDiDi.js → index.DXx9Dtk7.js} +2 -2
- package/dist/chunks/{index.4L3g53iW.js → index.DdgEv5B1.js} +1 -1
- package/dist/chunks/{index.DICur-LY.js → index.UpGiHP7g.js} +36 -27
- package/dist/chunks/{plugin.d.BssAumYw.d.ts → plugin.d.BM2TCi12.d.ts} +1 -1
- package/dist/chunks/{reporters.d.yJ2fBir5.d.ts → reporters.d.CEnv6XRv.d.ts} +79 -20
- package/dist/chunks/{rpc.d.BFMWpdph.d.ts → rpc.d.B_8sPU0w.d.ts} +2 -44
- package/dist/chunks/{setup-common.NdrZGMhw.js → setup-common.DYx3LtFI.js} +1 -1
- package/dist/chunks/{test.BmQO5GaM.js → test.DNmyFkvJ.js} +107 -20
- package/dist/chunks/traces.d.D2T_R8rx.d.ts +60 -0
- package/dist/chunks/{utils.DK8FXp4T.js → utils.BS4fH3nR.js} +1 -1
- package/dist/chunks/{worker.d.CckNUvI5.d.ts → worker.d.ZpHpO4yb.d.ts} +2 -2
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +10 -10
- package/dist/coverage.d.ts +8 -7
- package/dist/coverage.js +2 -1
- package/dist/index.d.ts +36 -14
- package/dist/index.js +2 -2
- package/dist/module-evaluator.d.ts +2 -2
- package/dist/node.d.ts +10 -10
- package/dist/node.js +7 -7
- package/dist/reporters.d.ts +8 -8
- package/dist/reporters.js +3 -3
- package/dist/runners.d.ts +2 -2
- package/dist/runners.js +1 -1
- package/dist/worker.d.ts +4 -4
- 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/package.json +14 -14
- package/dist/chunks/traces.d.402V_yFI.d.ts +0 -18
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.DM_a_rWm.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:module';
|
|
4
4
|
import 'node:path';
|
|
@@ -21,6 +21,7 @@ import 'node:v8';
|
|
|
21
21
|
import 'node:util';
|
|
22
22
|
import 'vite';
|
|
23
23
|
import './chunks/constants.CPYnjOGj.js';
|
|
24
|
+
import './chunks/utils.BS4fH3nR.js';
|
|
24
25
|
import './chunks/coverage.CTzCuANN.js';
|
|
25
26
|
|
|
26
27
|
console.warn("Importing from \"vitest/coverage\" is deprecated since Vitest 4.1. Please use \"vitest/node\" instead.");
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
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.BcoexmFG.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.BcoexmFG.js';
|
|
3
|
+
import './chunks/global.d.DVsSRdQ5.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 {
|
|
11
|
-
export {
|
|
12
|
-
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/
|
|
13
|
-
export {
|
|
14
|
-
import { ExpectStatic, MatcherState, SyncExpectationResult, AsyncExpectationResult } from '@vitest/expect';
|
|
8
|
+
import { b as BirpcReturn } from './chunks/worker.d.ZpHpO4yb.js';
|
|
9
|
+
export { C as ContextRPC, c as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.ZpHpO4yb.js';
|
|
10
|
+
import { b as SerializedRootConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.A1h_Y6Jt.js';
|
|
11
|
+
export { c as RuntimeConfig, S as SerializedConfig, a as SerializedCoverageConfig } from './chunks/config.d.A1h_Y6Jt.js';
|
|
12
|
+
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/traces.d.D2T_R8rx.js';
|
|
13
|
+
export { a as AfterSuiteRunMeta } from './chunks/traces.d.D2T_R8rx.js';
|
|
14
|
+
import { ExpectStatic, MatcherState, SyncExpectationResult, AsyncExpectationResult, ExpectationResult } 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
|
+
import { DomainSnapshotAdapter } from '@vitest/snapshot';
|
|
17
|
+
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
16
18
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
17
19
|
export { Mock, MockContext, MockInstance, MockResult, MockResultIncomplete, MockResultReturn, MockResultThrow, MockSettledResult, MockSettledResultFulfilled, MockSettledResultIncomplete, MockSettledResultRejected, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
18
20
|
import { Disposable } from 'vitest/optional-runtime-types.js';
|
|
@@ -22,10 +24,9 @@ export { V as EvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js';
|
|
|
22
24
|
export { NodeBenchmarkRunner as BenchmarkRunner, VitestTestRunner as TestRunner } from './runners.js';
|
|
23
25
|
export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI, B as BenchmarkResult } from './chunks/benchmark.d.DAaHLpsq.js';
|
|
24
26
|
export { ExpectTypeOf, expectTypeOf } from 'expect-type';
|
|
25
|
-
export {
|
|
27
|
+
export { a as RunnerRPC, R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
|
|
26
28
|
export { DiffOptions } from '@vitest/utils/diff';
|
|
27
29
|
export { Bench as BenchFactory, Options as BenchOptions, Task as BenchTask, TaskResult as BenchTaskResult } from 'tinybench';
|
|
28
|
-
import './chunks/traces.d.402V_yFI.js';
|
|
29
30
|
import '@vitest/pretty-format';
|
|
30
31
|
import 'vite/module-runner';
|
|
31
32
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
@@ -61,7 +62,10 @@ interface WebSocketHandlers {
|
|
|
61
62
|
getFiles: () => File[];
|
|
62
63
|
getTestFiles: () => Promise<SerializedTestSpecification[]>;
|
|
63
64
|
getPaths: () => string[];
|
|
64
|
-
getConfig: () =>
|
|
65
|
+
getConfig: () => SerializedRootConfig;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Use `getConfig().projects` instead.
|
|
68
|
+
*/
|
|
65
69
|
getResolvedProjectLabels: () => {
|
|
66
70
|
name: string;
|
|
67
71
|
color?: LabelColor;
|
|
@@ -168,6 +172,24 @@ declare const Snapshots: {
|
|
|
168
172
|
* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers
|
|
169
173
|
*/
|
|
170
174
|
toMatchFileSnapshot(this: MatcherState, received: unknown, filepath: string, hint?: string): AsyncExpectationResult;
|
|
175
|
+
/**
|
|
176
|
+
* Composable for building custom domain-based snapshot matchers via `expect.extend`.
|
|
177
|
+
*
|
|
178
|
+
* Call this from a matcher and pass the domain adapter that defines capture,
|
|
179
|
+
* rendering, parsing, and semantic matching behavior.
|
|
180
|
+
*
|
|
181
|
+
* @experimental
|
|
182
|
+
*/
|
|
183
|
+
toMatchDomainSnapshot(this: MatcherState, domain: DomainSnapshotAdapter<any, any>, received: unknown): ExpectationResult;
|
|
184
|
+
/**
|
|
185
|
+
* Composable for building custom domain-based inline snapshot matchers via `expect.extend`.
|
|
186
|
+
*
|
|
187
|
+
* Call this from a matcher and pass the domain adapter that defines capture,
|
|
188
|
+
* rendering, parsing, and semantic matching behavior.
|
|
189
|
+
*
|
|
190
|
+
* @experimental
|
|
191
|
+
*/
|
|
192
|
+
toMatchDomainInlineSnapshot(this: MatcherState, domain: DomainSnapshotAdapter<any, any>, received: unknown, inlineSnapshot?: string): ExpectationResult;
|
|
171
193
|
};
|
|
172
194
|
|
|
173
195
|
type WaitForCallback<T> = () => T | Promise<T>;
|
|
@@ -616,5 +638,5 @@ declare namespace Experimental {
|
|
|
616
638
|
export { ModuleDefinitionDiagnostic, ModuleDefinitionDurationsDiagnostic, ModuleDefinitionLocation, SourceModuleDiagnostic, SourceModuleLocations, UntrackedModuleDefinitionDiagnostic };
|
|
617
639
|
}
|
|
618
640
|
|
|
619
|
-
export { Experimental, LabelColor, ModuleGraphData, ProvidedContext,
|
|
641
|
+
export { Experimental, LabelColor, ModuleGraphData, ProvidedContext, SerializedRootConfig, SerializedTestSpecification, Snapshots, UserConsoleLog, assert, assertType, createExpect, globalExpect as expect, inject, should, vi, vitest };
|
|
620
642
|
export type { AssertType, BrowserUI, ExternalResult, TransformResultWithSource, VitestUtils, WebSocketEvents, WebSocketHandlers, WebSocketRPC };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
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.DNmyFkvJ.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.DdgEv5B1.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';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode } from 'vite/module-runner';
|
|
2
2
|
import { V as VitestEvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js';
|
|
3
3
|
import vm from 'node:vm';
|
|
4
|
-
import { R as RuntimeRPC } from './chunks/rpc.d.
|
|
4
|
+
import { R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
|
|
5
5
|
import '@vitest/runner';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
|
-
import './chunks/traces.d.
|
|
7
|
+
import './chunks/traces.d.D2T_R8rx.js';
|
|
8
8
|
|
|
9
9
|
type ModuleExecutionInfo = Map<string, ModuleExecutionInfoEntry>;
|
|
10
10
|
interface ModuleExecutionInfoEntry {
|
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, 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 {
|
|
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.CEnv6XRv.js';
|
|
7
|
+
export { M as AgentReporter, B as BaseCoverageOptions, l as BaseReporter, m as BenchmarkBuiltinReporters, n as BenchmarkReporter, o as BenchmarkReportsMap, p as BenchmarkUserOptions, q as BrowserBuiltinProvider, r as BrowserCommand, s as BrowserCommandContext, t as BrowserConfigOptions, u as BrowserInstanceOption, v as BrowserModuleMocker, w as BrowserOrchestrator, x as BrowserProvider, y as BrowserProviderOption, z as BrowserScript, D as BrowserServerFactory, E as BrowserServerOptions, G as BrowserServerState, H as BrowserServerStateSession, J as BuiltinEnvironment, K as BuiltinReporterOptions, N as BuiltinReporters, O as CSSModuleScopeStrategy, Q as CoverageInstrumenter, S as CoverageIstanbulOptions, C as CoverageOptions, X as CoverageProvider, Y as CoverageProviderModule, Z as CoverageReporter, _ as CoverageV8Options, $ as CustomProviderOptions, a0 as DefaultReporter, a1 as DepsOptimizationOptions, a2 as DotReporter, a3 as EnvironmentOptions, a4 as GithubActionsReporter, a5 as HTMLOptions, a6 as HangingProcessReporter, I as InlineConfig, a7 as InstrumenterOptions, a8 as JUnitOptions, a9 as JUnitReporter, aa as JsonAssertionResult, ab as JsonOptions, ac as JsonReporter, ad as JsonTestResult, ae as JsonTestResults, M as MinimalReporter, af as ModuleDiagnostic, ag as OnServerRestartHandler, ah as OnTestsRerunHandler, ai as ParentProjectBrowser, aj as Pool, ak as PoolRunnerInitializer, al as PoolTask, am as ProjectBrowser, an as ProjectConfig, ao as ReportContext, ap as ReportedHookContext, aq as Reporter, ar as ReportersMap, as as ResolveSnapshotPathHandler, at as ResolveSnapshotPathHandlerContext, au as ResolvedBrowserOptions, av as ResolvedCoverageOptions, aw as ResolvedProjectConfig, ax as SerializedTestProject, ay as TapFlatReporter, az as TapReporter, aA as TaskOptions, aB as TestCase, aC as TestCollection, aD as TestDiagnostic, aE as TestModule, aF as TestModuleState, aG as TestResult, aH as TestResultFailed, aI as TestResultPassed, aJ as TestResultSkipped, aK as TestRunEndReason, aL as TestRunResult, aM as TestSequencerConstructor, aN as TestSpecificationOptions, aO as TestState, aP as TestSuite, aQ as TestSuiteState, aR as ToMatchScreenshotComparators, aS as ToMatchScreenshotOptions, aT as TypecheckConfig, U as UserWorkspaceConfig, aU as VerboseBenchmarkReporter, aV as VerboseReporter, aW as VitestEnvironment, aX as VitestPackageInstaller, W as WatcherTriggerPattern, aY as WorkerResponse, aZ as _BrowserNames, a_ as experimental_getRunnerTask } from './chunks/reporters.d.CEnv6XRv.js';
|
|
8
|
+
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.BM2TCi12.js';
|
|
9
9
|
export { BaseCoverageProvider } from './coverage.js';
|
|
10
10
|
import { Awaitable } from '@vitest/utils';
|
|
11
11
|
export { SerializedError } from '@vitest/utils';
|
|
12
|
-
import { R as RuntimeRPC } from './chunks/rpc.d.
|
|
12
|
+
import { R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.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.ZpHpO4yb.js';
|
|
15
|
+
export { T as TestExecutionType } from './chunks/worker.d.ZpHpO4yb.js';
|
|
16
16
|
import { Debugger } from 'obug';
|
|
17
|
-
import './chunks/global.d.
|
|
17
|
+
import './chunks/global.d.DVsSRdQ5.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 {
|
|
19
|
+
export { c as RuntimeConfig } from './chunks/config.d.A1h_Y6Jt.js';
|
|
20
20
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
21
21
|
export { CDPSession } from 'vitest/browser';
|
|
22
|
-
import './chunks/
|
|
23
|
-
import './chunks/
|
|
22
|
+
import './chunks/traces.d.D2T_R8rx.js';
|
|
23
|
+
import './chunks/browser.d.BcoexmFG.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
|
26
26
|
import '@vitest/utils/diff';
|
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.Cjt90eJu.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.Cjt90eJu.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.DJJmV0dT.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.DM_a_rWm.js';
|
|
8
|
+
export { B as BaseCoverageProvider, a as BaseSequencer, b as resolveApiServerConfig } from './chunks/coverage.DM_a_rWm.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 {
|
|
13
|
+
export { M 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, M as MinimalReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.UpGiHP7g.js';
|
|
14
14
|
export { distDir, rootDir } from './path.js';
|
|
15
15
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
16
16
|
import 'node:fs';
|
|
@@ -35,7 +35,7 @@ import 'tinyrainbow';
|
|
|
35
35
|
import '#module-evaluator';
|
|
36
36
|
import 'node:console';
|
|
37
37
|
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
38
|
-
import './chunks/utils.
|
|
38
|
+
import './chunks/utils.BS4fH3nR.js';
|
|
39
39
|
import './chunks/env.D4Lgay0q.js';
|
|
40
40
|
import 'std-env';
|
|
41
41
|
import 'node:tty';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M as AgentReporter, l as BaseReporter, m as BenchmarkBuiltinReporters, n as BenchmarkReporter, o as BenchmarkReportsMap, K as BuiltinReporterOptions, N as BuiltinReporters, a0 as DefaultReporter, a2 as DotReporter, a4 as GithubActionsReporter, a6 as HangingProcessReporter, a9 as JUnitReporter, aa as JsonAssertionResult, ac as JsonReporter, ad as JsonTestResult, ae as JsonTestResults, M as MinimalReporter, ap as ReportedHookContext, aq as Reporter, ar as ReportersMap, ay as TapFlatReporter, az as TapReporter, aK as TestRunEndReason, aU as VerboseBenchmarkReporter, aV as VerboseReporter } from './chunks/reporters.d.CEnv6XRv.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
|
-
import './chunks/
|
|
5
|
-
import '@vitest/snapshot';
|
|
6
|
-
import 'vite/module-runner';
|
|
7
|
-
import './chunks/traces.d.402V_yFI.js';
|
|
4
|
+
import './chunks/traces.d.D2T_R8rx.js';
|
|
8
5
|
import 'node:stream';
|
|
9
6
|
import 'vite';
|
|
10
|
-
import './chunks/
|
|
11
|
-
import './chunks/worker.d.CckNUvI5.js';
|
|
12
|
-
import './chunks/config.d.ChUh6-ad.js';
|
|
7
|
+
import './chunks/config.d.A1h_Y6Jt.js';
|
|
13
8
|
import '@vitest/pretty-format';
|
|
9
|
+
import '@vitest/snapshot';
|
|
14
10
|
import '@vitest/utils/diff';
|
|
11
|
+
import './chunks/browser.d.BcoexmFG.js';
|
|
12
|
+
import './chunks/worker.d.ZpHpO4yb.js';
|
|
13
|
+
import 'vite/module-runner';
|
|
15
14
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
15
|
+
import './chunks/rpc.d.B_8sPU0w.js';
|
|
16
16
|
import '@vitest/expect';
|
|
17
17
|
import 'vitest/optional-types.js';
|
|
18
18
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/reporters.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M 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, M as MinimalReporter, R as ReportersMap, T as TapFlatReporter, d as TapReporter, V as VerboseBenchmarkReporter, e as VerboseReporter } from './chunks/index.UpGiHP7g.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import '@vitest/runner/utils';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
|
-
import './chunks/utils.
|
|
6
|
+
import './chunks/utils.BS4fH3nR.js';
|
|
7
7
|
import 'node:util';
|
|
8
8
|
import '@vitest/utils/helpers';
|
|
9
|
+
import 'node:fs/promises';
|
|
9
10
|
import 'node:perf_hooks';
|
|
10
11
|
import '@vitest/utils/source-map';
|
|
11
12
|
import './chunks/env.D4Lgay0q.js';
|
|
@@ -20,7 +21,6 @@ import 'node:path';
|
|
|
20
21
|
import 'node:url';
|
|
21
22
|
import 'vite';
|
|
22
23
|
import '@vitest/utils/offset';
|
|
23
|
-
import 'node:fs/promises';
|
|
24
24
|
import 'node:module';
|
|
25
25
|
|
|
26
26
|
console.warn("Importing from \"vitest/reporters\" is deprecated since Vitest 4.1. Please use \"vitest/node\" instead.");
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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.
|
|
5
|
-
import { T as Traces } from './chunks/traces.d.
|
|
4
|
+
import { S as SerializedConfig } from './chunks/config.d.A1h_Y6Jt.js';
|
|
5
|
+
import { T as Traces } from './chunks/traces.d.D2T_R8rx.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';
|
|
8
8
|
import '@vitest/pretty-format';
|
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.DNmyFkvJ.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils/helpers';
|
|
4
4
|
import '@vitest/utils/timers';
|
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.
|
|
2
|
-
import { T as Traces } from './chunks/traces.d.
|
|
1
|
+
import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.ZpHpO4yb.js';
|
|
2
|
+
import { T as Traces } from './chunks/traces.d.D2T_R8rx.js';
|
|
3
3
|
import { Awaitable } from '@vitest/utils';
|
|
4
4
|
import { ModuleRunner } from 'vite/module-runner';
|
|
5
|
-
import { R as RuntimeRPC } from './chunks/rpc.d.
|
|
5
|
+
import { R as RuntimeRPC } from './chunks/rpc.d.B_8sPU0w.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
|
-
import './chunks/config.d.
|
|
7
|
+
import './chunks/config.d.A1h_Y6Jt.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.RR7zL1h0.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.DXx9Dtk7.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import 'node:async_hooks';
|
|
8
|
-
import './chunks/setup-common.
|
|
8
|
+
import './chunks/setup-common.DYx3LtFI.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.DNmyFkvJ.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.DdgEv5B1.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.RR7zL1h0.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.DXx9Dtk7.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import 'node:async_hooks';
|
|
8
|
-
import '../chunks/setup-common.
|
|
8
|
+
import '../chunks/setup-common.DYx3LtFI.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.DNmyFkvJ.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.DdgEv5B1.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.DXx9Dtk7.js';
|
|
9
|
+
import { s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker } from '../chunks/setup-common.DYx3LtFI.js';
|
|
10
|
+
import { i as index } from '../chunks/index.DdgEv5B1.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.DNmyFkvJ.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.RR7zL1h0.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.DXx9Dtk7.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
7
|
import 'node:async_hooks';
|
|
8
|
-
import '../chunks/setup-common.
|
|
8
|
+
import '../chunks/setup-common.DYx3LtFI.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.DNmyFkvJ.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.DdgEv5B1.js';
|
|
56
56
|
import 'expect-type';
|
|
57
57
|
import 'node:worker_threads';
|
|
58
58
|
|
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.5",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
"happy-dom": "*",
|
|
136
136
|
"jsdom": "*",
|
|
137
137
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
138
|
-
"@vitest/browser-
|
|
139
|
-
"@vitest/browser-
|
|
140
|
-
"@vitest/browser-webdriverio": "4.1.
|
|
141
|
-
"@vitest/coverage-istanbul": "4.1.
|
|
142
|
-
"@vitest/coverage-v8": "4.1.
|
|
143
|
-
"@vitest/ui": "4.1.
|
|
138
|
+
"@vitest/browser-preview": "4.1.5",
|
|
139
|
+
"@vitest/browser-playwright": "4.1.5",
|
|
140
|
+
"@vitest/browser-webdriverio": "4.1.5",
|
|
141
|
+
"@vitest/coverage-istanbul": "4.1.5",
|
|
142
|
+
"@vitest/coverage-v8": "4.1.5",
|
|
143
|
+
"@vitest/ui": "4.1.5"
|
|
144
144
|
},
|
|
145
145
|
"peerDependenciesMeta": {
|
|
146
146
|
"@edge-runtime/vm": {
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
"tinyrainbow": "^3.1.0",
|
|
195
195
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
196
196
|
"why-is-node-running": "^2.3.0",
|
|
197
|
-
"@vitest/expect": "4.1.
|
|
198
|
-
"@vitest/mocker": "4.1.
|
|
199
|
-
"@vitest/pretty-format": "4.1.
|
|
200
|
-
"@vitest/snapshot": "4.1.
|
|
201
|
-
"@vitest/
|
|
202
|
-
"@vitest/runner": "4.1.
|
|
203
|
-
"@vitest/
|
|
197
|
+
"@vitest/expect": "4.1.5",
|
|
198
|
+
"@vitest/mocker": "4.1.5",
|
|
199
|
+
"@vitest/pretty-format": "4.1.5",
|
|
200
|
+
"@vitest/snapshot": "4.1.5",
|
|
201
|
+
"@vitest/spy": "4.1.5",
|
|
202
|
+
"@vitest/runner": "4.1.5",
|
|
203
|
+
"@vitest/utils": "4.1.5"
|
|
204
204
|
},
|
|
205
205
|
"devDependencies": {
|
|
206
206
|
"@antfu/install-pkg": "^1.1.0",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface OTELCarrier {
|
|
2
|
-
traceparent?: string;
|
|
3
|
-
tracestate?: string;
|
|
4
|
-
}
|
|
5
|
-
interface TracesOptions {
|
|
6
|
-
enabled: boolean;
|
|
7
|
-
watchMode?: boolean;
|
|
8
|
-
sdkPath?: string;
|
|
9
|
-
tracerName?: string;
|
|
10
|
-
}
|
|
11
|
-
declare class Traces {
|
|
12
|
-
#private;
|
|
13
|
-
constructor(options: TracesOptions);
|
|
14
|
-
isEnabled(): boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { Traces as T };
|
|
18
|
-
export type { OTELCarrier as O };
|