vitest 4.0.0-beta.12 → 4.0.0-beta.13
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/chunks/{cac.r1gel_VZ.js → cac.BBtYKH7y.js} +3 -3
- package/dist/chunks/{cli-api.CpywZzJV.js → cli-api.CeakdBUN.js} +2 -2
- package/dist/chunks/{coverage.CiB0fs_7.js → coverage.DabP7UTQ.js} +25 -18
- package/dist/chunks/{plugin.d.XreRXLXS.d.ts → plugin.d.COyglhiI.d.ts} +1 -1
- package/dist/chunks/{reporters.d.CJVTaaWb.d.ts → reporters.d.xGvTJYG3.d.ts} +2 -1
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +3 -3
- package/dist/coverage.d.ts +1 -1
- package/dist/coverage.js +1 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.js +5 -5
- package/dist/reporters.d.ts +1 -1
- package/package.json +10 -10
|
@@ -619,7 +619,7 @@ class CAC extends EventEmitter {
|
|
|
619
619
|
|
|
620
620
|
const cac = (name = "") => new CAC(name);
|
|
621
621
|
|
|
622
|
-
var version = "4.0.0-beta.
|
|
622
|
+
var version = "4.0.0-beta.13";
|
|
623
623
|
|
|
624
624
|
const apiConfig = (port) => ({
|
|
625
625
|
port: {
|
|
@@ -1341,7 +1341,7 @@ function normalizeCliOptions(cliFilters, argv) {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
async function start(mode, cliFilters, options) {
|
|
1343
1343
|
try {
|
|
1344
|
-
const { startVitest } = await import('./cli-api.
|
|
1344
|
+
const { startVitest } = await import('./cli-api.CeakdBUN.js').then(function (n) { return n.j; }), ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
1345
1345
|
if (!ctx.shouldKeepServer()) await ctx.exit();
|
|
1346
1346
|
} catch (e) {
|
|
1347
1347
|
const { errorBanner } = await import('./index.CHrBLuEH.js').then(function (n) { return n.u; });
|
|
@@ -1356,7 +1356,7 @@ async function init(project) {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
async function collect(mode, cliFilters, options) {
|
|
1358
1358
|
try {
|
|
1359
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
1359
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.CeakdBUN.js').then(function (n) { return n.j; }), ctx = await prepareVitest(mode, {
|
|
1360
1360
|
...normalizeCliOptions(cliFilters, options),
|
|
1361
1361
|
watch: false,
|
|
1362
1362
|
run: true
|
|
@@ -10,7 +10,7 @@ import { A as API_PATH, c as configFiles, d as defaultBrowserPort, a as defaultP
|
|
|
10
10
|
import nodeos__default, { tmpdir } from 'node:os';
|
|
11
11
|
import { generateHash as generateHash$1, calculateSuiteHash, someTasksAreOnly, interpretTaskModes, generateFileHash, limitConcurrency, createFileTask as createFileTask$1, hasFailed, getTasks, isTestCase } from '@vitest/runner/utils';
|
|
12
12
|
import { SnapshotManager } from '@vitest/snapshot/manager';
|
|
13
|
-
import { v as version$1 } from './cac.
|
|
13
|
+
import { v as version$1 } from './cac.BBtYKH7y.js';
|
|
14
14
|
import { c as createBirpc } from './index.Bgo3tNWt.js';
|
|
15
15
|
import { p as parse, d as stringify, e as printError, f as formatProjectName, w as withLabel, h as errorBanner, i as divider, j as generateCodeFrame, R as ReportersMap, B as BlobReporter, r as readBlobs, H as HangingProcessReporter } from './index.CHrBLuEH.js';
|
|
16
16
|
import require$$0$3 from 'events';
|
|
@@ -26,7 +26,7 @@ import require$$0$1 from 'buffer';
|
|
|
26
26
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers.BFTU3MAI.js';
|
|
27
27
|
import crypto, { createHash } from 'node:crypto';
|
|
28
28
|
import { distDir, rootDir } from '../path.js';
|
|
29
|
-
import { h as hash, d as createFetchModuleFunction, n as normalizeResolvedIdToUrl, R as RandomSequencer, i as isPackageExists, g as getFilePoolName, e as isBrowserEnabled, r as resolveConfig, f as groupBy, j as getCoverageProvider, k as createPool, w as wildcardPatternToRegExp, a as resolveApiServerConfig, s as stdout } from './coverage.
|
|
29
|
+
import { h as hash, d as createFetchModuleFunction, n as normalizeResolvedIdToUrl, R as RandomSequencer, i as isPackageExists, g as getFilePoolName, e as isBrowserEnabled, r as resolveConfig, f as groupBy, j as getCoverageProvider, k as createPool, w as wildcardPatternToRegExp, a as resolveApiServerConfig, s as stdout } from './coverage.DabP7UTQ.js';
|
|
30
30
|
import { b as TraceMap, o as originalPositionFor, c as ancestor, d as createDefinesScript, e as convertTasksToEvents } from './typechecker.BfOQ86_a.js';
|
|
31
31
|
import createDebug from 'debug';
|
|
32
32
|
import { VitestModuleEvaluator } from '#module-evaluator';
|
|
@@ -3470,9 +3470,9 @@ function resolveConfig$1(vitest, options, viteConfig) {
|
|
|
3470
3470
|
browser.instances = browser.instances.filter((instance) => instance.browser === browser.name);
|
|
3471
3471
|
if (browser.instances && !browser.instances.length) throw new Error([`"browser.instances" was set in the config, but the array is empty. Define at least one browser config.`, browser.name && instances?.length ? ` The "browser.name" was set to "${browser.name}" which filtered all configs (${instances.map((c) => c.browser).join(", ")}). Did you mean to use another name?` : ""].join(""));
|
|
3472
3472
|
}
|
|
3473
|
-
const
|
|
3474
|
-
// Browser-mode "
|
|
3475
|
-
if (browser.enabled && !
|
|
3473
|
+
const containsChromium = hasBrowserChromium(vitest, resolved), hasOnlyChromium = hasOnlyBrowserChromium(vitest, resolved);
|
|
3474
|
+
// Browser-mode "Chromium" only features:
|
|
3475
|
+
if (browser.enabled && (!containsChromium || !hasOnlyChromium)) {
|
|
3476
3476
|
const browserConfig = `
|
|
3477
3477
|
{
|
|
3478
3478
|
browser: {
|
|
@@ -3482,17 +3482,18 @@ function resolveConfig$1(vitest, options, viteConfig) {
|
|
|
3482
3482
|
],
|
|
3483
3483
|
},
|
|
3484
3484
|
}
|
|
3485
|
-
`.trim(), correctExample = `
|
|
3485
|
+
`.trim(), preferredProvider = !browser.provider?.name || browser.provider.name === "preview" ? "playwright" : browser.provider.name, correctExample = `
|
|
3486
3486
|
{
|
|
3487
3487
|
browser: {
|
|
3488
|
-
provider:
|
|
3488
|
+
provider: ${preferredProvider}(),
|
|
3489
3489
|
instances: [
|
|
3490
|
-
{ browser: 'chromium' }
|
|
3490
|
+
{ browser: '${preferredProvider === "playwright" ? "chromium" : "chrome"}' }
|
|
3491
3491
|
],
|
|
3492
3492
|
},
|
|
3493
3493
|
}
|
|
3494
3494
|
`.trim();
|
|
3495
|
-
|
|
3495
|
+
// requires all projects to be chromium
|
|
3496
|
+
if (!hasOnlyChromium && resolved.coverage.enabled && resolved.coverage.provider === "v8") {
|
|
3496
3497
|
const coverageExample = `
|
|
3497
3498
|
{
|
|
3498
3499
|
coverage: {
|
|
@@ -3502,7 +3503,8 @@ function resolveConfig$1(vitest, options, viteConfig) {
|
|
|
3502
3503
|
`.trim();
|
|
3503
3504
|
throw new Error(`@vitest/coverage-v8 does not work with\n${browserConfig}\n\nUse either:\n${correctExample}\n\n...or change your coverage provider to:\n${coverageExample}\n`);
|
|
3504
3505
|
}
|
|
3505
|
-
|
|
3506
|
+
// ignores non-chromium browsers when there is at least one chromium project
|
|
3507
|
+
if (!containsChromium && (resolved.inspect || resolved.inspectBrk)) {
|
|
3506
3508
|
const inspectOption = `--inspect${resolved.inspectBrk ? "-brk" : ""}`;
|
|
3507
3509
|
throw new Error(`${inspectOption} does not work with\n${browserConfig}\n\nUse either:\n${correctExample}\n\n...or disable ${inspectOption}\n`);
|
|
3508
3510
|
}
|
|
@@ -3655,6 +3657,7 @@ function resolveConfig$1(vitest, options, viteConfig) {
|
|
|
3655
3657
|
`Set "browser.screenshotFailures" to false or remove it from the config to suppress this warning.`
|
|
3656
3658
|
].join(""))), resolved.browser.screenshotFailures = false;
|
|
3657
3659
|
else resolved.browser.screenshotFailures ??= !isPreview && !resolved.browser.ui;
|
|
3660
|
+
if (resolved.browser.provider && resolved.browser.provider.options == null) resolved.browser.provider.options = {};
|
|
3658
3661
|
// enable includeTaskLocation by default in UI mode
|
|
3659
3662
|
if (resolved.browser.api = resolveApiServerConfig(resolved.browser, defaultBrowserPort) || { port: defaultBrowserPort }, resolved.browser.enabled) {
|
|
3660
3663
|
if (resolved.browser.ui) resolved.includeTaskLocation ??= true;
|
|
@@ -3681,18 +3684,22 @@ function resolveCoverageReporters(configReporters) {
|
|
|
3681
3684
|
resolvedReporters.push([reporter, {}]);
|
|
3682
3685
|
return resolvedReporters;
|
|
3683
3686
|
}
|
|
3684
|
-
function
|
|
3687
|
+
function isChromiumName(provider, name) {
|
|
3688
|
+
return provider === "playwright" ? name === "chromium" : name === "chrome" || name === "edge";
|
|
3689
|
+
}
|
|
3690
|
+
function hasBrowserChromium(vitest, config) {
|
|
3685
3691
|
const browser = config.browser;
|
|
3686
|
-
|
|
3687
|
-
if (browser.name) return browser.name === "chromium";
|
|
3688
|
-
if (!browser.instances) return false;
|
|
3689
|
-
for (const instance of browser.instances) {
|
|
3692
|
+
return !browser || !browser.provider || browser.provider.name === "preview" || !browser.enabled ? false : browser.name ? isChromiumName(browser.provider.name, browser.name) : browser.instances ? browser.instances.some((instance) => {
|
|
3690
3693
|
const name = instance.name || (config.name ? `${config.name} (${instance.browser})` : instance.browser);
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3694
|
+
return vitest.matchesProjectFilter(name) ? isChromiumName(browser.provider.name, instance.browser) : false;
|
|
3695
|
+
}) : false;
|
|
3696
|
+
}
|
|
3697
|
+
function hasOnlyBrowserChromium(vitest, config) {
|
|
3698
|
+
const browser = config.browser;
|
|
3699
|
+
return !browser || !browser.provider || browser.provider.name === "preview" || !browser.enabled ? false : browser.name ? isChromiumName(browser.provider.name, browser.name) : browser.instances ? browser.instances.every((instance) => {
|
|
3700
|
+
const name = instance.name || (config.name ? `${config.name} (${instance.browser})` : instance.browser);
|
|
3701
|
+
return vitest.matchesProjectFilter(name) ? isChromiumName(browser.provider.name, instance.browser) : true;
|
|
3702
|
+
}) : false;
|
|
3696
3703
|
}
|
|
3697
3704
|
|
|
3698
3705
|
const THRESHOLD_KEYS = [
|
|
@@ -80,9 +80,10 @@ interface BrowserModuleMocker {
|
|
|
80
80
|
delete: (sessionId: string, url: string) => Promise<void>;
|
|
81
81
|
clear: (sessionId: string) => Promise<void>;
|
|
82
82
|
}
|
|
83
|
-
interface BrowserProviderOption {
|
|
83
|
+
interface BrowserProviderOption<Options extends object = object> {
|
|
84
84
|
name: string;
|
|
85
85
|
supportedBrowser?: ReadonlyArray<string>;
|
|
86
|
+
options: Options;
|
|
86
87
|
factory: (project: TestProject) => BrowserProvider;
|
|
87
88
|
}
|
|
88
89
|
interface BrowserProvider {
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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.
|
|
3
|
+
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.xGvTJYG3.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.xGvTJYG3.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.COyglhiI.js';
|
|
6
6
|
import { F as FakeTimerInstallOpts } from './chunks/config.d.DGazh2r6.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.xGvTJYG3.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
3
|
import { A as AfterSuiteRunMeta } from './chunks/environment.d.BsToaxti.js';
|
|
4
4
|
import '@vitest/runner';
|
package/dist/coverage.js
CHANGED
package/dist/node.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
|
|
|
3
3
|
export { vite as Vite };
|
|
4
4
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
5
5
|
import { IncomingMessage } from 'node:http';
|
|
6
|
-
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.
|
|
7
|
-
export { al 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 BrowserProviderOption, a1 as BrowserScript, a2 as BrowserServerState, a3 as BrowserServerStateSession, aa as BuiltinEnvironment, a4 as CDPSession, ab as CSSModuleScopeStrategy, am as CoverageIstanbulOptions, an as CoverageOptions, ao as CoverageProvider, ap as CoverageProviderModule, aq as CoverageReporter, c as CoverageV8Options, ar as CustomProviderOptions, ac as DepsOptimizationOptions, ad as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a5 as ParentProjectBrowser, ae as PoolOptions, a6 as ProjectBrowser, af as ProjectConfig, b as ReportContext, at as ReportedHookContext, au as Reporter, ah as ResolveSnapshotPathHandler, ai as ResolveSnapshotPathHandlerContext, a7 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ag 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, av as TestRunEndReason, as as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, a8 as ToMatchScreenshotComparators, a9 as ToMatchScreenshotOptions, aj as TypecheckConfig, U as UserWorkspaceConfig, ak as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.
|
|
6
|
+
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as Pool, l as TestSequencer, L as Logger } from './chunks/reporters.d.xGvTJYG3.js';
|
|
7
|
+
export { al 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 BrowserProviderOption, a1 as BrowserScript, a2 as BrowserServerState, a3 as BrowserServerStateSession, aa as BuiltinEnvironment, a4 as CDPSession, ab as CSSModuleScopeStrategy, am as CoverageIstanbulOptions, an as CoverageOptions, ao as CoverageProvider, ap as CoverageProviderModule, aq as CoverageReporter, c as CoverageV8Options, ar as CustomProviderOptions, ac as DepsOptimizationOptions, ad as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, o as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, m as OnTestsRerunHandler, a5 as ParentProjectBrowser, ae as PoolOptions, a6 as ProjectBrowser, af as ProjectConfig, b as ReportContext, at as ReportedHookContext, au as Reporter, ah as ResolveSnapshotPathHandler, ai as ResolveSnapshotPathHandlerContext, a7 as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ag 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, av as TestRunEndReason, as as TestRunResult, F as TestSequencerConstructor, z as TestState, B as TestSuite, D as TestSuiteState, a8 as ToMatchScreenshotComparators, a9 as ToMatchScreenshotOptions, aj as TypecheckConfig, U as UserWorkspaceConfig, ak as VitestEnvironment, n as VitestPackageInstaller, W as WatcherTriggerPattern, E as experimental_getRunnerTask } from './chunks/reporters.d.xGvTJYG3.js';
|
|
8
8
|
import { Awaitable } from '@vitest/utils';
|
|
9
9
|
export { SerializedError } from '@vitest/utils';
|
|
10
10
|
import { a as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.buwuBpBt.js';
|
|
11
11
|
export { T as TestExecutionType } from './chunks/worker.d.buwuBpBt.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.COyglhiI.js';
|
|
14
14
|
import { MessagePort } from 'node:worker_threads';
|
|
15
15
|
import { Debugger } from 'debug';
|
|
16
16
|
import './chunks/global.d.BcFPD2LN.js';
|
package/dist/node.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
3
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
4
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.
|
|
5
|
-
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, h as createDebugger, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
7
|
-
import { r as resolveConfig$2 } from './chunks/coverage.
|
|
8
|
-
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.CeakdBUN.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.CeakdBUN.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.BBtYKH7y.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.DabP7UTQ.js';
|
|
8
|
+
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.DabP7UTQ.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
10
|
import { a as any } from './chunks/index.Dc3xnDvT.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aJ as BaseReporter, aK as BenchmarkBuiltinReporters, aw as BenchmarkReporter, ax as BenchmarkReportsMap, aL as BuiltinReporterOptions, aM as BuiltinReporters, ay as DefaultReporter, az as DotReporter, aA as GithubActionsReporter, aB as HangingProcessReporter, aD as JUnitReporter, aN as JsonAssertionResult, aC as JsonReporter, aO as JsonTestResult, aP as JsonTestResults, at as ReportedHookContext, au as Reporter, aE as ReportersMap, aF as TapFlatReporter, aG as TapReporter, av as TestRunEndReason, aH as VerboseBenchmarkReporter, aI as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aJ as BaseReporter, aK as BenchmarkBuiltinReporters, aw as BenchmarkReporter, ax as BenchmarkReportsMap, aL as BuiltinReporterOptions, aM as BuiltinReporters, ay as DefaultReporter, az as DotReporter, aA as GithubActionsReporter, aB as HangingProcessReporter, aD as JUnitReporter, aN as JsonAssertionResult, aC as JsonReporter, aO as JsonTestResult, aP as JsonTestResults, at as ReportedHookContext, au as Reporter, aE as ReportersMap, aF as TapFlatReporter, aG as TapReporter, av as TestRunEndReason, aH as VerboseBenchmarkReporter, aI as VerboseReporter } from './chunks/reporters.d.xGvTJYG3.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/environment.d.BsToaxti.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.13",
|
|
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/ui": "4.0.0-beta.13",
|
|
129
|
+
"@vitest/browser": "4.0.0-beta.13"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@edge-runtime/vm": {
|
|
@@ -166,13 +166,13 @@
|
|
|
166
166
|
"tinyrainbow": "^3.0.3",
|
|
167
167
|
"vite": "^6.0.0 || ^7.0.0-0",
|
|
168
168
|
"why-is-node-running": "^2.3.0",
|
|
169
|
-
"@vitest/
|
|
170
|
-
"@vitest/
|
|
171
|
-
"@vitest/
|
|
172
|
-
"@vitest/runner": "4.0.0-beta.
|
|
173
|
-
"@vitest/
|
|
174
|
-
"@vitest/utils": "4.0.0-beta.
|
|
175
|
-
"@vitest/
|
|
169
|
+
"@vitest/mocker": "4.0.0-beta.13",
|
|
170
|
+
"@vitest/expect": "4.0.0-beta.13",
|
|
171
|
+
"@vitest/snapshot": "4.0.0-beta.13",
|
|
172
|
+
"@vitest/runner": "4.0.0-beta.13",
|
|
173
|
+
"@vitest/spy": "4.0.0-beta.13",
|
|
174
|
+
"@vitest/utils": "4.0.0-beta.13",
|
|
175
|
+
"@vitest/pretty-format": "4.0.0-beta.13"
|
|
176
176
|
},
|
|
177
177
|
"devDependencies": {
|
|
178
178
|
"@antfu/install-pkg": "^1.1.0",
|