vitest 2.0.0-beta.6 → 2.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/cli.js +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/coverage.d.ts +1 -1
- package/dist/coverage.js +30 -5
- package/dist/environments.d.ts +1 -1
- package/dist/execute.d.ts +1 -1
- package/dist/{index-Bp1kcIfF.d.ts → index-B0dCycbN.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/node.d.ts +6 -3
- package/dist/node.js +4 -4
- package/dist/{reporters-qky6mwBH.d.ts → reporters-DaDey3o0.d.ts} +8 -6
- package/dist/reporters.d.ts +1 -1
- package/dist/reporters.js +1 -1
- package/dist/runners.d.ts +1 -1
- package/dist/{suite-B5_jYIf8.d.ts → suite-BHSUxUib.d.ts} +1 -1
- package/dist/suite.d.ts +2 -2
- package/dist/vendor/{cac.DDQuPgBf.js → cac.B8p8r_GP.js} +6 -6
- package/dist/vendor/{cli-api.C0OPqjkb.js → cli-api.AbX6UpUw.js} +45 -38
- package/dist/vendor/{index.CyGfDRbW.js → index.TBU3GqRP.js} +2 -1
- package/dist/workers.d.ts +1 -1
- package/package.json +10 -11
package/dist/browser.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { processError, startTests } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-
|
|
2
|
+
import { R as ResolvedConfig, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule } from './reporters-DaDey3o0.js';
|
|
3
3
|
import { VitestExecutor } from './execute.js';
|
|
4
|
-
export { i as Vitest } from './index-
|
|
4
|
+
export { i as Vitest } from './index-B0dCycbN.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import 'vite-node';
|
|
7
7
|
import '@vitest/snapshot';
|
|
@@ -17,7 +17,7 @@ import 'node:worker_threads';
|
|
|
17
17
|
import 'node:fs';
|
|
18
18
|
import 'chai';
|
|
19
19
|
import 'node:vm';
|
|
20
|
-
import './suite-
|
|
20
|
+
import './suite-BHSUxUib.js';
|
|
21
21
|
import '@vitest/spy';
|
|
22
22
|
import '@vitest/utils/diff';
|
|
23
23
|
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ConfigEnv, Plugin, UserConfig, mergeConfig } from 'vite';
|
|
2
|
-
export {
|
|
2
|
+
export { aK as UserConfigExport, aJ as UserConfigFn, aH as UserConfigFnObject, aI as UserConfigFnPromise, aM as UserProjectConfigExport, aL as UserProjectConfigFn, au as UserWorkspaceConfig, aQ as configDefaults, aT as coverageConfigDefaults, aS as defaultExclude, aR as defaultInclude, aN as defineConfig, aO as defineProject, aP as defineWorkspace, aU as extraInlineDeps } from './reporters-DaDey3o0.js';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite-node';
|
|
5
5
|
import '@vitest/snapshot';
|
package/dist/coverage.d.ts
CHANGED
package/dist/coverage.js
CHANGED
|
@@ -171,16 +171,41 @@ function resolveConfig(configModule) {
|
|
|
171
171
|
try {
|
|
172
172
|
if (mod.$type === "object")
|
|
173
173
|
return mod;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
let config = resolveDefineConfig(mod);
|
|
175
|
+
if (config)
|
|
176
|
+
return config;
|
|
177
|
+
if (mod.$type === "function-call" && mod.$callee === "mergeConfig") {
|
|
178
|
+
config = resolveMergeConfig(mod);
|
|
179
|
+
if (config)
|
|
180
|
+
return config;
|
|
179
181
|
}
|
|
180
182
|
} catch (error) {
|
|
181
183
|
throw new Error(error instanceof Error ? error.message : String(error));
|
|
182
184
|
}
|
|
183
185
|
throw new Error("Failed to update coverage thresholds. Configuration file is too complex.");
|
|
184
186
|
}
|
|
187
|
+
function resolveDefineConfig(mod) {
|
|
188
|
+
if (mod.$type === "function-call" && mod.$callee === "defineConfig") {
|
|
189
|
+
if (mod.$args[0].$type === "object")
|
|
190
|
+
return mod.$args[0];
|
|
191
|
+
if (mod.$args[0].$type === "arrow-function-expression") {
|
|
192
|
+
if (mod.$args[0].$body.$type === "object") {
|
|
193
|
+
return mod.$args[0].$body;
|
|
194
|
+
}
|
|
195
|
+
const config = resolveMergeConfig(mod.$args[0].$body);
|
|
196
|
+
if (config)
|
|
197
|
+
return config;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function resolveMergeConfig(mod) {
|
|
202
|
+
if (mod.$type === "function-call" && mod.$callee === "mergeConfig") {
|
|
203
|
+
for (const arg of mod.$args) {
|
|
204
|
+
const config = resolveDefineConfig(arg);
|
|
205
|
+
if (config)
|
|
206
|
+
return config;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
185
210
|
|
|
186
211
|
export { BaseCoverageProvider };
|
package/dist/environments.d.ts
CHANGED
package/dist/execute.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import vm from 'node:vm';
|
|
2
2
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
3
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
4
|
-
import {
|
|
4
|
+
import { aE as PendingSuiteMock, aF as MockFactory, e as RuntimeRPC, W as WorkerGlobalState, aG as MockMap } from './reporters-DaDey3o0.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import '@vitest/snapshot';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TaskPopulated, Custom, DoneCallback, ExtendedContext, File, HookCleanupCallback, HookListener, OnTestFailedHandler, RunMode, RuntimeContext, SequenceHooks, SequenceSetupFiles, Suite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteHooks, Task as Task$1, TaskBase, TaskContext, TaskCustomOptions, TaskMeta, TaskResult as TaskResult$1, TaskResultPack, TaskState, Test, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
2
|
-
import { b as bench } from './suite-
|
|
2
|
+
import { b as bench } from './suite-BHSUxUib.js';
|
|
3
3
|
import { ExpectStatic, Assertion, AsymmetricMatchersContaining, JestAssertion } from '@vitest/expect';
|
|
4
|
-
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper,
|
|
4
|
+
import { F as FakeTimerInstallOpts, M as MockFactoryWithHelper, v as RuntimeConfig, P as ProvidedContext, A as AfterSuiteRunMeta, w as ApiConfig, x as ArgumentsType, y as Arrayable, z as Awaitable, B as BaseCoverageOptions, D as BenchFunction, G as Benchmark, I as BenchmarkAPI, K as BenchmarkResult, L as BenchmarkUserOptions, N as BrowserConfigOptions, s as BrowserScript, O as BuiltinEnvironment, Q as CSSModuleScopeStrategy, S as CollectLineNumbers, X as CollectLines, Y as Constructable, Z as Context, f as ContextRPC, _ as ContextTestEnvironment, $ as CoverageIstanbulOptions, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, a0 as CoverageReporter, a1 as CoverageV8Options, a2 as CustomProviderOptions, a3 as DepsOptimizationOptions, E as Environment, a4 as EnvironmentOptions, a5 as EnvironmentReturn, a6 as HappyDOMOptions, a7 as InlineConfig, a8 as JSDOMOptions, a9 as ModuleCache, aa as ModuleGraphData, ab as MutableArray, ac as Nullable, ad as OnServerRestartHandler, ae as Pool, af as PoolOptions, ag as ProjectConfig, ah as RawErrsMap, ai as ReportContext, aj as Reporter, ak as ResolveIdFunction, R as ResolvedConfig, a as ResolvedCoverageOptions, al as ResolvedTestEnvironment, am as RootAndTarget, an as RunnerRPC, e as RuntimeRPC, ao as SerializableSpec, ap as TransformModePatterns, aq as TransformResultWithSource, ar as TscErrorInfo, as as TypecheckConfig, U as UserConfig, at as UserConsoleLog, au as UserWorkspaceConfig, i as Vitest, av as VitestEnvironment, V as VitestRunMode, aw as VmEnvironmentReturn, ax as WebSocketBrowserEvents, ay as WebSocketBrowserHandlers, az as WebSocketBrowserRPC, aA as WebSocketEvents, aB as WebSocketHandlers, aC as WebSocketRPC, g as WorkerContext, W as WorkerGlobalState, aD as WorkerRPC } from './reporters-DaDey3o0.js';
|
|
5
5
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance, Mock, MockContext, Mocked, MockedClass, MockedFunction, MockedObject, SpyInstance } from '@vitest/spy';
|
|
6
6
|
import { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
7
7
|
import { DiffOptions } from '@vitest/utils/diff';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Custom, DoneCallback, ExtendedContext, File, HookCleanupCallback, HookListener, OnTestFailedHandler, RunMode, RuntimeContext, SequenceHooks, SequenceSetupFiles, Suite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteHooks, Task, TaskBase, TaskContext, TaskCustomOptions, TaskMeta, TaskResult, TaskResultPack, TaskState, Test, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
2
|
-
export { b as bench } from './suite-
|
|
3
|
-
export { A as AssertType, B as BrowserUI, E as ExpectTypeOf, V as VitestUtils, j as assertType, c as createExpect, g as expect, h as expectTypeOf, e as getRunningMode, b as inject, a as isFirstRun, f as isWatchMode, r as runOnce, d as vi, v as vitest } from './index-
|
|
4
|
-
export { A as AfterSuiteRunMeta,
|
|
2
|
+
export { b as bench } from './suite-BHSUxUib.js';
|
|
3
|
+
export { A as AssertType, B as BrowserUI, E as ExpectTypeOf, V as VitestUtils, j as assertType, c as createExpect, g as expect, h as expectTypeOf, e as getRunningMode, b as inject, a as isFirstRun, f as isWatchMode, r as runOnce, d as vi, v as vitest } from './index-B0dCycbN.js';
|
|
4
|
+
export { A as AfterSuiteRunMeta, w as ApiConfig, x as ArgumentsType, y as Arrayable, z as Awaitable, B as BaseCoverageOptions, D as BenchFunction, G as Benchmark, I as BenchmarkAPI, K as BenchmarkResult, L as BenchmarkUserOptions, N as BrowserConfigOptions, s as BrowserScript, O as BuiltinEnvironment, Q as CSSModuleScopeStrategy, S as CollectLineNumbers, X as CollectLines, Y as Constructable, Z as Context, f as ContextRPC, _ as ContextTestEnvironment, $ as CoverageIstanbulOptions, C as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, a0 as CoverageReporter, a1 as CoverageV8Options, a2 as CustomProviderOptions, a3 as DepsOptimizationOptions, E as Environment, a4 as EnvironmentOptions, a5 as EnvironmentReturn, a6 as HappyDOMOptions, a7 as InlineConfig, a8 as JSDOMOptions, a9 as ModuleCache, aa as ModuleGraphData, ab as MutableArray, ac as Nullable, ad as OnServerRestartHandler, ae as Pool, af as PoolOptions, ag as ProjectConfig, P as ProvidedContext, ah as RawErrsMap, ai as ReportContext, aj as Reporter, ak as ResolveIdFunction, R as ResolvedConfig, a as ResolvedCoverageOptions, al as ResolvedTestEnvironment, am as RootAndTarget, an as RunnerRPC, v as RuntimeConfig, e as RuntimeRPC, ao as SerializableSpec, ap as TransformModePatterns, aq as TransformResultWithSource, ar as TscErrorInfo, as as TypecheckConfig, U as UserConfig, at as UserConsoleLog, au as UserWorkspaceConfig, i as Vitest, av as VitestEnvironment, V as VitestRunMode, aw as VmEnvironmentReturn, ax as WebSocketBrowserEvents, ay as WebSocketBrowserHandlers, az as WebSocketBrowserRPC, aA as WebSocketEvents, aB as WebSocketHandlers, aC as WebSocketRPC, g as WorkerContext, W as WorkerGlobalState, aD as WorkerRPC } from './reporters-DaDey3o0.js';
|
|
5
5
|
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
6
6
|
export { DiffOptions } from '@vitest/utils/diff';
|
|
7
7
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject, SpyInstance } from '@vitest/spy';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-
|
|
2
|
-
export {
|
|
1
|
+
import { V as VitestRunMode, U as UserConfig, h as VitestOptions, i as Vitest, R as ResolvedConfig, P as ProvidedContext, j as WorkspaceProject, e as RuntimeRPC, T as TestSequencer, k as WorkspaceSpec } from './reporters-DaDey3o0.js';
|
|
2
|
+
export { t as BrowserCommand, q as BrowserProvider, p as BrowserProviderInitializationOptions, r as BrowserProviderOptions, s as BrowserScript, H as HTMLOptions, u as JUnitOptions, J as JsonOptions, l as ProcessPool, o as TestSequencerConstructor, n as VitestPackageInstaller, m as getFilePoolName } from './reporters-DaDey3o0.js';
|
|
3
3
|
import { UserConfig as UserConfig$1, Plugin } from 'vite';
|
|
4
4
|
export { isFileServingAllowed } from 'vite';
|
|
5
5
|
import { Writable } from 'node:stream';
|
|
@@ -55,6 +55,9 @@ interface GlobalSetupContext {
|
|
|
55
55
|
|
|
56
56
|
declare function createMethodsRPC(project: WorkspaceProject): RuntimeRPC;
|
|
57
57
|
|
|
58
|
+
declare const rootDir: string;
|
|
59
|
+
declare const distDir: string;
|
|
60
|
+
|
|
58
61
|
declare class BaseSequencer implements TestSequencer {
|
|
59
62
|
protected ctx: Vitest;
|
|
60
63
|
constructor(ctx: Vitest);
|
|
@@ -62,4 +65,4 @@ declare class BaseSequencer implements TestSequencer {
|
|
|
62
65
|
sort(files: WorkspaceSpec[]): Promise<WorkspaceSpec[]>;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
|
-
export { BaseSequencer, type GlobalSetupContext, TestSequencer, Vitest, VitestPlugin, WorkspaceProject, WorkspaceSpec, createMethodsRPC, createVitest, parseCLI, registerConsoleShortcuts, startVitest };
|
|
68
|
+
export { BaseSequencer, type GlobalSetupContext, TestSequencer, Vitest, VitestPlugin, WorkspaceProject, WorkspaceSpec, createMethodsRPC, createVitest, distDir, parseCLI, registerConsoleShortcuts, rootDir, startVitest };
|
package/dist/node.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.
|
|
2
|
-
export { p as parseCLI } from './vendor/cac.
|
|
3
|
-
export {
|
|
1
|
+
export { b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, g as getFilePoolName, r as registerConsoleShortcuts, s as startVitest } from './vendor/cli-api.AbX6UpUw.js';
|
|
2
|
+
export { p as parseCLI } from './vendor/cac.B8p8r_GP.js';
|
|
3
|
+
export { distDir, rootDir } from './path.js';
|
|
4
|
+
export { B as BaseSequencer } from './vendor/index.TBU3GqRP.js';
|
|
4
5
|
export { isFileServingAllowed } from 'vite';
|
|
5
6
|
import 'pathe';
|
|
6
7
|
import './vendor/constants.TCjCaw2D.js';
|
|
@@ -29,7 +30,6 @@ import './vendor/base._gnK9Slw.js';
|
|
|
29
30
|
import '@vitest/utils';
|
|
30
31
|
import './vendor/env.bmJgw1qP.js';
|
|
31
32
|
import 'std-env';
|
|
32
|
-
import './path.js';
|
|
33
33
|
import './vendor/index.BpSiYbpB.js';
|
|
34
34
|
import 'zlib';
|
|
35
35
|
import 'buffer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { TransformResult as TransformResult$1, ViteDevServer, UserConfig as UserConfig$1, ConfigEnv, ServerOptions, DepOptimizationConfig, AliasOptions } from 'vite';
|
|
3
3
|
import * as _vitest_runner from '@vitest/runner';
|
|
4
|
-
import { File, Test as Test$1, Suite, TaskResultPack, CancelReason, Task, Custom, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
4
|
+
import { File, Test as Test$1, Suite, TaskResultPack, CancelReason, Task, TaskMeta, Custom, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
5
5
|
import { RawSourceMap, ViteNodeResolveId, FetchResult, ModuleCacheMap, ViteNodeServerOptions } from 'vite-node';
|
|
6
6
|
import { SnapshotResult, SnapshotSummary, SnapshotStateOptions, SnapshotState } from '@vitest/snapshot';
|
|
7
7
|
import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
|
|
@@ -668,9 +668,9 @@ interface BrowserConfigOptions {
|
|
|
668
668
|
/**
|
|
669
669
|
* Browser provider
|
|
670
670
|
*
|
|
671
|
-
* @default '
|
|
671
|
+
* @default 'preview'
|
|
672
672
|
*/
|
|
673
|
-
provider?: 'webdriverio' | 'playwright' | '
|
|
673
|
+
provider?: 'webdriverio' | 'playwright' | 'preview' | (string & {});
|
|
674
674
|
/**
|
|
675
675
|
* Options that are passed down to a browser provider.
|
|
676
676
|
* To support type hinting, add one of the types to your tsconfig.json "compilerOptions.types" field:
|
|
@@ -728,7 +728,7 @@ interface BrowserConfigOptions {
|
|
|
728
728
|
/**
|
|
729
729
|
* Scripts injected into the main window.
|
|
730
730
|
*/
|
|
731
|
-
|
|
731
|
+
orchestratorScripts?: BrowserScript[];
|
|
732
732
|
/**
|
|
733
733
|
* Commands that will be executed on the server
|
|
734
734
|
* via the browser `import("@vitest/browser/context").commands` API.
|
|
@@ -886,7 +886,7 @@ interface WebSocketHandlers {
|
|
|
886
886
|
getPaths: () => string[];
|
|
887
887
|
getConfig: () => ResolvedConfig;
|
|
888
888
|
getModuleGraph: (projectName: string, id: string, browser?: boolean) => Promise<ModuleGraphData>;
|
|
889
|
-
getTransformResult: (id: string) => Promise<TransformResultWithSource | undefined>;
|
|
889
|
+
getTransformResult: (projectName: string, id: string, browser?: boolean) => Promise<TransformResultWithSource | undefined>;
|
|
890
890
|
readTestFile: (id: string) => Promise<string | null>;
|
|
891
891
|
saveTestFile: (id: string, content: string) => Promise<void>;
|
|
892
892
|
rerun: (files: string[]) => Promise<void>;
|
|
@@ -1004,6 +1004,7 @@ interface ProcessPool {
|
|
|
1004
1004
|
runTests: RunWithFiles;
|
|
1005
1005
|
close?: () => Awaitable$1<void>;
|
|
1006
1006
|
}
|
|
1007
|
+
declare function getFilePoolName(project: WorkspaceProject, file: string): Pool;
|
|
1007
1008
|
|
|
1008
1009
|
type Awaitable<T> = T | PromiseLike<T>;
|
|
1009
1010
|
type Nullable<T> = T | null | undefined;
|
|
@@ -1246,6 +1247,7 @@ interface JsonAssertionResult {
|
|
|
1246
1247
|
fullName: string;
|
|
1247
1248
|
status: Status;
|
|
1248
1249
|
title: string;
|
|
1250
|
+
meta: TaskMeta;
|
|
1249
1251
|
duration?: Milliseconds | null;
|
|
1250
1252
|
failureMessages: Array<string> | null;
|
|
1251
1253
|
location?: Callsite | null;
|
|
@@ -3094,4 +3096,4 @@ type Context = RootAndTarget & {
|
|
|
3094
3096
|
lastActivePath?: string;
|
|
3095
3097
|
};
|
|
3096
3098
|
|
|
3097
|
-
export { type
|
|
3099
|
+
export { type CoverageIstanbulOptions as $, type AfterSuiteRunMeta as A, type BaseCoverageOptions as B, type CoverageOptions as C, type BenchFunction as D, type Environment as E, type FakeTimerInstallOpts as F, type Benchmark as G, type HTMLOptions as H, type BenchmarkAPI as I, type JsonOptions$1 as J, type BenchmarkResult as K, type BenchmarkUserOptions as L, type MockFactoryWithHelper as M, type BrowserConfigOptions as N, type BuiltinEnvironment as O, type ProvidedContext as P, type CSSModuleScopeStrategy as Q, type ResolvedConfig as R, type CollectLineNumbers as S, type TestSequencer as T, type UserConfig as U, type VitestRunMode as V, type WorkerGlobalState as W, type CollectLines as X, type Constructable as Y, type Context as Z, type ContextTestEnvironment as _, type ResolvedCoverageOptions as a, JUnitReporter as a$, type CoverageReporter as a0, type CoverageV8Options as a1, type CustomProviderOptions as a2, type DepsOptimizationOptions as a3, type EnvironmentOptions as a4, type EnvironmentReturn as a5, type HappyDOMOptions as a6, type InlineConfig as a7, type JSDOMOptions as a8, type ModuleCache as a9, type WebSocketEvents as aA, type WebSocketHandlers as aB, type WebSocketRPC as aC, type WorkerRPC as aD, type PendingSuiteMock as aE, type MockFactory as aF, type MockMap as aG, type UserConfigFnObject as aH, type UserConfigFnPromise as aI, type UserConfigFn as aJ, type UserConfigExport as aK, type UserProjectConfigFn as aL, type UserProjectConfigExport as aM, defineConfig as aN, defineProject as aO, defineWorkspace as aP, configDefaults as aQ, defaultInclude as aR, defaultExclude as aS, coverageConfigDefaults as aT, extraInlineDeps as aU, DefaultReporter as aV, BasicReporter as aW, DotReporter as aX, JsonReporter as aY, VerboseReporter as aZ, TapReporter as a_, type ModuleGraphData as aa, type MutableArray as ab, type Nullable as ac, type OnServerRestartHandler as ad, type Pool as ae, type PoolOptions as af, type ProjectConfig as ag, type RawErrsMap as ah, type ReportContext as ai, type Reporter as aj, type ResolveIdFunction as ak, type ResolvedTestEnvironment as al, type RootAndTarget as am, type RunnerRPC as an, type SerializableSpec as ao, type TransformModePatterns as ap, type TransformResultWithSource as aq, type TscErrorInfo as ar, type TypecheckConfig as as, type UserConsoleLog as at, type UserWorkspaceConfig as au, type VitestEnvironment as av, type VmEnvironmentReturn as aw, type WebSocketBrowserEvents as ax, type WebSocketBrowserHandlers as ay, type WebSocketBrowserRPC as az, type CoverageProvider as b, TapFlatReporter as b0, HangingProcessReporter as b1, GithubActionsReporter as b2, BaseReporter as b3, ReportersMap as b4, type BuiltinReporters as b5, type BuiltinReporterOptions as b6, type JsonAssertionResult as b7, type JsonTestResult as b8, type JsonTestResults as b9, BenchmarkReportsMap as ba, type BenchmarkBuiltinReporters as bb, type CoverageProviderModule as c, type BirpcOptions as d, type RuntimeRPC as e, type ContextRPC as f, type WorkerContext as g, type VitestOptions as h, Vitest as i, WorkspaceProject as j, type WorkspaceSpec as k, type ProcessPool as l, getFilePoolName as m, VitestPackageInstaller as n, type TestSequencerConstructor as o, type BrowserProviderInitializationOptions as p, type BrowserProvider as q, type BrowserProviderOptions as r, type BrowserScript as s, type BrowserCommand as t, type JUnitOptions as u, type RuntimeConfig as v, type ApiConfig as w, type ArgumentsType as x, type Arrayable as y, type Awaitable as z };
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { b3 as BaseReporter, aW as BasicReporter, bb as BenchmarkBuiltinReporters, ba as BenchmarkReportsMap, b6 as BuiltinReporterOptions, b5 as BuiltinReporters, aV as DefaultReporter, aX as DotReporter, b2 as GithubActionsReporter, b1 as HangingProcessReporter, a$ as JUnitReporter, b7 as JsonAssertionResult, aY as JsonReporter, b8 as JsonTestResult, b9 as JsonTestResults, aj as Reporter, b4 as ReportersMap, b0 as TapFlatReporter, a_ as TapReporter, aZ as VerboseReporter } from './reporters-DaDey3o0.js';
|
|
2
2
|
import 'vite';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite-node';
|
package/dist/reporters.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.
|
|
1
|
+
export { a as BasicReporter, e as BenchmarkReportsMap, D as DefaultReporter, b as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, c as JUnitReporter, J as JsonReporter, R as ReportersMap, d as TapFlatReporter, T as TapReporter, V as VerboseReporter } from './vendor/index.TBU3GqRP.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'picocolors';
|
|
4
4
|
import 'pathe';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VitestRunner, VitestRunnerImportSource, File, Suite, Task, CancelReason, Test, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
|
|
2
|
-
import { R as ResolvedConfig } from './reporters-
|
|
2
|
+
import { R as ResolvedConfig } from './reporters-DaDey3o0.js';
|
|
3
3
|
import * as tinybench from 'tinybench';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import 'vite-node';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Custom } from '@vitest/runner';
|
|
2
2
|
import '@vitest/runner/utils';
|
|
3
|
-
import {
|
|
3
|
+
import { D as BenchFunction, I as BenchmarkAPI } from './reporters-DaDey3o0.js';
|
|
4
4
|
import { Options } from 'tinybench';
|
|
5
5
|
|
|
6
6
|
declare function getBenchOptions(key: Custom): Options;
|
package/dist/suite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createTaskCollector, getCurrentSuite, getCurrentTest, getFn, getHooks, setFn, setHooks } from '@vitest/runner';
|
|
2
2
|
export { createChainable } from '@vitest/runner/utils';
|
|
3
|
-
export { g as getBenchFn, a as getBenchOptions } from './suite-
|
|
4
|
-
import './reporters-
|
|
3
|
+
export { g as getBenchFn, a as getBenchOptions } from './suite-BHSUxUib.js';
|
|
4
|
+
import './reporters-DaDey3o0.js';
|
|
5
5
|
import 'vite';
|
|
6
6
|
import 'vite-node';
|
|
7
7
|
import '@vitest/snapshot';
|
|
@@ -618,7 +618,7 @@ class CAC extends EventEmitter {
|
|
|
618
618
|
|
|
619
619
|
const cac = (name = "") => new CAC(name);
|
|
620
620
|
|
|
621
|
-
var version = "2.0.0-beta.
|
|
621
|
+
var version = "2.0.0-beta.8";
|
|
622
622
|
|
|
623
623
|
const apiConfig = (port) => ({
|
|
624
624
|
port: {
|
|
@@ -925,7 +925,7 @@ const cliOptionsConfig = {
|
|
|
925
925
|
subcommands: apiConfig(defaultBrowserPort)
|
|
926
926
|
},
|
|
927
927
|
provider: {
|
|
928
|
-
description: 'Provider used to run browser tests. Some browsers are only available for specific providers. Can be "webdriverio", "playwright", or the path to a custom provider. Visit [`browser.provider`](https://vitest.dev/config/#browser-provider) for more information (default: `"
|
|
928
|
+
description: 'Provider used to run browser tests. Some browsers are only available for specific providers. Can be "webdriverio", "playwright", "preview", or the path to a custom provider. Visit [`browser.provider`](https://vitest.dev/config/#browser-provider) for more information (default: `"preview"`)',
|
|
929
929
|
argument: "<name>",
|
|
930
930
|
subcommands: null
|
|
931
931
|
// don't support custom objects
|
|
@@ -942,7 +942,7 @@ const cliOptionsConfig = {
|
|
|
942
942
|
ui: {
|
|
943
943
|
description: "Show Vitest UI when running tests (default: `!process.env.CI`)"
|
|
944
944
|
},
|
|
945
|
-
|
|
945
|
+
orchestratorScripts: null,
|
|
946
946
|
testerScripts: null,
|
|
947
947
|
commands: null,
|
|
948
948
|
viewport: null
|
|
@@ -1043,7 +1043,7 @@ const cliOptionsConfig = {
|
|
|
1043
1043
|
description: "Run files in a random order. Long running tests will not start earlier if you enable this option. (default: `false`)"
|
|
1044
1044
|
},
|
|
1045
1045
|
tests: {
|
|
1046
|
-
description: "Run tests in a random
|
|
1046
|
+
description: "Run tests in a random order (default: `false`)"
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
},
|
|
@@ -1132,7 +1132,7 @@ const cliOptionsConfig = {
|
|
|
1132
1132
|
description: "Run only typecheck tests. This automatically enables typecheck (default: `false`)"
|
|
1133
1133
|
},
|
|
1134
1134
|
checker: {
|
|
1135
|
-
description: 'Specify the typechecker to use. Available values are: "
|
|
1135
|
+
description: 'Specify the typechecker to use. Available values are: "tsc" and "vue-tsc" and a path to an executable (default: `"tsc"`)',
|
|
1136
1136
|
argument: "<name>",
|
|
1137
1137
|
subcommands: null
|
|
1138
1138
|
},
|
|
@@ -1448,7 +1448,7 @@ async function start(mode, cliFilters, options) {
|
|
|
1448
1448
|
} catch {
|
|
1449
1449
|
}
|
|
1450
1450
|
try {
|
|
1451
|
-
const { startVitest } = await import('./cli-api.
|
|
1451
|
+
const { startVitest } = await import('./cli-api.AbX6UpUw.js').then(function (n) { return n.d; });
|
|
1452
1452
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(options));
|
|
1453
1453
|
if (!(ctx == null ? void 0 : ctx.shouldKeepServer()))
|
|
1454
1454
|
await (ctx == null ? void 0 : ctx.exit());
|
|
@@ -19,14 +19,14 @@ import c from 'picocolors';
|
|
|
19
19
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
20
20
|
import { SnapshotManager } from '@vitest/snapshot/manager';
|
|
21
21
|
import { ViteNodeServer } from 'vite-node/server';
|
|
22
|
-
import { v as version$1 } from './cac.
|
|
22
|
+
import { v as version$1 } from './cac.B8p8r_GP.js';
|
|
23
23
|
import { hasFailed, createFileTask, getTasks, getTests } from '@vitest/runner/utils';
|
|
24
24
|
import { n as noop$1, b as isPrimitive, c as groupBy, A as AggregateErrorPonyfill, a as slash$1, t as toArray, d as deepMerge, e as nanoid, w as wildcardPatternToRegExp, f as stdout } from './base._gnK9Slw.js';
|
|
25
25
|
import { createDefer, toArray as toArray$1, notNullish } from '@vitest/utils';
|
|
26
26
|
import { a as isWindows } from './env.bmJgw1qP.js';
|
|
27
27
|
import { rootDir, distDir } from '../path.js';
|
|
28
28
|
import { c as createBirpc } from './index.BpSiYbpB.js';
|
|
29
|
-
import { s as stringify, p as parse$3, w as wrapSerializableConfig, f as Typechecker, R as ReportersMap, e as BenchmarkReportsMap, g as RandomSequencer, B as BaseSequencer, h as findNodeAround, i as generateCodeFrame, j as highlightCode, L as Logger, k as BlobReporter, r as readBlobs } from './index.
|
|
29
|
+
import { s as stringify, p as parse$3, w as wrapSerializableConfig, f as Typechecker, R as ReportersMap, e as BenchmarkReportsMap, g as RandomSequencer, B as BaseSequencer, h as findNodeAround, i as generateCodeFrame, j as highlightCode, L as Logger, k as BlobReporter, r as readBlobs } from './index.TBU3GqRP.js';
|
|
30
30
|
import require$$0$4 from 'zlib';
|
|
31
31
|
import require$$0$5 from 'buffer';
|
|
32
32
|
import require$$1 from 'crypto';
|
|
@@ -82,6 +82,8 @@ async function getModuleGraph(ctx, projectName, id, browser = false) {
|
|
|
82
82
|
var _a;
|
|
83
83
|
if (!mod || !mod.id)
|
|
84
84
|
return;
|
|
85
|
+
if (mod.id === "\0@vitest/browser/context")
|
|
86
|
+
return;
|
|
85
87
|
if (seen.has(mod))
|
|
86
88
|
return seen.get(mod);
|
|
87
89
|
let id2 = clearId(mod.id);
|
|
@@ -116,10 +118,17 @@ function cloneByOwnProperties(value) {
|
|
|
116
118
|
}), {});
|
|
117
119
|
}
|
|
118
120
|
function stringifyReplace(key, value) {
|
|
119
|
-
if (value instanceof Error)
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
if (value instanceof Error) {
|
|
122
|
+
const cloned = cloneByOwnProperties(value);
|
|
123
|
+
return {
|
|
124
|
+
name: value.name,
|
|
125
|
+
message: value.message,
|
|
126
|
+
stack: value.stack,
|
|
127
|
+
...cloned
|
|
128
|
+
};
|
|
129
|
+
} else {
|
|
122
130
|
return value;
|
|
131
|
+
}
|
|
123
132
|
}
|
|
124
133
|
|
|
125
134
|
/*
|
|
@@ -7636,8 +7645,9 @@ function setup(ctx, _server) {
|
|
|
7636
7645
|
getConfig() {
|
|
7637
7646
|
return ctx.config;
|
|
7638
7647
|
},
|
|
7639
|
-
async getTransformResult(id) {
|
|
7640
|
-
const
|
|
7648
|
+
async getTransformResult(projectName, id, browser = false) {
|
|
7649
|
+
const project = ctx.getProjectByName(projectName);
|
|
7650
|
+
const result = browser ? await project.browser.transformRequest(id) : await project.vitenode.transformRequest(id);
|
|
7641
7651
|
if (result) {
|
|
7642
7652
|
try {
|
|
7643
7653
|
result.source = result.source || await promises$1.readFile(id, "utf-8");
|
|
@@ -8668,6 +8678,26 @@ function getMemoryLimit(config) {
|
|
|
8668
8678
|
}
|
|
8669
8679
|
|
|
8670
8680
|
const builtinPools = ["forks", "threads", "browser", "vmThreads", "vmForks", "typescript"];
|
|
8681
|
+
function getDefaultPoolName(project, file) {
|
|
8682
|
+
if (project.config.typecheck.enabled) {
|
|
8683
|
+
for (const glob of project.config.typecheck.include) {
|
|
8684
|
+
if (mm.isMatch(file, glob, { cwd: project.config.root }))
|
|
8685
|
+
return "typescript";
|
|
8686
|
+
}
|
|
8687
|
+
}
|
|
8688
|
+
if (project.config.browser.enabled)
|
|
8689
|
+
return "browser";
|
|
8690
|
+
return project.config.pool;
|
|
8691
|
+
}
|
|
8692
|
+
function getFilePoolName(project, file) {
|
|
8693
|
+
for (const [glob, pool] of project.config.poolMatchGlobs) {
|
|
8694
|
+
if (pool === "browser")
|
|
8695
|
+
throw new Error('Since Vitest 0.31.0 "browser" pool is not supported in "poolMatchGlobs". You can create a workspace to run some of your tests in browser in parallel. Read more: https://vitest.dev/guide/workspace');
|
|
8696
|
+
if (mm.isMatch(file, glob, { cwd: project.config.root }))
|
|
8697
|
+
return pool;
|
|
8698
|
+
}
|
|
8699
|
+
return getDefaultPoolName(project, file);
|
|
8700
|
+
}
|
|
8671
8701
|
function createPool(ctx) {
|
|
8672
8702
|
const pools = {
|
|
8673
8703
|
forks: null,
|
|
@@ -8677,26 +8707,6 @@ function createPool(ctx) {
|
|
|
8677
8707
|
vmForks: null,
|
|
8678
8708
|
typescript: null
|
|
8679
8709
|
};
|
|
8680
|
-
function getDefaultPoolName(project, file) {
|
|
8681
|
-
if (project.config.typecheck.enabled) {
|
|
8682
|
-
for (const glob of project.config.typecheck.include) {
|
|
8683
|
-
if (mm.isMatch(file, glob, { cwd: project.config.root }))
|
|
8684
|
-
return "typescript";
|
|
8685
|
-
}
|
|
8686
|
-
}
|
|
8687
|
-
if (project.config.browser.enabled)
|
|
8688
|
-
return "browser";
|
|
8689
|
-
return project.config.pool;
|
|
8690
|
-
}
|
|
8691
|
-
function getPoolName([project, file]) {
|
|
8692
|
-
for (const [glob, pool] of project.config.poolMatchGlobs) {
|
|
8693
|
-
if (pool === "browser")
|
|
8694
|
-
throw new Error('Since Vitest 0.31.0 "browser" pool is not supported in "poolMatchGlobs". You can create a workspace to run some of your tests in browser in parallel. Read more: https://vitest.dev/guide/workspace');
|
|
8695
|
-
if (mm.isMatch(file, glob, { cwd: project.config.root }))
|
|
8696
|
-
return pool;
|
|
8697
|
-
}
|
|
8698
|
-
return getDefaultPoolName(project, file);
|
|
8699
|
-
}
|
|
8700
8710
|
const potentialConditions = /* @__PURE__ */ new Set(["production", "development", ...ctx.server.config.resolve.conditions]);
|
|
8701
8711
|
const conditions = [...potentialConditions].filter((condition) => {
|
|
8702
8712
|
if (condition === "production")
|
|
@@ -8759,7 +8769,7 @@ function createPool(ctx) {
|
|
|
8759
8769
|
typescript: () => createTypecheckPool(ctx)
|
|
8760
8770
|
};
|
|
8761
8771
|
for (const spec of files) {
|
|
8762
|
-
const pool =
|
|
8772
|
+
const pool = getFilePoolName(spec[0], spec[1]);
|
|
8763
8773
|
filesByPool[pool] ?? (filesByPool[pool] = []);
|
|
8764
8774
|
filesByPool[pool].push(spec);
|
|
8765
8775
|
}
|
|
@@ -11688,7 +11698,7 @@ function resolveConfig(mode, options, viteConfig, logger) {
|
|
|
11688
11698
|
(_N = resolved.browser.viewport).width ?? (_N.width = 414);
|
|
11689
11699
|
(_O = resolved.browser.viewport).height ?? (_O.height = 896);
|
|
11690
11700
|
if (resolved.browser.enabled && provider$1 === "stackblitz")
|
|
11691
|
-
resolved.browser.provider = "
|
|
11701
|
+
resolved.browser.provider = "preview";
|
|
11692
11702
|
resolved.browser.api = resolveApiServerConfig(resolved.browser) || {
|
|
11693
11703
|
port: defaultBrowserPort
|
|
11694
11704
|
};
|
|
@@ -12265,7 +12275,8 @@ async function createBrowserServer(project, configFile) {
|
|
|
12265
12275
|
// watch is handled by Vitest
|
|
12266
12276
|
server: {
|
|
12267
12277
|
hmr: false,
|
|
12268
|
-
watch: null
|
|
12278
|
+
watch: null,
|
|
12279
|
+
preTransformRequests: false
|
|
12269
12280
|
},
|
|
12270
12281
|
plugins: [
|
|
12271
12282
|
...((_a = project.options) == null ? void 0 : _a.plugins) || [],
|
|
@@ -12296,10 +12307,6 @@ async function createBrowserServer(project, configFile) {
|
|
|
12296
12307
|
return {
|
|
12297
12308
|
resolve: {
|
|
12298
12309
|
alias: (_c = config.test) == null ? void 0 : _c.alias
|
|
12299
|
-
},
|
|
12300
|
-
server: {
|
|
12301
|
-
watch: null,
|
|
12302
|
-
preTransformRequests: false
|
|
12303
12310
|
}
|
|
12304
12311
|
};
|
|
12305
12312
|
}
|
|
@@ -12313,12 +12320,12 @@ async function createBrowserServer(project, configFile) {
|
|
|
12313
12320
|
return server;
|
|
12314
12321
|
}
|
|
12315
12322
|
|
|
12316
|
-
const builtinProviders = ["webdriverio", "playwright", "
|
|
12323
|
+
const builtinProviders = ["webdriverio", "playwright", "preview"];
|
|
12317
12324
|
async function getBrowserProvider(options, project) {
|
|
12318
12325
|
if (options.provider == null || builtinProviders.includes(options.provider)) {
|
|
12319
12326
|
await project.ctx.packageInstaller.ensureInstalled("@vitest/browser", project.config.root);
|
|
12320
12327
|
const providers = await project.runner.executeId("@vitest/browser/providers");
|
|
12321
|
-
const provider = options.provider || "
|
|
12328
|
+
const provider = options.provider || "preview";
|
|
12322
12329
|
return providers[provider];
|
|
12323
12330
|
}
|
|
12324
12331
|
let customProviderModule;
|
|
@@ -13494,7 +13501,7 @@ class WorkspaceProject {
|
|
|
13494
13501
|
},
|
|
13495
13502
|
browser: {
|
|
13496
13503
|
...this.ctx.config.browser,
|
|
13497
|
-
|
|
13504
|
+
orchestratorScripts: [],
|
|
13498
13505
|
testerScripts: [],
|
|
13499
13506
|
commands: {}
|
|
13500
13507
|
},
|
|
@@ -21190,4 +21197,4 @@ var cliApi = /*#__PURE__*/Object.freeze({
|
|
|
21190
21197
|
startVitest: startVitest
|
|
21191
21198
|
});
|
|
21192
21199
|
|
|
21193
|
-
export { VitestPlugin as V, createMethodsRPC as a, VitestPackageInstaller as b, createVitest as c, cliApi as d, registerConsoleShortcuts as r, startVitest as s };
|
|
21200
|
+
export { VitestPlugin as V, createMethodsRPC as a, VitestPackageInstaller as b, createVitest as c, cliApi as d, getFilePoolName as g, registerConsoleShortcuts as r, startVitest as s };
|
|
@@ -2698,7 +2698,8 @@ class JsonReporter {
|
|
|
2698
2698
|
title: t.name,
|
|
2699
2699
|
duration: (_b2 = t.result) == null ? void 0 : _b2.duration,
|
|
2700
2700
|
failureMessages: ((_d2 = (_c2 = t.result) == null ? void 0 : _c2.errors) == null ? void 0 : _d2.map((e) => e.stack || e.message)) || [],
|
|
2701
|
-
location: t.location
|
|
2701
|
+
location: t.location,
|
|
2702
|
+
meta: t.meta
|
|
2702
2703
|
};
|
|
2703
2704
|
});
|
|
2704
2705
|
if (tests2.some((t) => {
|
package/dist/workers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v8 from 'v8';
|
|
2
|
-
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-
|
|
2
|
+
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-DaDey3o0.js';
|
|
3
3
|
import { Awaitable } from '@vitest/utils';
|
|
4
4
|
import 'vite';
|
|
5
5
|
import '@vitest/runner';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.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",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"@types/node": "^18.0.0 || >=20.0.0",
|
|
120
120
|
"happy-dom": "*",
|
|
121
121
|
"jsdom": "*",
|
|
122
|
-
"@vitest/browser": "2.0.0-beta.
|
|
123
|
-
"@vitest/ui": "2.0.0-beta.
|
|
122
|
+
"@vitest/browser": "2.0.0-beta.8",
|
|
123
|
+
"@vitest/ui": "2.0.0-beta.8"
|
|
124
124
|
},
|
|
125
125
|
"peerDependenciesMeta": {
|
|
126
126
|
"@edge-runtime/vm": {
|
|
@@ -151,15 +151,15 @@
|
|
|
151
151
|
"picocolors": "^1.0.0",
|
|
152
152
|
"std-env": "^3.7.0",
|
|
153
153
|
"tinybench": "^2.8.0",
|
|
154
|
-
"tinypool": "^0.
|
|
154
|
+
"tinypool": "^1.0.0",
|
|
155
155
|
"vite": "^5.0.0",
|
|
156
156
|
"why-is-node-running": "^2.2.2",
|
|
157
|
-
"@vitest/expect": "2.0.0-beta.
|
|
158
|
-
"@vitest/
|
|
159
|
-
"@vitest/
|
|
160
|
-
"@vitest/
|
|
161
|
-
"vite-node": "2.0.0-beta.
|
|
162
|
-
"@vitest/
|
|
157
|
+
"@vitest/expect": "2.0.0-beta.8",
|
|
158
|
+
"@vitest/spy": "2.0.0-beta.8",
|
|
159
|
+
"@vitest/runner": "2.0.0-beta.8",
|
|
160
|
+
"@vitest/utils": "2.0.0-beta.8",
|
|
161
|
+
"vite-node": "2.0.0-beta.8",
|
|
162
|
+
"@vitest/snapshot": "2.0.0-beta.8"
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
165
|
"@ampproject/remapping": "^2.3.0",
|
|
@@ -189,7 +189,6 @@
|
|
|
189
189
|
"local-pkg": "^0.5.0",
|
|
190
190
|
"log-update": "^5.0.1",
|
|
191
191
|
"micromatch": "^4.0.5",
|
|
192
|
-
"p-limit": "^5.0.0",
|
|
193
192
|
"pretty-format": "^29.7.0",
|
|
194
193
|
"prompts": "^2.4.2",
|
|
195
194
|
"strip-ansi": "^7.1.0",
|