vitest 5.0.0-beta.2 → 5.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/browser.d.ts +1 -1
  2. package/dist/browser.js +1 -1
  3. package/dist/chunks/{base.Opc_YHkk.js → base.Bay6B1Dz.js} +4 -4
  4. package/dist/chunks/{browser.d.BUhkKcDl.d.ts → browser.d.DM1g8UNp.d.ts} +2 -2
  5. package/dist/chunks/{cac.8N4bOkkB.js → cac.DoK9yX-i.js} +8 -6
  6. package/dist/chunks/{cli-api.B0RFke2g.js → cli-api.BCY9ylNq.js} +140 -68
  7. package/dist/chunks/{config.d.D91DHYaD.d.ts → config.d.C0UMwus7.d.ts} +86 -63
  8. package/dist/chunks/{defaults.szbHWQun.js → defaults.DVfzlTkU.js} +1 -1
  9. package/dist/chunks/{env.D4Lgay0q.js → env.BKKtU2WC.js} +2 -1
  10. package/dist/chunks/{global.d.DhbKSQoV.d.ts → global.d.DZbA5YnY.d.ts} +4 -2
  11. package/dist/chunks/{globals.EHmmu0nC.js → globals.8_qjZdeE.js} +1 -1
  12. package/dist/chunks/{index.CViWo__T.js → index.PuMGMNHF.js} +2 -2
  13. package/dist/chunks/{index.D_7-4CaB.js → index.ukHtlBbI.js} +1305 -555
  14. package/dist/chunks/{init-forks.DMge3WTt.js → init-forks.OoZmDo1g.js} +1 -1
  15. package/dist/chunks/{init-threads.eIoyCTon.js → init-threads.eSHAowcx.js} +1 -1
  16. package/dist/chunks/{init.BVd7SaCA.js → init.YjNsCb-_.js} +1 -1
  17. package/dist/chunks/{plugin.d.cIKZEZ16.d.ts → plugin.d.C00LxKL6.d.ts} +35 -9
  18. package/dist/chunks/{setup-common.Hpq30zVk.js → setup-common.eQsbxe88.js} +1 -1
  19. package/dist/chunks/{vm.2okbRRME.js → vm.BE_VOfSs.js} +1 -1
  20. package/dist/chunks/{worker.d.Bu1kXGw4.d.ts → worker.d.Dv3hDCFf.d.ts} +1 -1
  21. package/dist/cli.js +2 -2
  22. package/dist/config.d.ts +6 -7
  23. package/dist/config.js +2 -2
  24. package/dist/index.d.ts +8 -8
  25. package/dist/index.js +1 -1
  26. package/dist/module-evaluator.js +1 -1
  27. package/dist/node.d.ts +7 -8
  28. package/dist/node.js +5 -5
  29. package/dist/worker.d.ts +2 -2
  30. package/dist/worker.js +5 -5
  31. package/dist/workers/forks.js +6 -6
  32. package/dist/workers/runVmTests.js +3 -3
  33. package/dist/workers/threads.js +6 -6
  34. package/dist/workers/vmForks.js +3 -3
  35. package/dist/workers/vmThreads.js +3 -3
  36. package/package.json +19 -20
@@ -1,4 +1,4 @@
1
- import { i as init } from './init.BVd7SaCA.js';
1
+ import { i as init } from './init.YjNsCb-_.js';
2
2
 
3
3
  if (!process.send) throw new Error("Expected worker to be run in node:child_process");
4
4
  // Store globals in case tests overwrite them
@@ -1,5 +1,5 @@
1
1
  import { isMainThread, parentPort } from 'node:worker_threads';
2
- import { i as init } from './init.BVd7SaCA.js';
2
+ import { i as init } from './init.YjNsCb-_.js';
3
3
 
4
4
  if (isMainThread || !parentPort) throw new Error("Expected worker to be run in node:worker_threads");
5
5
  function workerInit(options) {
@@ -214,7 +214,7 @@ function init(worker) {
214
214
  process.env.VITEST_POOL_ID = String(message.poolId);
215
215
  process.env.VITEST_WORKER_ID = String(message.workerId);
216
216
  reportMemory = message.options.reportMemory;
217
- if (message.context.config.isAgent) disableDefaultColors();
217
+ if (message.context.config.disableColors) disableDefaultColors();
218
218
  traces ??= await new Traces({
219
219
  enabled: message.traces.enabled,
220
220
  sdkPath: message.traces.sdkPath
@@ -1,21 +1,20 @@
1
1
  import { DevEnvironment, TransformResult as TransformResult$1, ViteDevServer, Plugin, UserConfig as UserConfig$1, DepOptimizationConfig, ServerOptions, ConfigEnv, AliasOptions } from 'vite';
2
- import { S as SerializedTestSpecification, g as SourceModuleDiagnostic, m as BrowserTesterOptions, l as BenchmarkResult } from './browser.d.BUhkKcDl.js';
2
+ import { S as SerializedTestSpecification, g as SourceModuleDiagnostic, m as BrowserTesterOptions, l as BenchmarkResult } from './browser.d.DM1g8UNp.js';
3
3
  import { TaskMeta, Suite, File, SerializableRetry, TestAnnotation, TestArtifact, ImportDuration, Test, Task, TaskResultPack, FileSpecification, CancelReason, SequenceSetupFiles, SequenceHooks, TestTagDefinition } from '@vitest/runner';
4
4
  import { TestError, SerializedError, Arrayable, ParsedStack, Awaitable } from '@vitest/utils';
5
5
  import { Writable } from 'node:stream';
6
- import { S as SerializedRootConfig, B as BrowserTraceViewMode, a as SerializedConfig, F as FakeTimerInstallOpts } from './config.d.D91DHYaD.js';
7
- import { A as AfterSuiteRunMeta, e as SnapshotStateOptions, f as SnapshotSummary, c as SnapshotResult, U as UserConsoleLog, j as AsyncLeak, P as ProvidedContext, L as LabelColor } from './general.d.DFAHgpC2.js';
6
+ import { S as SerializedRootConfig, B as BrowserTraceViewMode, a as SerializedConfig, C as Config } from './config.d.C0UMwus7.js';
7
+ import { U as UserConsoleLog, A as AfterSuiteRunMeta, e as SnapshotStateOptions, f as SnapshotSummary, c as SnapshotResult, j as AsyncLeak, P as ProvidedContext, L as LabelColor } from './general.d.DFAHgpC2.js';
8
8
  import { writeFile } from 'node:fs/promises';
9
- import { TaskMeta as TaskMeta$1 } from '@vitest/runner/types';
10
9
  import { PrettyFormatOptions } from '@vitest/pretty-format';
11
10
  import { SerializedDiffOptions } from '@vitest/utils/diff';
12
11
  import * as chai from 'chai';
13
12
  import { happyDomTypes, jsdomTypes } from 'vitest/optional-types.js';
14
- import { a as ContextTestEnvironment, b as WorkerExecuteContext, c as WorkerTestEnvironment } from './worker.d.Bu1kXGw4.js';
13
+ import { a as ContextTestEnvironment, b as WorkerExecuteContext, c as WorkerTestEnvironment } from './worker.d.Dv3hDCFf.js';
15
14
  import { O as OTELCarrier } from './rpc.d.7JZuxZ8u.js';
16
15
  import { MockedModule } from '@vitest/mocker';
17
16
  import { StackTraceParserOptions } from '@vitest/utils/source-map';
18
- import { CDPSession, BrowserCommands } from 'vitest/browser';
17
+ import { CDPSession, BrowserCommands, MarkOptions } from 'vitest/browser';
19
18
  import { a as RuntimeCoverageProviderModule } from './coverage.d.g2xbl2sP.js';
20
19
  import { Console } from 'node:console';
21
20
  import { Stats } from 'node:fs';
@@ -218,6 +217,10 @@ declare class ReportedTaskImplementation {
218
217
  * Custom metadata that was attached to the test during its execution.
219
218
  */
220
219
  meta(): TaskMeta;
220
+ /**
221
+ * Console logs recorded during the test execution.
222
+ */
223
+ logs(): ReadonlyArray<UserConsoleLog>;
221
224
  }
222
225
  declare class TestCase extends ReportedTaskImplementation {
223
226
  #private;
@@ -1802,6 +1805,12 @@ interface BrowserConfigOptions {
1802
1805
  * @default false
1803
1806
  */
1804
1807
  exact?: boolean;
1808
+ /**
1809
+ * Format used for locator "Cannot find element" error details.
1810
+ *
1811
+ * @default 'all'
1812
+ */
1813
+ errorFormat?: "html" | "aria" | "all";
1805
1814
  };
1806
1815
  /**
1807
1816
  * Generate traces that can be viewed on https://trace.playwright.dev/
@@ -1895,10 +1904,12 @@ interface BrowserCommandContext {
1895
1904
  provider: BrowserProvider;
1896
1905
  project: TestProject;
1897
1906
  sessionId: string;
1907
+ mark: (name: string, options?: MarkOptions) => Promise<void>;
1898
1908
  triggerCommand: <K extends keyof BrowserCommands>(name: K, ...args: Parameters<BrowserCommands[K]>) => ReturnType<BrowserCommands[K]>;
1899
1909
  }
1900
1910
  interface BrowserServerStateSession {
1901
1911
  project: TestProject;
1912
+ otelCarrier?: OTELCarrier;
1902
1913
  connected: () => void;
1903
1914
  fail: (v: Error) => void;
1904
1915
  }
@@ -1976,6 +1987,7 @@ interface ResolvedBrowserOptions extends BrowserConfigOptions {
1976
1987
  locators: {
1977
1988
  testIdAttribute: string;
1978
1989
  exact: boolean;
1990
+ errorFormat: "html" | "aria" | "all";
1979
1991
  };
1980
1992
  trace: {
1981
1993
  mode: BrowserTraceViewMode;
@@ -2119,7 +2131,7 @@ declare class TestProject {
2119
2131
  * Creates a new test specification. Specifications describe how to run tests.
2120
2132
  * @param moduleId The file path
2121
2133
  */
2122
- createSpecification(moduleId: string, locationsOrOptions?: number[] | TestSpecificationOptions | undefined, pool?: string, metaOverride?: TaskMeta$1): TestSpecification;
2134
+ createSpecification(moduleId: string, locationsOrOptions?: number[] | TestSpecificationOptions | undefined, pool?: string, taskIdOverride?: string): TestSpecification;
2123
2135
  toJSON(): SerializedTestProject;
2124
2136
  /**
2125
2137
  * Vite's dev server instance. Every workspace project has its own server.
@@ -2611,6 +2623,14 @@ type TaskWithMeta = Task & {
2611
2623
  /** Top-level describe block name */
2612
2624
  _suitename?: string;
2613
2625
  };
2626
+ /**
2627
+ * Runtime additions on top of {@link SerializedError}: `type` is set by
2628
+ * {@link state.catchError}, `VITEST_TEST_PATH` by the runtime error catcher.
2629
+ */
2630
+ type UnhandledError = SerializedError & {
2631
+ type?: string;
2632
+ VITEST_TEST_PATH?: string;
2633
+ };
2614
2634
  declare class JUnitReporter implements Reporter {
2615
2635
  private ctx;
2616
2636
  private reportFile?;
@@ -2626,7 +2646,9 @@ declare class JUnitReporter implements Reporter {
2626
2646
  private applyTemplate;
2627
2647
  writeTasks(tasks: TaskWithMeta[], filename: string, fileAbsPath: string): Promise<void>;
2628
2648
  private resolveSuiteNameTemplate;
2629
- onTestRunEnd(testModules: ReadonlyArray<TestModule>): Promise<void>;
2649
+ private writeErrorElement;
2650
+ private writeUnhandledErrorsTestsuite;
2651
+ onTestRunEnd(testModules: ReadonlyArray<TestModule>, unhandledErrors?: ReadonlyArray<UnhandledError>): Promise<void>;
2630
2652
  }
2631
2653
 
2632
2654
  declare class DotReporter extends BaseReporter {
@@ -3290,7 +3312,7 @@ interface InlineConfig {
3290
3312
  /**
3291
3313
  * Options for @sinon/fake-timers
3292
3314
  */
3293
- fakeTimers?: FakeTimerInstallOpts;
3315
+ fakeTimers?: Config;
3294
3316
  /**
3295
3317
  * Custom handler for console.log in tests.
3296
3318
  *
@@ -3652,6 +3674,10 @@ interface TypecheckConfig {
3652
3674
  */
3653
3675
  ignoreSourceErrors?: boolean;
3654
3676
  /**
3677
+ * Use TypeScript build mode.
3678
+ */
3679
+ build?: boolean;
3680
+ /**
3655
3681
  * Path to tsconfig, relative to the project root.
3656
3682
  */
3657
3683
  tsconfig?: string;
@@ -30,7 +30,7 @@ async function setupCommonEnv(config) {
30
30
  if (globalSetup) return;
31
31
  globalSetup = true;
32
32
  setSafeTimers();
33
- if (config.globals) (await import('./globals.EHmmu0nC.js')).registerApiGlobally();
33
+ if (config.globals) (await import('./globals.8_qjZdeE.js')).registerApiGlobally();
34
34
  }
35
35
  function setupDefines(config) {
36
36
  for (const key in config.defines) globalThis[key] = config.defines[key];
@@ -1,7 +1,7 @@
1
1
  import { fileURLToPath, pathToFileURL } from 'node:url';
2
2
  import vm, { isContext, runInContext } from 'node:vm';
3
3
  import { dirname, basename, extname, normalize, resolve } from 'pathe';
4
- import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.BVd7SaCA.js';
4
+ import { l as loadEnvironment, a as listenForErrors, e as emitModuleRunner } from './init.YjNsCb-_.js';
5
5
  import { distDir } from '../path.js';
6
6
  import { createCustomConsole } from './console.B3IRP8fX.js';
7
7
  import fs__default from 'node:fs';
@@ -1,6 +1,6 @@
1
1
  import { FileSpecification, Task, CancelReason } from '@vitest/runner';
2
2
  import { EvaluatedModules } from 'vite/module-runner';
3
- import { a as SerializedConfig } from './config.d.D91DHYaD.js';
3
+ import { a as SerializedConfig } from './config.d.C0UMwus7.js';
4
4
  import { E as Environment } from './environment.d.CrsxCzP1.js';
5
5
  import { a as RuntimeRPC, R as RunnerRPC } from './rpc.d.7JZuxZ8u.js';
6
6
 
package/dist/cli.js CHANGED
@@ -1,9 +1,9 @@
1
- import { c as createCLI } from './chunks/cac.8N4bOkkB.js';
1
+ import { c as createCLI } from './chunks/cac.DoK9yX-i.js';
2
2
  import '@vitest/utils/helpers';
3
3
  import 'events';
4
4
  import 'pathe';
5
5
  import 'tinyrainbow';
6
- import './chunks/env.D4Lgay0q.js';
6
+ import './chunks/env.BKKtU2WC.js';
7
7
  import 'std-env';
8
8
  import './chunks/constants.-juJ8b_4.js';
9
9
  import 'node:assert';
package/dist/config.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { HookHandler, UserConfig, ConfigEnv } from 'vite';
2
2
  export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
3
- import { a4 as InlineConfig, aW as VitestPluginContext, N as CoverageOptions, a$ as FieldsWithDefaultValues, aR as UserWorkspaceConfig, b0 as UserProjectConfigFn, b1 as UserProjectConfigExport } from './chunks/plugin.d.cIKZEZ16.js';
4
- export { b2 as TestProjectConfiguration, b3 as TestProjectInlineConfiguration, U as TestUserConfig, aX as WatcherTriggerPattern } from './chunks/plugin.d.cIKZEZ16.js';
5
- import { F as FakeTimerInstallOpts } from './chunks/config.d.D91DHYaD.js';
6
- import './chunks/browser.d.BUhkKcDl.js';
3
+ import { a4 as InlineConfig, aW as VitestPluginContext, N as CoverageOptions, a$ as FieldsWithDefaultValues, aR as UserWorkspaceConfig, b0 as UserProjectConfigFn, b1 as UserProjectConfigExport } from './chunks/plugin.d.C00LxKL6.js';
4
+ export { b2 as TestProjectConfiguration, b3 as TestProjectInlineConfiguration, U as TestUserConfig, aX as WatcherTriggerPattern } from './chunks/plugin.d.C00LxKL6.js';
5
+ import { C as Config } from './chunks/config.d.C0UMwus7.js';
6
+ import './chunks/browser.d.DM1g8UNp.js';
7
7
  export { TestTagDefinition } from '@vitest/runner';
8
8
  import '@vitest/utils';
9
9
  import 'node:stream';
@@ -11,11 +11,10 @@ import './chunks/general.d.DFAHgpC2.js';
11
11
  import '@vitest/pretty-format';
12
12
  import './chunks/environment.d-DOJxxZV9.d.DOJxxZV9.js';
13
13
  import 'node:fs/promises';
14
- import '@vitest/runner/types';
15
14
  import '@vitest/utils/diff';
16
15
  import 'chai';
17
16
  import 'vitest/optional-types.js';
18
- import './chunks/worker.d.Bu1kXGw4.js';
17
+ import './chunks/worker.d.Dv3hDCFf.js';
19
18
  import 'vite/module-runner';
20
19
  import './chunks/environment.d.CrsxCzP1.js';
21
20
  import './chunks/rpc.d.7JZuxZ8u.js';
@@ -76,7 +75,7 @@ declare const configDefaults: Readonly<{
76
75
  include: never[];
77
76
  };
78
77
  coverage: CoverageOptions;
79
- fakeTimers: FakeTimerInstallOpts;
78
+ fakeTimers: Config;
80
79
  maxConcurrency: number;
81
80
  dangerouslyIgnoreUnhandledErrors: boolean;
82
81
  typecheck: {
package/dist/config.js CHANGED
@@ -1,8 +1,8 @@
1
- export { c as configDefaults, a as coverageConfigDefaults, d as defaultExclude, b as defaultInclude } from './chunks/defaults.szbHWQun.js';
1
+ export { c as configDefaults, a as coverageConfigDefaults, d as defaultExclude, b as defaultInclude } from './chunks/defaults.DVfzlTkU.js';
2
2
  export { mergeConfig } from 'vite';
3
3
  export { d as defaultBrowserPort } from './chunks/constants.-juJ8b_4.js';
4
4
  import 'node:os';
5
- import './chunks/env.D4Lgay0q.js';
5
+ import './chunks/env.BKKtU2WC.js';
6
6
  import 'std-env';
7
7
 
8
8
  function defineConfig(config) {
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, E as ExpectStatic, a as MatcherState, b as SyncExpectationResult, A as AsyncExpectationResult, c as ExpectationResult, B as BenchFunction, d as BenchmarkAPI, e as ModuleDefinitionDiagnostic, f as ModuleDefinitionLocation, g as SourceModuleDiagnostic, h as SourceModuleLocations } from './chunks/browser.d.BUhkKcDl.js';
2
- export { i as Assertion, j as AsymmetricMatchersContaining, k as Benchmark, l as BenchmarkResult, m as BrowserTesterOptions, D as DeeplyAllowMatchers, J as JestAssertion, R as Matcher, n as Matchers, o as MatchersObject } from './chunks/browser.d.BUhkKcDl.js';
3
- import './chunks/global.d.DhbKSQoV.js';
1
+ import { M as ModuleDefinitionDurationsDiagnostic, U as UntrackedModuleDefinitionDiagnostic, S as SerializedTestSpecification, E as ExpectStatic, a as MatcherState, b as SyncExpectationResult, A as AsyncExpectationResult, c as ExpectationResult, B as BenchFunction, d as BenchmarkAPI, e as ModuleDefinitionDiagnostic, f as ModuleDefinitionLocation, g as SourceModuleDiagnostic, h as SourceModuleLocations } from './chunks/browser.d.DM1g8UNp.js';
2
+ export { i as Assertion, j as AsymmetricMatchersContaining, k as Benchmark, l as BenchmarkResult, m as BrowserTesterOptions, D as DeeplyAllowMatchers, J as JestAssertion, R as Matcher, n as Matchers, o as MatchersObject } from './chunks/browser.d.DM1g8UNp.js';
3
+ import './chunks/global.d.DZbA5YnY.js';
4
4
  import { File, TestAnnotation, TestArtifact, TaskResultPack, TaskEventPack, Test, TaskPopulated, VitestRunner, VitestRunnerImportSource, Suite, Task, CancelReason, TestContext, ImportDuration, createTaskCollector, getCurrentSuite, getCurrentTest, getHooks, getFn } from '@vitest/runner';
5
5
  export { CancelReason, ImportDuration, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskEventPack as RunnerTaskEventPack, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteOptions, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestAnnotationArtifact, TestArtifact, TestArtifactBase, TestArtifactLocation, TestArtifactRegistry, TestAttachment, TestContext, TestFunction, TestOptions, VitestRunnerConfig as TestRunnerConfig, TestTagDefinition, TestTags, VitestRunner as VitestTestRunner, afterAll, afterEach, aroundAll, aroundEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
6
6
  import { Awaitable } from '@vitest/utils';
7
7
  export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
8
- import { B as BirpcReturn } from './chunks/worker.d.Bu1kXGw4.js';
9
- export { C as ContextRPC, a as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.Bu1kXGw4.js';
10
- import { S as SerializedRootConfig, F as FakeTimerInstallOpts, R as RuntimeOptions, a as SerializedConfig } from './chunks/config.d.D91DHYaD.js';
11
- export { b as RuntimeConfig, c as SerializedCoverageConfig } from './chunks/config.d.D91DHYaD.js';
8
+ import { B as BirpcReturn } from './chunks/worker.d.Dv3hDCFf.js';
9
+ export { C as ContextRPC, a as ContextTestEnvironment, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.Dv3hDCFf.js';
10
+ import { S as SerializedRootConfig, C as Config, R as RuntimeOptions, a as SerializedConfig } from './chunks/config.d.C0UMwus7.js';
11
+ export { b as RuntimeConfig, c as SerializedCoverageConfig } from './chunks/config.d.C0UMwus7.js';
12
12
  import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, P as ProvidedContext, D as DomainSnapshotAdapter } from './chunks/general.d.DFAHgpC2.js';
13
13
  export { A as AfterSuiteRunMeta, a as DomainMatchResult, S as SnapshotData, b as SnapshotMatchOptions, c as SnapshotResult, d as SnapshotSerializer, e as SnapshotStateOptions, f as SnapshotSummary, g as SnapshotUpdateState, h as UncheckedSnapshot } from './chunks/general.d.DFAHgpC2.js';
14
14
  import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
@@ -221,7 +221,7 @@ interface VitestUtils {
221
221
  /**
222
222
  * This method wraps all further calls to timers until [`vi.useRealTimers()`](https://vitest.dev/api/vi#vi-userealtimers) is called.
223
223
  */
224
- useFakeTimers: (config?: FakeTimerInstallOpts) => VitestUtils;
224
+ useFakeTimers: (config?: Config) => VitestUtils;
225
225
  /**
226
226
  * Restores mocked timers to their original implementations. All timers that were scheduled before will be discarded.
227
227
  */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { N as BenchmarkRunner, S as Snapshots, T as TestRunner, a as assert, b as assertType, c as bench, d as createExpect, g as expect, e as inject, s as should, v as vi, f as vitest } from './chunks/index.D_7-4CaB.js';
1
+ export { N as BenchmarkRunner, S as Snapshots, T as TestRunner, a as assert, b as assertType, c as bench, d as createExpect, g as expect, e as inject, s as should, v as vi, f as vitest } from './chunks/index.ukHtlBbI.js';
2
2
  export { V as EvaluatedModules } from './chunks/rpc.DFRWVnRh.js';
3
3
  export { expectTypeOf } from 'expect-type';
4
4
  export { afterAll, afterEach, aroundAll, aroundEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, recordArtifact, suite, test } from '@vitest/runner';
@@ -339,7 +339,7 @@ function interopModule(mod) {
339
339
  defaultExport: mod
340
340
  };
341
341
  let defaultExport = "default" in mod ? mod.default : mod;
342
- if (!isPrimitive(defaultExport) && "__esModule" in defaultExport) {
342
+ if (!isPrimitive(defaultExport) && defaultExport.__esModule) {
343
343
  mod = defaultExport;
344
344
  if ("default" in defaultExport) defaultExport = defaultExport.default;
345
345
  }
package/dist/node.d.ts CHANGED
@@ -3,24 +3,23 @@ import { InlineConfig, UserConfig as UserConfig$1, TransformResult, Plugin, Reso
3
3
  export { vite as Vite };
4
4
  export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
5
5
  import { IncomingMessage } from 'node:http';
6
- import { R as ResolvedConfig, U as UserConfig, V as VitestRunMode, a as VitestOptions, b as Vitest, A as ApiConfig, L as Logger, c as ResolvedCoverageOptions, C as CoverageMap, d as ReportContext, T as TestProject, e as TestSpecification, P as PoolWorker, f as PoolOptions, W as WorkerRequest, g as TestSequencer } from './chunks/plugin.d.cIKZEZ16.js';
7
- export { M as AgentReporter, B as BaseCoverageOptions, h as BaseReporter, i as BenchmarkBuiltinReporters, j as BenchmarkReporter, k as BenchmarkReportsMap, l as BenchmarkUserOptions, m as BrowserBuiltinProvider, n as BrowserCommand, o as BrowserCommandContext, p as BrowserConfigOptions, q as BrowserInstanceOption, r as BrowserModuleMocker, s as BrowserOrchestrator, t as BrowserProvider, u as BrowserProviderOption, v as BrowserScript, w as BrowserServerFactory, x as BrowserServerOptions, y as BrowserServerState, z as BrowserServerStateSession, D as BuiltinEnvironment, E as BuiltinReporterOptions, F as BuiltinReporters, G as CSSModuleScopeStrategy, H as CacheKeyIdGenerator, I as CacheKeyIdGeneratorContext, J as CoverageInstrumenter, K as CoverageIstanbulOptions, N as CoverageOptions, O as CoverageProvider, Q as CoverageProviderModule, S as CoverageReporter, X as CoverageV8Options, Y as CustomProviderOptions, Z as DefaultReporter, _ as DepsOptimizationOptions, $ as DotReporter, a0 as EnvironmentOptions, a1 as GithubActionsReporter, a2 as HTMLOptions, a3 as HangingProcessReporter, a4 as InlineConfig, a5 as InstrumenterOptions, a6 as JUnitOptions, a7 as JUnitReporter, a8 as JsonAssertionResult, a9 as JsonOptions, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, M as MinimalReporter, ad as ModuleDiagnostic, ae as OnServerRestartHandler, af as OnTestsRerunHandler, ag as ParentProjectBrowser, ah as Pool, ai as PoolRunnerInitializer, aj as PoolTask, ak as ProjectBrowser, al as ProjectConfig, am as Report, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aq as ResolveSnapshotPathHandler, ar as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, at as ResolvedProjectConfig, au as SerializedTestProject, av as TapFlatReporter, aw as TapReporter, ax as TaskOptions, ay as TestCase, az as TestCollection, aA as TestDiagnostic, aB as TestModule, aC as TestModuleState, aD as TestResult, aE as TestResultFailed, aF as TestResultPassed, aG as TestResultSkipped, aH as TestRunEndReason, aI as TestRunResult, aJ as TestSequencerConstructor, aK as TestSpecificationOptions, aL as TestState, aM as TestSuite, aN as TestSuiteState, aO as ToMatchScreenshotComparators, aP as ToMatchScreenshotOptions, aQ as TypecheckConfig, aR as UserWorkspaceConfig, aS as VerboseBenchmarkReporter, aT as VerboseReporter, aU as VitestEnvironment, aV as VitestPackageInstaller, aW as VitestPluginContext, aX as WatcherTriggerPattern, aY as WorkerResponse, aZ as _BrowserNames, a_ as experimental_getRunnerTask } from './chunks/plugin.d.cIKZEZ16.js';
8
- import './chunks/browser.d.BUhkKcDl.js';
6
+ import { R as ResolvedConfig, U as UserConfig, V as VitestRunMode, a as VitestOptions, b as Vitest, A as ApiConfig, L as Logger, c as ResolvedCoverageOptions, C as CoverageMap, d as ReportContext, T as TestProject, e as TestSpecification, P as PoolWorker, f as PoolOptions, W as WorkerRequest, g as TestSequencer } from './chunks/plugin.d.C00LxKL6.js';
7
+ export { M as AgentReporter, B as BaseCoverageOptions, h as BaseReporter, i as BenchmarkBuiltinReporters, j as BenchmarkReporter, k as BenchmarkReportsMap, l as BenchmarkUserOptions, m as BrowserBuiltinProvider, n as BrowserCommand, o as BrowserCommandContext, p as BrowserConfigOptions, q as BrowserInstanceOption, r as BrowserModuleMocker, s as BrowserOrchestrator, t as BrowserProvider, u as BrowserProviderOption, v as BrowserScript, w as BrowserServerFactory, x as BrowserServerOptions, y as BrowserServerState, z as BrowserServerStateSession, D as BuiltinEnvironment, E as BuiltinReporterOptions, F as BuiltinReporters, G as CSSModuleScopeStrategy, H as CacheKeyIdGenerator, I as CacheKeyIdGeneratorContext, J as CoverageInstrumenter, K as CoverageIstanbulOptions, N as CoverageOptions, O as CoverageProvider, Q as CoverageProviderModule, S as CoverageReporter, X as CoverageV8Options, Y as CustomProviderOptions, Z as DefaultReporter, _ as DepsOptimizationOptions, $ as DotReporter, a0 as EnvironmentOptions, a1 as GithubActionsReporter, a2 as HTMLOptions, a3 as HangingProcessReporter, a4 as InlineConfig, a5 as InstrumenterOptions, a6 as JUnitOptions, a7 as JUnitReporter, a8 as JsonAssertionResult, a9 as JsonOptions, aa as JsonReporter, ab as JsonTestResult, ac as JsonTestResults, M as MinimalReporter, ad as ModuleDiagnostic, ae as OnServerRestartHandler, af as OnTestsRerunHandler, ag as ParentProjectBrowser, ah as Pool, ai as PoolRunnerInitializer, aj as PoolTask, ak as ProjectBrowser, al as ProjectConfig, am as Report, an as ReportedHookContext, ao as Reporter, ap as ReportersMap, aq as ResolveSnapshotPathHandler, ar as ResolveSnapshotPathHandlerContext, as as ResolvedBrowserOptions, at as ResolvedProjectConfig, au as SerializedTestProject, av as TapFlatReporter, aw as TapReporter, ax as TaskOptions, ay as TestCase, az as TestCollection, aA as TestDiagnostic, aB as TestModule, aC as TestModuleState, aD as TestResult, aE as TestResultFailed, aF as TestResultPassed, aG as TestResultSkipped, aH as TestRunEndReason, aI as TestRunResult, aJ as TestSequencerConstructor, aK as TestSpecificationOptions, aL as TestState, aM as TestSuite, aN as TestSuiteState, aO as ToMatchScreenshotComparators, aP as ToMatchScreenshotOptions, aQ as TypecheckConfig, aR as UserWorkspaceConfig, aS as VerboseBenchmarkReporter, aT as VerboseReporter, aU as VitestEnvironment, aV as VitestPackageInstaller, aW as VitestPluginContext, aX as WatcherTriggerPattern, aY as WorkerResponse, aZ as _BrowserNames, a_ as experimental_getRunnerTask } from './chunks/plugin.d.C00LxKL6.js';
8
+ import './chunks/browser.d.DM1g8UNp.js';
9
9
  import { A as AfterSuiteRunMeta } from './chunks/general.d.DFAHgpC2.js';
10
10
  import { Awaitable } from '@vitest/utils';
11
11
  export { SerializedError } from '@vitest/utils';
12
12
  import { a as RuntimeRPC } from './chunks/rpc.d.7JZuxZ8u.js';
13
13
  import { Writable } from 'node:stream';
14
- import { C as ContextRPC } from './chunks/worker.d.Bu1kXGw4.js';
15
- export { T as TestExecutionType } from './chunks/worker.d.Bu1kXGw4.js';
14
+ import { C as ContextRPC } from './chunks/worker.d.Dv3hDCFf.js';
15
+ export { T as TestExecutionType } from './chunks/worker.d.Dv3hDCFf.js';
16
16
  import { Debugger } from 'obug';
17
- import './chunks/global.d.DhbKSQoV.js';
17
+ import './chunks/global.d.DZbA5YnY.js';
18
18
  export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
19
- export { b as RuntimeConfig } from './chunks/config.d.D91DHYaD.js';
19
+ export { b as RuntimeConfig } from './chunks/config.d.C0UMwus7.js';
20
20
  export { generateFileHash } from '@vitest/runner/utils';
21
21
  export { CDPSession } from 'vitest/browser';
22
22
  import 'node:fs/promises';
23
- import '@vitest/runner/types';
24
23
  import '@vitest/pretty-format';
25
24
  import '@vitest/utils/diff';
26
25
  import 'chai';
package/dist/node.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as vite from 'vite';
2
2
  import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
3
3
  export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
4
- import { V as Vitest, a as VitestPlugin, r as resolveConfig$2 } from './chunks/cli-api.B0RFke2g.js';
5
- export { M as AgentReporter, B as BaseCoverageProvider, b as BaseSequencer, c as BenchmarkReporter, d as BenchmarkReportsMap, D as DefaultReporter, e as DotReporter, F as ForksPoolWorker, G as GitNotFoundError, f as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, g as JsonReporter, M as MinimalReporter, R as ReportersMap, T as TapFlatReporter, h as TapReporter, i as TestsNotFoundError, j as ThreadsPoolWorker, k as TypecheckPoolWorker, l as VerboseBenchmarkReporter, m as VerboseReporter, n as VitestPackageInstaller, o as VmForksPoolWorker, p as VmThreadsPoolWorker, q as createDebugger, s as createMethodsRPC, t as createViteLogger, u as createVitest, v as escapeTestName, w as experimental_getRunnerTask, x as getFilePoolName, y as isFileServingAllowed, z as isValidApiRequest, A as registerConsoleShortcuts, C as resolveApiServerConfig, E as resolveFsAllow, I as startVitest } from './chunks/cli-api.B0RFke2g.js';
6
- export { p as parseCLI } from './chunks/cac.8N4bOkkB.js';
4
+ import { V as Vitest, a as VitestPlugin, r as resolveConfig$2 } from './chunks/cli-api.BCY9ylNq.js';
5
+ export { M as AgentReporter, B as BaseCoverageProvider, b as BaseSequencer, c as BenchmarkReporter, d as BenchmarkReportsMap, D as DefaultReporter, e as DotReporter, F as ForksPoolWorker, G as GitNotFoundError, f as GithubActionsReporter, H as HangingProcessReporter, J as JUnitReporter, g as JsonReporter, M as MinimalReporter, R as ReportersMap, T as TapFlatReporter, h as TapReporter, i as TestsNotFoundError, j as ThreadsPoolWorker, k as TypecheckPoolWorker, l as VerboseBenchmarkReporter, m as VerboseReporter, n as VitestPackageInstaller, o as VmForksPoolWorker, p as VmThreadsPoolWorker, q as createDebugger, s as createMethodsRPC, t as createViteLogger, u as createVitest, v as escapeTestName, w as experimental_getRunnerTask, x as getFilePoolName, y as isFileServingAllowed, z as isValidApiRequest, A as registerConsoleShortcuts, C as resolveApiServerConfig, E as resolveFsAllow, I as startVitest } from './chunks/cli-api.BCY9ylNq.js';
6
+ export { p as parseCLI } from './chunks/cac.DoK9yX-i.js';
7
7
  import { slash, deepClone } from '@vitest/utils/helpers';
8
8
  import { a as any } from './chunks/index.og1WyBLx.js';
9
9
  import { resolve } from 'pathe';
@@ -29,8 +29,8 @@ import 'obug';
29
29
  import 'node:crypto';
30
30
  import 'tinyrainbow';
31
31
  import 'tinyglobby';
32
- import './chunks/defaults.szbHWQun.js';
33
- import './chunks/env.D4Lgay0q.js';
32
+ import './chunks/defaults.DVfzlTkU.js';
33
+ import './chunks/env.BKKtU2WC.js';
34
34
  import 'std-env';
35
35
  import './chunks/utils.DKODp04v.js';
36
36
  import '@vitest/utils/display';
package/dist/worker.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { W as WorkerGlobalState, d as WorkerSetupContext, e as BirpcOptions } from './chunks/worker.d.Bu1kXGw4.js';
1
+ import { W as WorkerGlobalState, d as WorkerSetupContext, e as BirpcOptions } from './chunks/worker.d.Dv3hDCFf.js';
2
2
  import { T as Traces, a as RuntimeRPC } from './chunks/rpc.d.7JZuxZ8u.js';
3
3
  import { Awaitable } from '@vitest/utils';
4
4
  import { ModuleRunner } from 'vite/module-runner';
5
5
  import '@vitest/runner';
6
- import './chunks/config.d.D91DHYaD.js';
6
+ import './chunks/config.d.C0UMwus7.js';
7
7
  import '@vitest/pretty-format';
8
8
  import './chunks/general.d.DFAHgpC2.js';
9
9
  import './chunks/environment.d-DOJxxZV9.d.DOJxxZV9.js';
package/dist/worker.js CHANGED
@@ -1,11 +1,11 @@
1
- export { r as runBaseTests, s as setupEnvironment } from './chunks/base.Opc_YHkk.js';
2
- export { i as init } from './chunks/init.BVd7SaCA.js';
1
+ export { r as runBaseTests, s as setupEnvironment } from './chunks/base.Bay6B1Dz.js';
2
+ export { i as init } from './chunks/init.YjNsCb-_.js';
3
3
  import 'node:vm';
4
4
  import '@vitest/spy';
5
- import './chunks/index.CViWo__T.js';
5
+ import './chunks/index.PuMGMNHF.js';
6
6
  import 'chai';
7
7
  import 'node:async_hooks';
8
- import './chunks/setup-common.Hpq30zVk.js';
8
+ import './chunks/setup-common.eQsbxe88.js';
9
9
  import './chunks/coverage.CTzCuANN.js';
10
10
  import '@vitest/utils/timers';
11
11
  import './chunks/utils.BX5Fg8C4.js';
@@ -15,7 +15,7 @@ import './chunks/rpc.DFRWVnRh.js';
15
15
  import 'pathe';
16
16
  import 'vite/module-runner';
17
17
  import './chunks/index.Chj8NDwU.js';
18
- import './chunks/index.D_7-4CaB.js';
18
+ import './chunks/index.ukHtlBbI.js';
19
19
  import '@vitest/runner';
20
20
  import '@vitest/utils/helpers';
21
21
  import '@vitest/utils/offset';
@@ -1,11 +1,11 @@
1
- import { r as runBaseTests, s as setupBaseEnvironment } from '../chunks/base.Opc_YHkk.js';
2
- import { w as workerInit } from '../chunks/init-forks.DMge3WTt.js';
1
+ import { r as runBaseTests, s as setupBaseEnvironment } from '../chunks/base.Bay6B1Dz.js';
2
+ import { w as workerInit } from '../chunks/init-forks.OoZmDo1g.js';
3
3
  import 'node:vm';
4
4
  import '@vitest/spy';
5
- import '../chunks/index.CViWo__T.js';
5
+ import '../chunks/index.PuMGMNHF.js';
6
6
  import 'chai';
7
7
  import 'node:async_hooks';
8
- import '../chunks/setup-common.Hpq30zVk.js';
8
+ import '../chunks/setup-common.eQsbxe88.js';
9
9
  import '../chunks/coverage.CTzCuANN.js';
10
10
  import '@vitest/utils/timers';
11
11
  import '../chunks/utils.BX5Fg8C4.js';
@@ -15,7 +15,7 @@ import '../chunks/rpc.DFRWVnRh.js';
15
15
  import 'pathe';
16
16
  import 'vite/module-runner';
17
17
  import '../chunks/index.Chj8NDwU.js';
18
- import '../chunks/index.D_7-4CaB.js';
18
+ import '../chunks/index.ukHtlBbI.js';
19
19
  import '@vitest/runner';
20
20
  import '@vitest/utils/helpers';
21
21
  import '@vitest/utils/offset';
@@ -27,7 +27,7 @@ import '@vitest/utils/diff';
27
27
  import '@vitest/utils/display';
28
28
  import 'tinyrainbow';
29
29
  import 'expect-type';
30
- import '../chunks/init.BVd7SaCA.js';
30
+ import '../chunks/init.YjNsCb-_.js';
31
31
  import 'node:fs';
32
32
  import 'node:module';
33
33
  import 'node:url';
@@ -5,9 +5,9 @@ import timersPromises from 'node:timers/promises';
5
5
  import util from 'node:util';
6
6
  import { startTests, collectTests } from '@vitest/runner';
7
7
  import { KNOWN_ASSET_TYPES } from '@vitest/utils/constants';
8
- import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks } from '../chunks/index.CViWo__T.js';
9
- import { s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker } from '../chunks/setup-common.Hpq30zVk.js';
10
- import { i as index, g as globalExpect } from '../chunks/index.D_7-4CaB.js';
8
+ import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks } from '../chunks/index.PuMGMNHF.js';
9
+ import { s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker } from '../chunks/setup-common.eQsbxe88.js';
10
+ import { i as index, g as globalExpect } from '../chunks/index.ukHtlBbI.js';
11
11
  import { c as closeInspector } from '../chunks/inspector.CvyFGlXm.js';
12
12
  import { g as getWorkerState } from '../chunks/utils.BX5Fg8C4.js';
13
13
  import 'chai';
@@ -1,11 +1,11 @@
1
- import { s as setupBaseEnvironment, r as runBaseTests } from '../chunks/base.Opc_YHkk.js';
2
- import { w as workerInit } from '../chunks/init-threads.eIoyCTon.js';
1
+ import { s as setupBaseEnvironment, r as runBaseTests } from '../chunks/base.Bay6B1Dz.js';
2
+ import { w as workerInit } from '../chunks/init-threads.eSHAowcx.js';
3
3
  import 'node:vm';
4
4
  import '@vitest/spy';
5
- import '../chunks/index.CViWo__T.js';
5
+ import '../chunks/index.PuMGMNHF.js';
6
6
  import 'chai';
7
7
  import 'node:async_hooks';
8
- import '../chunks/setup-common.Hpq30zVk.js';
8
+ import '../chunks/setup-common.eQsbxe88.js';
9
9
  import '../chunks/coverage.CTzCuANN.js';
10
10
  import '@vitest/utils/timers';
11
11
  import '../chunks/utils.BX5Fg8C4.js';
@@ -15,7 +15,7 @@ import '../chunks/rpc.DFRWVnRh.js';
15
15
  import 'pathe';
16
16
  import 'vite/module-runner';
17
17
  import '../chunks/index.Chj8NDwU.js';
18
- import '../chunks/index.D_7-4CaB.js';
18
+ import '../chunks/index.ukHtlBbI.js';
19
19
  import '@vitest/runner';
20
20
  import '@vitest/utils/helpers';
21
21
  import '@vitest/utils/offset';
@@ -27,7 +27,7 @@ import '@vitest/utils/diff';
27
27
  import '@vitest/utils/display';
28
28
  import 'tinyrainbow';
29
29
  import 'expect-type';
30
- import '../chunks/init.BVd7SaCA.js';
30
+ import '../chunks/init.YjNsCb-_.js';
31
31
  import 'node:fs';
32
32
  import 'node:module';
33
33
  import 'node:url';
@@ -1,6 +1,6 @@
1
- import { w as workerInit } from '../chunks/init-forks.DMge3WTt.js';
2
- import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.2okbRRME.js';
3
- import '../chunks/init.BVd7SaCA.js';
1
+ import { w as workerInit } from '../chunks/init-forks.OoZmDo1g.js';
2
+ import { r as runVmTests, s as setupVmWorker } from '../chunks/vm.BE_VOfSs.js';
3
+ import '../chunks/init.YjNsCb-_.js';
4
4
  import 'node:fs';
5
5
  import 'node:module';
6
6
  import 'node:url';
@@ -1,7 +1,7 @@
1
- import { w as workerInit } from '../chunks/init-threads.eIoyCTon.js';
2
- import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.2okbRRME.js';
1
+ import { w as workerInit } from '../chunks/init-threads.eSHAowcx.js';
2
+ import { s as setupVmWorker, r as runVmTests } from '../chunks/vm.BE_VOfSs.js';
3
3
  import 'node:worker_threads';
4
- import '../chunks/init.BVd7SaCA.js';
4
+ import '../chunks/init.YjNsCb-_.js';
5
5
  import 'node:fs';
6
6
  import 'node:module';
7
7
  import 'node:url';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.2",
4
+ "version": "5.0.0-beta.3",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -107,21 +107,21 @@
107
107
  "dist"
108
108
  ],
109
109
  "engines": {
110
- "node": "^20.0.0 || ^22.0.0 || >=24.0.0"
110
+ "node": "^22.12.0 || ^24.0.0 || >=26.0.0"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "@edge-runtime/vm": "*",
114
114
  "@opentelemetry/api": "^1.9.0",
115
- "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
115
+ "@types/node": "^22.0.0 || >=24.0.0",
116
116
  "happy-dom": "*",
117
117
  "jsdom": "*",
118
- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
119
- "@vitest/browser-playwright": "5.0.0-beta.2",
120
- "@vitest/browser-preview": "5.0.0-beta.2",
121
- "@vitest/coverage-istanbul": "5.0.0-beta.2",
122
- "@vitest/ui": "5.0.0-beta.2",
123
- "@vitest/coverage-v8": "5.0.0-beta.2",
124
- "@vitest/browser-webdriverio": "5.0.0-beta.2"
118
+ "vite": "^6.4.0 || ^7.0.0 || ^8.0.0",
119
+ "@vitest/browser-playwright": "5.0.0-beta.3",
120
+ "@vitest/browser-webdriverio": "5.0.0-beta.3",
121
+ "@vitest/browser-preview": "5.0.0-beta.3",
122
+ "@vitest/coverage-istanbul": "5.0.0-beta.3",
123
+ "@vitest/coverage-v8": "5.0.0-beta.3",
124
+ "@vitest/ui": "5.0.0-beta.3"
125
125
  },
126
126
  "peerDependenciesMeta": {
127
127
  "@edge-runtime/vm": {
@@ -175,13 +175,12 @@
175
175
  "tinyexec": "^1.0.2",
176
176
  "tinyglobby": "^0.2.15",
177
177
  "tinyrainbow": "^3.1.0",
178
- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
179
178
  "why-is-node-running": "^2.3.0",
180
- "@vitest/mocker": "5.0.0-beta.2",
181
- "@vitest/pretty-format": "5.0.0-beta.2",
182
- "@vitest/spy": "5.0.0-beta.2",
183
- "@vitest/utils": "5.0.0-beta.2",
184
- "@vitest/runner": "5.0.0-beta.2"
179
+ "@vitest/pretty-format": "5.0.0-beta.3",
180
+ "@vitest/utils": "5.0.0-beta.3",
181
+ "@vitest/spy": "5.0.0-beta.3",
182
+ "@vitest/mocker": "5.0.0-beta.3",
183
+ "@vitest/runner": "5.0.0-beta.3"
185
184
  },
186
185
  "devDependencies": {
187
186
  "@antfu/install-pkg": "^1.1.0",
@@ -189,7 +188,7 @@
189
188
  "@edge-runtime/vm": "^5.0.0",
190
189
  "@jridgewell/trace-mapping": "0.3.31",
191
190
  "@opentelemetry/api": "^1.9.0",
192
- "@sinonjs/fake-timers": "15.0.0",
191
+ "@sinonjs/fake-timers": "15.3.2",
193
192
  "@types/estree": "^1.0.8",
194
193
  "@types/istanbul-lib-coverage": "^2.0.6",
195
194
  "@types/istanbul-reports": "^3.0.4",
@@ -197,7 +196,6 @@
197
196
  "@types/node": "^24.12.0",
198
197
  "@types/picomatch": "^4.0.2",
199
198
  "@types/prompts": "^2.4.9",
200
- "@types/sinonjs__fake-timers": "^15.0.1",
201
199
  "acorn": "8.11.3",
202
200
  "acorn-walk": "^8.3.5",
203
201
  "birpc": "^4.0.0",
@@ -211,9 +209,10 @@
211
209
  "prompts": "^2.4.2",
212
210
  "strip-literal": "^3.1.0",
213
211
  "tinyhighlight": "^0.3.2",
212
+ "vite": "^6.4.0 || ^7.0.0 || ^8.0.0",
214
213
  "ws": "^8.19.0",
215
- "@vitest/expect": "5.0.0-beta.2",
216
- "@vitest/snapshot": "5.0.0-beta.2"
214
+ "@vitest/expect": "5.0.0-beta.3",
215
+ "@vitest/snapshot": "5.0.0-beta.3"
217
216
  },
218
217
  "scripts": {
219
218
  "build": "premove dist && rollup -c",