vitest 4.0.0-beta.6 → 4.0.0-beta.8
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 +3 -3
- package/dist/chunks/{browser.d.Cawq_X_N.d.ts → browser.d.DOMmqJQx.d.ts} +1 -1
- package/dist/chunks/{cac.WE-urWw5.js → cac.By1HvRIk.js} +7 -7
- package/dist/chunks/{cli-api.CZz3evYC.js → cli-api.C-JHgQgp.js} +383 -210
- package/dist/chunks/{config.d.CKNVOKm0.d.ts → config.d._GBBbReY.d.ts} +1 -0
- package/dist/chunks/{coverage.BPRS6xgn.js → coverage.DarITf6U.js} +7 -7
- package/dist/chunks/{index.VNI-1z5c.js → index.AzwzFtyi.js} +14 -5
- package/dist/chunks/{index.7w0eqmYM.js → index.BuwjkI-q.js} +1 -1
- package/dist/chunks/{index.BG0gqZH-.js → index.DfviD7lX.js} +16 -8
- package/dist/chunks/{moduleRunner.d.8kKUsuDg.d.ts → moduleRunner.d.CX4DuqOx.d.ts} +1 -1
- package/dist/chunks/{plugin.d.DuiQJfUL.d.ts → plugin.d.CHe6slQs.d.ts} +1 -1
- package/dist/chunks/{reporters.d.CqR9-CDJ.d.ts → reporters.d.37tJQ2uV.d.ts} +950 -995
- package/dist/chunks/{typechecker.Cd1wvxUM.js → typechecker.DSo_maXz.js} +1 -1
- package/dist/chunks/{worker.d.Db-UVmXc.d.ts → worker.d.BKu8cnnX.d.ts} +1 -1
- package/dist/chunks/{worker.d.D9QWnzAe.d.ts → worker.d.DYlqbejz.d.ts} +1 -1
- package/dist/cli.js +3 -3
- package/dist/config.d.ts +9 -9
- package/dist/coverage.d.ts +7 -7
- package/dist/coverage.js +2 -2
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/module-evaluator.d.ts +3 -3
- package/dist/node.d.ts +24 -12
- package/dist/node.js +11 -16
- package/dist/reporters.d.ts +7 -7
- package/dist/reporters.js +3 -3
- package/dist/runners.d.ts +1 -1
- package/dist/worker.js +1 -1
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +1 -1
- package/package.json +10 -11
|
@@ -759,4 +759,4 @@ function findGeneratedPosition(traceMap, { line, column, source }) {
|
|
|
759
759
|
};
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
-
export { TypeCheckError as T, Typechecker as a, convertTasksToEvents as c, getOutputFile as g, hasFailedSnapshot as h, wrapSerializableConfig as w };
|
|
762
|
+
export { TypeCheckError as T, Typechecker as a, ancestor as b, convertTasksToEvents as c, getOutputFile as g, hasFailedSnapshot as h, wrapSerializableConfig as w };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelReason, File, TestAnnotation, TaskResultPack, TaskEventPack, FileSpecification, Task } from '@vitest/runner';
|
|
2
2
|
import { FetchFunctionOptions, FetchResult, EvaluatedModules } from 'vite/module-runner';
|
|
3
|
-
import { a as SerializedConfig } from './config.d.
|
|
3
|
+
import { a as SerializedConfig } from './config.d._GBBbReY.js';
|
|
4
4
|
import { F as FetchCachedFileSystemResult, R as ResolveFunctionResult, U as UserConsoleLog, A as AfterSuiteRunMeta, E as Environment } from './environment.d.2fYMoz3o.js';
|
|
5
5
|
import { SnapshotResult } from '@vitest/snapshot';
|
|
6
6
|
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as createCLI } from './chunks/cac.
|
|
1
|
+
import { c as createCLI } from './chunks/cac.By1HvRIk.js';
|
|
2
2
|
import '@vitest/utils';
|
|
3
3
|
import 'events';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
6
|
import './chunks/constants.D_Q9UYh-.js';
|
|
7
|
-
import './chunks/index.
|
|
7
|
+
import './chunks/index.AzwzFtyi.js';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
|
-
import './chunks/typechecker.
|
|
10
|
+
import './chunks/typechecker.DSo_maXz.js';
|
|
11
11
|
import 'node:os';
|
|
12
12
|
import 'node:perf_hooks';
|
|
13
13
|
import '@vitest/utils/source-map';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
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.37tJQ2uV.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.37tJQ2uV.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.CHe6slQs.js';
|
|
6
|
+
import { F as FakeTimerInstallOpts } from './chunks/config.d._GBBbReY.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import './chunks/environment.d.2fYMoz3o.js';
|
|
10
10
|
import 'node:stream';
|
|
11
|
-
import 'node:console';
|
|
12
|
-
import './chunks/browser.d.Cawq_X_N.js';
|
|
13
|
-
import './chunks/worker.d.D9QWnzAe.js';
|
|
14
|
-
import 'vite/module-runner';
|
|
15
|
-
import '@vitest/snapshot';
|
|
16
11
|
import '@vitest/mocker';
|
|
17
12
|
import '@vitest/utils/source-map';
|
|
13
|
+
import './chunks/browser.d.DOMmqJQx.js';
|
|
14
|
+
import './chunks/worker.d.DYlqbejz.js';
|
|
15
|
+
import 'vite/module-runner';
|
|
16
|
+
import '@vitest/snapshot';
|
|
18
17
|
import '@vitest/pretty-format';
|
|
19
18
|
import '@vitest/utils/diff';
|
|
20
19
|
import 'chai';
|
|
@@ -25,6 +24,7 @@ import 'tinybench';
|
|
|
25
24
|
import './chunks/coverage.d.BZtK59WP.js';
|
|
26
25
|
import '@vitest/snapshot/manager';
|
|
27
26
|
import 'node:fs';
|
|
27
|
+
import 'node:console';
|
|
28
28
|
|
|
29
29
|
/* eslint-disable unused-imports/no-unused-vars */
|
|
30
30
|
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
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.37tJQ2uV.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/environment.d.2fYMoz3o.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import './chunks/
|
|
7
|
+
import '@vitest/mocker';
|
|
8
|
+
import '@vitest/utils/source-map';
|
|
9
|
+
import './chunks/browser.d.DOMmqJQx.js';
|
|
10
|
+
import './chunks/worker.d.DYlqbejz.js';
|
|
10
11
|
import 'vite/module-runner';
|
|
11
|
-
import './chunks/config.d.
|
|
12
|
+
import './chunks/config.d._GBBbReY.js';
|
|
12
13
|
import '@vitest/pretty-format';
|
|
13
14
|
import '@vitest/snapshot';
|
|
14
15
|
import '@vitest/utils/diff';
|
|
15
|
-
import '@vitest/mocker';
|
|
16
|
-
import '@vitest/utils/source-map';
|
|
17
16
|
import 'chai';
|
|
18
17
|
import 'vitest/optional-types.js';
|
|
19
18
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
|
@@ -22,6 +21,7 @@ import 'tinybench';
|
|
|
22
21
|
import './chunks/coverage.d.BZtK59WP.js';
|
|
23
22
|
import '@vitest/snapshot/manager';
|
|
24
23
|
import 'node:fs';
|
|
24
|
+
import 'node:console';
|
|
25
25
|
|
|
26
26
|
type Threshold = "lines" | "functions" | "statements" | "branches";
|
|
27
27
|
interface ResolvedThreshold {
|
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.DarITf6U.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:path';
|
|
4
4
|
import '@vitest/utils';
|
|
@@ -24,7 +24,7 @@ import 'node:tty';
|
|
|
24
24
|
import 'node:events';
|
|
25
25
|
import './chunks/index.Bgo3tNWt.js';
|
|
26
26
|
import 'tinypool';
|
|
27
|
-
import './chunks/typechecker.
|
|
27
|
+
import './chunks/typechecker.DSo_maXz.js';
|
|
28
28
|
import 'node:perf_hooks';
|
|
29
29
|
import '@vitest/utils/source-map';
|
|
30
30
|
import 'tinyexec';
|
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.DfviD7lX.js';
|
|
2
2
|
import 'node:console';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SerializedTestSpecification } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
1
|
+
import { S as SerializedTestSpecification } from './chunks/browser.d.DOMmqJQx.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.DOMmqJQx.js';
|
|
3
3
|
import './chunks/global.d.K6uBQHzY.js';
|
|
4
4
|
import { File, TestAnnotation, TaskResultPack, TaskEventPack, TaskPopulated } from '@vitest/runner';
|
|
5
5
|
export { CancelReason, HookCleanupCallback, HookListener, ImportDuration, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskEventPack as RunnerTaskEventPack, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
6
|
-
import { a as BirpcReturn } from './chunks/worker.d.
|
|
7
|
-
export { C as ContextRPC, c as ContextTestEnvironment, b as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
8
|
-
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.
|
|
9
|
-
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.d.
|
|
6
|
+
import { a as BirpcReturn } from './chunks/worker.d.DYlqbejz.js';
|
|
7
|
+
export { C as ContextRPC, c as ContextTestEnvironment, b as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.DYlqbejz.js';
|
|
8
|
+
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d._GBBbReY.js';
|
|
9
|
+
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.d._GBBbReY.js';
|
|
10
10
|
import { b as Awaitable, U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext } from './chunks/environment.d.2fYMoz3o.js';
|
|
11
11
|
export { A as AfterSuiteRunMeta } from './chunks/environment.d.2fYMoz3o.js';
|
|
12
12
|
import { ExpectStatic } from '@vitest/expect';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.CX4DuqOx.js';
|
|
3
3
|
import 'node:vm';
|
|
4
|
-
import './chunks/worker.d.
|
|
4
|
+
import './chunks/worker.d.DYlqbejz.js';
|
|
5
5
|
import '@vitest/runner';
|
|
6
|
-
import './chunks/config.d.
|
|
6
|
+
import './chunks/config.d._GBBbReY.js';
|
|
7
7
|
import '@vitest/pretty-format';
|
|
8
8
|
import '@vitest/snapshot';
|
|
9
9
|
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, T as TestProject,
|
|
7
|
-
export {
|
|
8
|
-
import {
|
|
9
|
-
export {
|
|
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.37tJQ2uV.js';
|
|
7
|
+
export { an as BaseCoverageOptions, G as BenchmarkUserOptions, K as BrowserBuiltinProvider, N as BrowserCommand, Q as BrowserCommandContext, X as BrowserConfigOptions, Y as BrowserInstanceOption, Z as BrowserModuleMocker, _ as BrowserOrchestrator, $ as BrowserProvider, a0 as BrowserProviderInitializationOptions, a1 as BrowserProviderModule, a2 as BrowserProviderOptions, a3 as BrowserScript, a4 as BrowserServerState, a5 as BrowserServerStateSession, ac as BuiltinEnvironment, a6 as CDPSession, ad as CSSModuleScopeStrategy, ao as CoverageIstanbulOptions, ap as CoverageOptions, aq as CoverageProvider, ar as CoverageProviderModule, as as CoverageReporter, c as CoverageV8Options, at as CustomProviderOptions, ae as DepsOptimizationOptions, af as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a7 as ParentProjectBrowser, ag as PoolOptions, a8 as ProjectBrowser, ah as ProjectConfig, b as ReportContext, av as ReportedHookContext, aw as Reporter, aj as ResolveSnapshotPathHandler, ak as ResolveSnapshotPathHandlerContext, a9 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ai as ResolvedProjectConfig, S as SerializedTestProject, p as TaskOptions, q as TestCase, r as TestCollection, s as TestDiagnostic, t as TestModule, u as TestModuleState, v as TestResult, w as TestResultFailed, x as TestResultPassed, y as TestResultSkipped, ax as TestRunEndReason, au as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, aa as ToMatchScreenshotComparators, ab as ToMatchScreenshotOptions, al as TypecheckConfig, U as UserWorkspaceConfig, am as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.37tJQ2uV.js';
|
|
8
|
+
import { Awaitable } from '@vitest/utils';
|
|
9
|
+
export { SerializedError } from '@vitest/utils';
|
|
10
|
+
import { R as RuntimeRPC } from './chunks/worker.d.DYlqbejz.js';
|
|
11
|
+
export { T as TestExecutionType } from './chunks/worker.d.DYlqbejz.js';
|
|
10
12
|
import { Writable } from 'node:stream';
|
|
11
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
12
|
-
export { W as WorkerContext } from './chunks/worker.d.
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.CHe6slQs.js';
|
|
14
|
+
export { W as WorkerContext } from './chunks/worker.d.BKu8cnnX.js';
|
|
13
15
|
import { Debugger } from 'debug';
|
|
14
16
|
import './chunks/global.d.K6uBQHzY.js';
|
|
15
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';
|
|
16
|
-
export { b as RuntimeConfig } from './chunks/config.d.
|
|
17
|
-
export { SerializedError } from '@vitest/utils';
|
|
18
|
+
export { b as RuntimeConfig } from './chunks/config.d._GBBbReY.js';
|
|
18
19
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
19
20
|
import './chunks/environment.d.2fYMoz3o.js';
|
|
20
|
-
import 'node:console';
|
|
21
|
-
import './chunks/browser.d.Cawq_X_N.js';
|
|
22
21
|
import '@vitest/mocker';
|
|
23
22
|
import '@vitest/utils/source-map';
|
|
23
|
+
import './chunks/browser.d.DOMmqJQx.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
|
26
26
|
import '@vitest/utils/diff';
|
|
@@ -31,6 +31,7 @@ import 'tinybench';
|
|
|
31
31
|
import './chunks/coverage.d.BZtK59WP.js';
|
|
32
32
|
import '@vitest/snapshot/manager';
|
|
33
33
|
import 'node:fs';
|
|
34
|
+
import 'node:console';
|
|
34
35
|
import 'vite/module-runner';
|
|
35
36
|
import 'node:worker_threads';
|
|
36
37
|
import '@vitest/expect';
|
|
@@ -61,6 +62,8 @@ type Context = RootAndTarget & {
|
|
|
61
62
|
|
|
62
63
|
declare function isValidApiRequest(config: ResolvedConfig, req: IncomingMessage): boolean;
|
|
63
64
|
|
|
65
|
+
declare function escapeTestName(label: string, dynamic: boolean): string;
|
|
66
|
+
|
|
64
67
|
interface CliOptions extends UserConfig {
|
|
65
68
|
/**
|
|
66
69
|
* Override the watch mode
|
|
@@ -126,6 +129,15 @@ declare function resolveConfig(options?: UserConfig, viteOverrides?: UserConfig$
|
|
|
126
129
|
|
|
127
130
|
declare function resolveFsAllow(projectRoot: string, rootConfigFile: string | false | undefined): string[];
|
|
128
131
|
|
|
132
|
+
type RunWithFiles = (files: TestSpecification[], invalidates?: string[]) => Awaitable<void>;
|
|
133
|
+
interface ProcessPool {
|
|
134
|
+
name: string;
|
|
135
|
+
runTests: RunWithFiles;
|
|
136
|
+
collectTests: RunWithFiles;
|
|
137
|
+
close?: () => Awaitable<void>;
|
|
138
|
+
}
|
|
139
|
+
declare function getFilePoolName(project: TestProject): Pool;
|
|
140
|
+
|
|
129
141
|
interface MethodsOptions {
|
|
130
142
|
cacheFs?: boolean;
|
|
131
143
|
// do not report files
|
|
@@ -164,5 +176,5 @@ declare const createViteServer: typeof vite.createServer;
|
|
|
164
176
|
// rolldownVersion is exported only by rolldown-vite
|
|
165
177
|
declare const rolldownVersion: string | undefined;
|
|
166
178
|
|
|
167
|
-
export { ApiConfig, BaseSequencer, GitNotFoundError, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, Vitest, VitestOptions, VitestPlugin, VitestRunMode,
|
|
168
|
-
export type { CliParseOptions, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget };
|
|
179
|
+
export { ApiConfig, BaseSequencer, GitNotFoundError, Pool, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, Vitest, VitestOptions, VitestPlugin, VitestRunMode, createDebugger, createMethodsRPC, createViteLogger, createViteServer, createVitest, distDir, escapeTestName, getFilePoolName, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rolldownVersion, rootDir, startVitest, version };
|
|
180
|
+
export type { CliParseOptions, ProcessPool, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget };
|
package/dist/node.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
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,
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
7
|
-
import { r as resolveConfig$2 } from './chunks/coverage.
|
|
8
|
-
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.C-JHgQgp.js';
|
|
5
|
+
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, h as createDebugger, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.C-JHgQgp.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.By1HvRIk.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.DarITf6U.js';
|
|
8
|
+
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.DarITf6U.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils';
|
|
10
10
|
import { f as findUp } from './chunks/index.X0nbfr6-.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
12
12
|
import { c as configFiles } from './chunks/constants.D_Q9UYh-.js';
|
|
13
13
|
export { distDir, rootDir } from './path.js';
|
|
14
|
-
import createDebug from 'debug';
|
|
15
14
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
16
15
|
import 'node:fs';
|
|
17
16
|
import './chunks/coverage.D_JHT54q.js';
|
|
18
17
|
import 'node:path';
|
|
18
|
+
import 'node:os';
|
|
19
19
|
import '@vitest/snapshot/manager';
|
|
20
20
|
import './chunks/index.Bgo3tNWt.js';
|
|
21
|
-
import './chunks/index.
|
|
21
|
+
import './chunks/index.AzwzFtyi.js';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
|
-
import './chunks/typechecker.
|
|
24
|
-
import 'node:os';
|
|
23
|
+
import './chunks/typechecker.DSo_maXz.js';
|
|
25
24
|
import 'node:perf_hooks';
|
|
26
25
|
import '@vitest/utils/source-map';
|
|
27
26
|
import 'tinyexec';
|
|
@@ -44,6 +43,7 @@ import 'zlib';
|
|
|
44
43
|
import 'buffer';
|
|
45
44
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
46
45
|
import 'node:crypto';
|
|
46
|
+
import 'debug';
|
|
47
47
|
import '#module-evaluator';
|
|
48
48
|
import 'vite/module-runner';
|
|
49
49
|
import 'node:url';
|
|
@@ -54,7 +54,7 @@ import '@vitest/mocker/node';
|
|
|
54
54
|
import './chunks/defaults.CXFFjsi8.js';
|
|
55
55
|
import './chunks/resolver.Bx6lE0iq.js';
|
|
56
56
|
import 'es-module-lexer';
|
|
57
|
-
import './chunks/index.
|
|
57
|
+
import './chunks/index.BuwjkI-q.js';
|
|
58
58
|
import 'node:assert';
|
|
59
59
|
import '@vitest/utils/error';
|
|
60
60
|
import 'node:readline';
|
|
@@ -81,14 +81,9 @@ async function resolveConfig(options = {}, viteOverrides = {}) {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
function createDebugger(namespace) {
|
|
85
|
-
const debug = createDebug(namespace);
|
|
86
|
-
if (debug.enabled) return debug;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
84
|
const version = Vitest.version;
|
|
90
85
|
const createViteServer = vite.createServer;
|
|
91
86
|
// rolldownVersion is exported only by rolldown-vite
|
|
92
87
|
const rolldownVersion = vite.rolldownVersion;
|
|
93
88
|
|
|
94
|
-
export { VitestPlugin,
|
|
89
|
+
export { VitestPlugin, createViteServer, resolveConfig, rolldownVersion, version };
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aL as BaseReporter, aM as BenchmarkBuiltinReporters, ay as BenchmarkReporter, az as BenchmarkReportsMap, aN as BuiltinReporterOptions, aO as BuiltinReporters, aA as DefaultReporter, aB as DotReporter, aC as GithubActionsReporter, aD as HangingProcessReporter, aF as JUnitReporter, aP as JsonAssertionResult, aE as JsonReporter, aQ as JsonTestResult, aR as JsonTestResults, av as ReportedHookContext, aw as Reporter, aG as ReportersMap, aH as TapFlatReporter, aI as TapReporter, ax as TestRunEndReason, aJ as VerboseBenchmarkReporter, aK as VerboseReporter } from './chunks/reporters.d.37tJQ2uV.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/environment.d.2fYMoz3o.js';
|
|
5
5
|
import 'node:stream';
|
|
6
6
|
import 'vite';
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import './chunks/
|
|
7
|
+
import '@vitest/mocker';
|
|
8
|
+
import '@vitest/utils/source-map';
|
|
9
|
+
import './chunks/browser.d.DOMmqJQx.js';
|
|
10
|
+
import './chunks/worker.d.DYlqbejz.js';
|
|
10
11
|
import 'vite/module-runner';
|
|
11
|
-
import './chunks/config.d.
|
|
12
|
+
import './chunks/config.d._GBBbReY.js';
|
|
12
13
|
import '@vitest/pretty-format';
|
|
13
14
|
import '@vitest/snapshot';
|
|
14
15
|
import '@vitest/utils/diff';
|
|
15
|
-
import '@vitest/mocker';
|
|
16
|
-
import '@vitest/utils/source-map';
|
|
17
16
|
import 'chai';
|
|
18
17
|
import 'vitest/optional-types.js';
|
|
19
18
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
|
@@ -22,3 +21,4 @@ import 'tinybench';
|
|
|
22
21
|
import './chunks/coverage.d.BZtK59WP.js';
|
|
23
22
|
import '@vitest/snapshot/manager';
|
|
24
23
|
import 'node:fs';
|
|
24
|
+
import 'node:console';
|
package/dist/reporters.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.
|
|
2
|
-
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.
|
|
1
|
+
export { D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, V as VerboseReporter } from './chunks/index.AzwzFtyi.js';
|
|
2
|
+
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.BuwjkI-q.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
|
6
|
-
import './chunks/typechecker.
|
|
6
|
+
import './chunks/typechecker.DSo_maXz.js';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'node:perf_hooks';
|
|
9
9
|
import '@vitest/utils/source-map';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TestContext, ImportDuration } from '@vitest/runner';
|
|
3
3
|
export { VitestRunner } from '@vitest/runner';
|
|
4
|
-
import { a as SerializedConfig } from './chunks/config.d.
|
|
4
|
+
import { a as SerializedConfig } from './chunks/config.d._GBBbReY.js';
|
|
5
5
|
import '@vitest/pretty-format';
|
|
6
6
|
import '@vitest/snapshot';
|
|
7
7
|
import '@vitest/utils/diff';
|
package/dist/worker.js
CHANGED
|
@@ -6,7 +6,7 @@ import { readFileSync } from 'node:fs';
|
|
|
6
6
|
import { isBuiltin } from 'node:module';
|
|
7
7
|
import { resolve } from 'pathe';
|
|
8
8
|
import { V as VitestTransport } from './chunks/moduleTransport.I-bgQy0S.js';
|
|
9
|
-
import { e as environments } from './chunks/index.
|
|
9
|
+
import { e as environments } from './chunks/index.DfviD7lX.js';
|
|
10
10
|
import { s as setupInspect } from './chunks/inspector.CvQD-Nie.js';
|
|
11
11
|
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.RpPylpp0.js';
|
|
12
12
|
import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C7__0Iv5.js';
|
package/dist/workers.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.d.
|
|
1
|
+
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.d.DYlqbejz.js';
|
|
2
2
|
import { Awaitable } from '@vitest/utils';
|
|
3
3
|
import * as v8 from 'v8';
|
|
4
|
-
import { a as SerializedConfig } from './chunks/config.d.
|
|
5
|
-
import { W as WorkerContext } from './chunks/worker.d.
|
|
4
|
+
import { a as SerializedConfig } from './chunks/config.d._GBBbReY.js';
|
|
5
|
+
import { W as WorkerContext } from './chunks/worker.d.BKu8cnnX.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import 'vite/module-runner';
|
|
8
8
|
import './chunks/environment.d.2fYMoz3o.js';
|
package/dist/workers.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'node:fs';
|
|
|
12
12
|
import 'node:module';
|
|
13
13
|
import 'pathe';
|
|
14
14
|
import './chunks/moduleTransport.I-bgQy0S.js';
|
|
15
|
-
import './chunks/index.
|
|
15
|
+
import './chunks/index.DfviD7lX.js';
|
|
16
16
|
import 'node:console';
|
|
17
17
|
import './chunks/inspector.CvQD-Nie.js';
|
|
18
18
|
import './chunks/rpc.RpPylpp0.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.8",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
|
|
126
126
|
"happy-dom": "*",
|
|
127
127
|
"jsdom": "*",
|
|
128
|
-
"@vitest/
|
|
129
|
-
"@vitest/
|
|
128
|
+
"@vitest/browser": "4.0.0-beta.8",
|
|
129
|
+
"@vitest/ui": "4.0.0-beta.8"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@edge-runtime/vm": {
|
|
@@ -168,16 +168,15 @@
|
|
|
168
168
|
"tinyrainbow": "^2.0.0",
|
|
169
169
|
"vite": "^6.0.0 || ^7.0.0-0",
|
|
170
170
|
"why-is-node-running": "^2.3.0",
|
|
171
|
-
"@vitest/mocker": "4.0.0-beta.
|
|
172
|
-
"@vitest/expect": "4.0.0-beta.
|
|
173
|
-
"@vitest/
|
|
174
|
-
"@vitest/
|
|
175
|
-
"@vitest/spy": "4.0.0-beta.
|
|
176
|
-
"@vitest/
|
|
177
|
-
"@vitest/
|
|
171
|
+
"@vitest/mocker": "4.0.0-beta.8",
|
|
172
|
+
"@vitest/expect": "4.0.0-beta.8",
|
|
173
|
+
"@vitest/pretty-format": "^4.0.0-beta.8",
|
|
174
|
+
"@vitest/runner": "4.0.0-beta.8",
|
|
175
|
+
"@vitest/spy": "4.0.0-beta.8",
|
|
176
|
+
"@vitest/snapshot": "4.0.0-beta.8",
|
|
177
|
+
"@vitest/utils": "4.0.0-beta.8"
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|
|
180
|
-
"@ampproject/remapping": "^2.3.0",
|
|
181
180
|
"@antfu/install-pkg": "^1.1.0",
|
|
182
181
|
"@edge-runtime/vm": "^5.0.0",
|
|
183
182
|
"@sinonjs/fake-timers": "14.0.0",
|