vitest 2.2.0-beta.2 → 3.0.0-beta.1
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/LICENSE.md +75 -0
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +1 -1
- package/dist/chunks/{RandomSequencer.BPedXEug.js → RandomSequencer.gisBJ77r.js} +11 -4
- package/dist/chunks/{base.BS0HhLXd.js → base.CkcgFVQd.js} +8 -3
- package/dist/chunks/{cac.Cs06pOqp.js → cac.CWCZimpS.js} +7 -7
- package/dist/chunks/{cli-api.CB-jIbYQ.js → cli-api.BKUOv0Nc.js} +186 -83
- package/dist/chunks/{config.CPguQ7J1.d.ts → config.BTPBhmK5.d.ts} +1 -1
- package/dist/chunks/{creator.IIqd8RWT.js → creator.DcAcUhMD.js} +1 -4
- package/dist/chunks/{globals.BCGEw6ON.js → globals.DJTzb7B3.js} +2 -2
- package/dist/chunks/{index.DD5eTY2y.js → index.BqHViJW9.js} +1 -1
- package/dist/chunks/{index.BjjsHdBb.js → index.CkOJwybT.js} +1 -1
- package/dist/chunks/{index.bzFpKeaq.js → index.DKe7vK-G.js} +530 -144
- package/dist/chunks/{index.CqYx2Nsr.js → index.DQboAxJm.js} +23 -14
- package/dist/chunks/{inspector.70d6emsh.js → inspector.DKLceBVD.js} +1 -1
- package/dist/chunks/{reporters.F9D2idOT.d.ts → reporters.BZbwTvrM.d.ts} +249 -258
- package/dist/chunks/{resolveConfig.CLnvCvEs.js → resolveConfig.3rGGWga5.js} +81 -49
- package/dist/chunks/{runBaseTests.B7hcVT-s.js → runBaseTests.C6huCAng.js} +6 -6
- package/dist/chunks/{setup-common.BfGt8K-K.js → setup-common.B5ClyS48.js} +1 -1
- package/dist/chunks/{utils.DJONn5B5.js → utils.CMUTX-p8.js} +5 -2
- package/dist/chunks/{vi.BlPttogV.js → vi.CZKezqeD.js} +18 -13
- package/dist/chunks/{vite.DonA4fvH.d.ts → vite.DIfmneq0.d.ts} +1 -1
- package/dist/chunks/{vm.Zr4qWzDJ.js → vm.DGhTouO3.js} +10 -1
- package/dist/chunks/{worker.9VY11NZs.d.ts → worker.CmzGeuVD.d.ts} +3 -3
- package/dist/chunks/{worker.Qz1UB4Fv.d.ts → worker.umPNbBNk.d.ts} +1 -1
- package/dist/cli.js +1 -1
- package/dist/config.cjs +1 -10
- package/dist/config.d.ts +4 -5
- package/dist/config.js +1 -10
- package/dist/coverage.d.ts +2 -2
- package/dist/coverage.js +4 -4
- package/dist/execute.d.ts +3 -3
- package/dist/index.d.ts +21 -13
- package/dist/index.js +2 -2
- package/dist/node.d.ts +9 -22
- package/dist/node.js +9 -9
- package/dist/reporters.d.ts +2 -2
- package/dist/reporters.js +5 -4
- package/dist/runners.d.ts +1 -2
- package/dist/runners.js +9 -14
- package/dist/worker.js +1 -1
- package/dist/workers/forks.js +1 -1
- package/dist/workers/runVmTests.js +6 -6
- package/dist/workers/threads.js +1 -1
- package/dist/workers/vmForks.js +1 -1
- package/dist/workers/vmThreads.js +1 -1
- package/dist/workers.d.ts +3 -3
- package/dist/workers.js +3 -3
- package/package.json +21 -22
package/dist/coverage.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { existsSync, promises, readdirSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.
|
|
2
|
+
import { c as coverageConfigDefaults, r as resolveCoverageReporters, m as mm } from './chunks/resolveConfig.3rGGWga5.js';
|
|
3
3
|
import { resolve, relative } from 'pathe';
|
|
4
4
|
import c from 'tinyrainbow';
|
|
5
5
|
import '@vitest/utils';
|
|
6
|
-
import 'node:path';
|
|
7
6
|
import 'node:fs/promises';
|
|
8
|
-
import 'node:process';
|
|
9
7
|
import 'node:module';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:process';
|
|
10
10
|
import 'node:url';
|
|
11
11
|
import 'node:assert';
|
|
12
12
|
import 'node:v8';
|
|
13
13
|
import 'node:util';
|
|
14
14
|
import './chunks/constants.fzPh7AOq.js';
|
|
15
15
|
import 'node:os';
|
|
16
|
-
import './chunks/RandomSequencer.
|
|
16
|
+
import './chunks/RandomSequencer.gisBJ77r.js';
|
|
17
17
|
import 'std-env';
|
|
18
18
|
import 'node:perf_hooks';
|
|
19
19
|
import '@vitest/runner/utils';
|
package/dist/execute.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ViteNodeRunnerOptions } from 'vite-node';
|
|
2
2
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
3
|
-
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
3
|
+
import { R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.CmzGeuVD.js';
|
|
4
4
|
import vm from 'node:vm';
|
|
5
5
|
import * as _vitest_mocker from '@vitest/mocker';
|
|
6
6
|
import { MockedModuleType } from '@vitest/mocker';
|
|
7
7
|
import { P as PendingSuiteMock, b as MockFactory, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
8
8
|
import '@vitest/runner';
|
|
9
|
-
import './chunks/config.
|
|
9
|
+
import './chunks/config.BTPBhmK5.js';
|
|
10
10
|
import '@vitest/pretty-format';
|
|
11
11
|
import '@vitest/snapshot';
|
|
12
12
|
import '@vitest/snapshot/environment';
|
|
@@ -18,7 +18,7 @@ declare class FileMap {
|
|
|
18
18
|
private fsBufferCache;
|
|
19
19
|
readFileAsync(path: string): Promise<string>;
|
|
20
20
|
readFile(path: string): string;
|
|
21
|
-
readBuffer(path: string): Buffer
|
|
21
|
+
readBuffer(path: string): Buffer<ArrayBufferLike>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
interface ModuleEvaluateOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TaskResultPack as TaskResultPack$1, File as File$1, TaskPopulated, Suite as Suite$1, Test as Test$1, Custom as Custom$1, Task as Task$1, TaskBase as TaskBase$1, TaskResult as TaskResult$1, DoneCallback as DoneCallback$1, RuntimeContext as RuntimeContext$1, SuiteHooks as SuiteHooks$1, SequenceHooks as SequenceHooks$1, SequenceSetupFiles as SequenceSetupFiles$1 } from '@vitest/runner';
|
|
2
2
|
export { CancelReason, ExtendedContext, HookCleanupCallback, HookListener, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Custom as RunnerCustomCase, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskContext, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
3
|
-
import { g as VitestEnvironment$1, S as SerializedTestSpecification, h as RawErrsMap$1, i as TscErrorInfo$1, j as CollectLineNumbers$1, k as CollectLines$1, l as RootAndTarget$1, m as Context$1, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, n as CoverageReporter$1, o as CoverageProviderName, p as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, q as CoverageIstanbulOptions$1, d as CoverageV8Options$1, r as CustomProviderOptions$1, s as Reporter$1, V as Vitest$1, t as BrowserScript$1, u as BrowserConfigOptions$1, v as BuiltinEnvironment$1, P as Pool$1, w as PoolOptions$1, x as CSSModuleScopeStrategy$1, A as ApiConfig$1, y as VitestRunMode$1, D as DepsOptimizationOptions$1, z as TransformModePatterns$1, I as InlineConfig$1, E as TypecheckConfig$1, F as UserConfig$1, G as ResolvedConfig$1, H as ProjectConfig$1, U as UserWorkspaceConfig$1, J as BenchmarkUserOptions$1 } from './chunks/reporters.
|
|
4
|
-
import { W as WorkerContext$1 } from './chunks/worker.
|
|
3
|
+
import { g as VitestEnvironment$1, S as SerializedTestSpecification, h as RawErrsMap$1, i as TscErrorInfo$1, j as CollectLineNumbers$1, k as CollectLines$1, l as RootAndTarget$1, m as Context$1, b as CoverageProvider$1, a as ReportContext$1, c as CoverageProviderModule$1, n as CoverageReporter$1, o as CoverageProviderName, p as CoverageOptions$1, R as ResolvedCoverageOptions$1, B as BaseCoverageOptions$1, q as CoverageIstanbulOptions$1, d as CoverageV8Options$1, r as CustomProviderOptions$1, s as Reporter$1, V as Vitest$1, t as BrowserScript$1, u as BrowserConfigOptions$1, v as BuiltinEnvironment$1, P as Pool$1, w as PoolOptions$1, x as CSSModuleScopeStrategy$1, A as ApiConfig$1, y as VitestRunMode$1, D as DepsOptimizationOptions$1, z as TransformModePatterns$1, I as InlineConfig$1, E as TypecheckConfig$1, F as UserConfig$1, G as ResolvedConfig$1, H as ProjectConfig$1, U as UserWorkspaceConfig$1, J as BenchmarkUserOptions$1 } from './chunks/reporters.BZbwTvrM.js';
|
|
4
|
+
import { W as WorkerContext$1 } from './chunks/worker.umPNbBNk.js';
|
|
5
5
|
import { U as UserConsoleLog, M as ModuleGraphData, b as Awaitable$1, P as ProvidedContext, N as Nullable$1, c as Arrayable$1, d as ArgumentsType$1, e as MutableArray$1, C as Constructable$1, O as OnServerRestartHandler$1, a as EnvironmentReturn$1, V as VmEnvironmentReturn$1, E as Environment$1, R as ResolvedTestEnvironment$1, J as JSDOMOptions$1, H as HappyDOMOptions$1, f as EnvironmentOptions$1 } from './chunks/environment.CT0jpO-1.js';
|
|
6
6
|
export { A as AfterSuiteRunMeta, g as ModuleCache } from './chunks/environment.CT0jpO-1.js';
|
|
7
|
-
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.
|
|
8
|
-
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.
|
|
9
|
-
import './chunks/vite.
|
|
7
|
+
import { a as BirpcReturn, b as WorkerRPC$1 } from './chunks/worker.CmzGeuVD.js';
|
|
8
|
+
export { C as ContextRPC, d as ContextTestEnvironment, e as ResolveIdFunction, c as RunnerRPC, R as RuntimeRPC, W as WorkerGlobalState } from './chunks/worker.CmzGeuVD.js';
|
|
9
|
+
import './chunks/vite.DIfmneq0.js';
|
|
10
10
|
import { PromisifyAssertion, Tester, ExpectStatic } from '@vitest/expect';
|
|
11
11
|
export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion } from '@vitest/expect';
|
|
12
12
|
import { Plugin } from '@vitest/pretty-format';
|
|
@@ -14,8 +14,8 @@ import { SnapshotState } from '@vitest/snapshot';
|
|
|
14
14
|
export { SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotSerializer, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, UncheckedSnapshot } from '@vitest/snapshot';
|
|
15
15
|
import { B as BenchmarkResult } from './chunks/benchmark.CFFwLv-O.js';
|
|
16
16
|
export { a as BenchFunction, b as Benchmark, c as BenchmarkAPI } from './chunks/benchmark.CFFwLv-O.js';
|
|
17
|
-
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.
|
|
18
|
-
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.
|
|
17
|
+
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.BTPBhmK5.js';
|
|
18
|
+
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.BTPBhmK5.js';
|
|
19
19
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
20
20
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
21
21
|
import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.cRtM890J.js';
|
|
@@ -504,19 +504,27 @@ interface VitestUtils {
|
|
|
504
504
|
*/
|
|
505
505
|
isMockFunction: (fn: any) => fn is MockInstance;
|
|
506
506
|
/**
|
|
507
|
-
* Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function.
|
|
507
|
+
* Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function.
|
|
508
508
|
*
|
|
509
|
-
*
|
|
509
|
+
* This will only empty `.mock` state, it will not affect mock implementations.
|
|
510
|
+
*
|
|
511
|
+
* This is useful if you need to clean up mocks between different assertions within a test.
|
|
510
512
|
*/
|
|
511
513
|
clearAllMocks: () => VitestUtils;
|
|
512
514
|
/**
|
|
513
|
-
* Calls [`.mockReset()`](https://vitest.dev/api/mock#mockreset) on every mocked function.
|
|
515
|
+
* Calls [`.mockReset()`](https://vitest.dev/api/mock#mockreset) on every mocked function.
|
|
516
|
+
*
|
|
517
|
+
* This will empty `.mock` state, reset "once" implementations, and reset each mock's base implementation to its original.
|
|
514
518
|
*
|
|
515
|
-
* This is useful when you want to
|
|
519
|
+
* This is useful when you want to reset all mocks to their original states.
|
|
516
520
|
*/
|
|
517
521
|
resetAllMocks: () => VitestUtils;
|
|
518
522
|
/**
|
|
519
|
-
* Calls [`.mockRestore()`](https://vitest.dev/api/mock#mockrestore) on every mocked function.
|
|
523
|
+
* Calls [`.mockRestore()`](https://vitest.dev/api/mock#mockrestore) on every mocked function.
|
|
524
|
+
*
|
|
525
|
+
* This will empty `.mock` state, restore all original mock implementations, and restore original descriptors of spied-on objects.
|
|
526
|
+
*
|
|
527
|
+
* This is useful for inter-test cleanup and/or removing mocks created by [`vi.spyOn(...)`](https://vitest.dev/api/vi#vi-spyon).
|
|
520
528
|
*/
|
|
521
529
|
restoreAllMocks: () => VitestUtils;
|
|
522
530
|
/**
|
|
@@ -591,7 +599,7 @@ type Suite = Suite$1;
|
|
|
591
599
|
type File = File$1;
|
|
592
600
|
/** @deprecated use `RunnerTestCase` instead */
|
|
593
601
|
type Test = Test$1;
|
|
594
|
-
/** @deprecated use `
|
|
602
|
+
/** @deprecated do not use `Custom`, use `RunnerTestCase` instead */
|
|
595
603
|
type Custom = Custom$1;
|
|
596
604
|
/** @deprecated use `RunnerTask` instead */
|
|
597
605
|
type Task = Task$1;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.
|
|
1
|
+
export { c as createExpect, a as expect, i as inject, v as vi, b as vitest } from './chunks/vi.CZKezqeD.js';
|
|
2
2
|
export { i as isFirstRun, a as runOnce } from './chunks/run-once.2ogXb3JV.js';
|
|
3
|
-
export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.
|
|
3
|
+
export { a as assertType, g as getRunningMode, i as isWatchMode } from './chunks/index.BqHViJW9.js';
|
|
4
4
|
export { b as bench } from './chunks/benchmark.Cdu9hjj4.js';
|
|
5
5
|
export { expectTypeOf } from 'expect-type';
|
|
6
6
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { y as VitestRunMode, K as VitestOptions, V as Vitest, F as UserConfig$1, A as ApiConfig, L as Logger, G as ResolvedConfig$1, M as TestProject, N as TestSequencer, O as WorkspaceSpec, Q as TestModule, X as ModuleDiagnostic } from './chunks/reporters.
|
|
2
|
-
export { B as BaseCoverageOptions, J as BenchmarkUserOptions, ae as BrowserBuiltinProvider, af as BrowserCommand, ag as BrowserCommandContext, u as BrowserConfigOptions, ah as BrowserOrchestrator, ai as BrowserProvider, aj as BrowserProviderInitializationOptions, ak as BrowserProviderModule, al as BrowserProviderOptions, t as BrowserScript, am as BrowserServer, an as BrowserServerState, ao as BrowserServerStateContext, v as BuiltinEnvironment, ap as CDPSession, x as CSSModuleScopeStrategy, q as CoverageIstanbulOptions, p as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, n as CoverageReporter, d as CoverageV8Options, r as CustomProviderOptions, D as DepsOptimizationOptions, a0 as HTMLOptions, I as InlineConfig, a2 as JUnitOptions, a1 as JsonOptions, P as Pool, w as PoolOptions, Z as ProcessPool, H as ProjectConfig, a as ReportContext, as as ResolveSnapshotPathHandler, at as ResolveSnapshotPathHandlerContext, aq as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ar as ResolvedProjectConfig, $ as SerializedTestProject, a5 as TaskOptions, a3 as TestCase, a6 as TestCollection, a7 as TestDiagnostic, a8 as TestResult, a9 as TestResultFailed, aa as TestResultPassed, ab as TestResultSkipped, ac as TestSequencerConstructor, ad as TestSpecification, a4 as TestSuite, z as TransformModePatterns, j as TypeCheckCollectLineNumbers, k as TypeCheckCollectLines, m as TypeCheckContext, i as TypeCheckErrorInfo, h as TypeCheckRawErrorsMap, l as TypeCheckRootAndTarget, E as TypecheckConfig, U as UserWorkspaceConfig, g as VitestEnvironment, Y as VitestPackageInstaller, _ as getFilePoolName } from './chunks/reporters.
|
|
1
|
+
import { y as VitestRunMode, K as VitestOptions, V as Vitest, F as UserConfig$1, A as ApiConfig, L as Logger, G as ResolvedConfig$1, M as TestProject, N as TestSequencer, O as WorkspaceSpec, Q as TestModule, X as ModuleDiagnostic } from './chunks/reporters.BZbwTvrM.js';
|
|
2
|
+
export { B as BaseCoverageOptions, J as BenchmarkUserOptions, ae as BrowserBuiltinProvider, af as BrowserCommand, ag as BrowserCommandContext, u as BrowserConfigOptions, ah as BrowserOrchestrator, ai as BrowserProvider, aj as BrowserProviderInitializationOptions, ak as BrowserProviderModule, al as BrowserProviderOptions, t as BrowserScript, am as BrowserServer, an as BrowserServerState, ao as BrowserServerStateContext, v as BuiltinEnvironment, ap as CDPSession, x as CSSModuleScopeStrategy, q as CoverageIstanbulOptions, p as CoverageOptions, b as CoverageProvider, c as CoverageProviderModule, n as CoverageReporter, d as CoverageV8Options, r as CustomProviderOptions, D as DepsOptimizationOptions, a0 as HTMLOptions, I as InlineConfig, a2 as JUnitOptions, a1 as JsonOptions, P as Pool, w as PoolOptions, Z as ProcessPool, H as ProjectConfig, a as ReportContext, as as ResolveSnapshotPathHandler, at as ResolveSnapshotPathHandlerContext, aq as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ar as ResolvedProjectConfig, $ as SerializedTestProject, a5 as TaskOptions, a3 as TestCase, a6 as TestCollection, a7 as TestDiagnostic, a8 as TestResult, a9 as TestResultFailed, aa as TestResultPassed, ab as TestResultSkipped, ac as TestSequencerConstructor, ad as TestSpecification, a4 as TestSuite, z as TransformModePatterns, j as TypeCheckCollectLineNumbers, k as TypeCheckCollectLines, m as TypeCheckContext, i as TypeCheckErrorInfo, h as TypeCheckRawErrorsMap, l as TypeCheckRootAndTarget, E as TypecheckConfig, U as UserWorkspaceConfig, g as VitestEnvironment, Y as VitestPackageInstaller, _ as getFilePoolName } from './chunks/reporters.BZbwTvrM.js';
|
|
3
3
|
import { UserConfig, ResolvedConfig, Plugin, LogLevel, LoggerOptions, Logger as Logger$1, createServer as createServer$1 } from 'vite';
|
|
4
4
|
import * as vite from 'vite';
|
|
5
5
|
export { vite as Vite };
|
|
6
6
|
export { isFileServingAllowed, parseAst, parseAstAsync } from 'vite';
|
|
7
|
-
import {
|
|
8
|
-
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions, O as OnServerRestartHandler } from './chunks/environment.CT0jpO-1.js';
|
|
9
|
-
import { R as RuntimeRPC } from './chunks/worker.9VY11NZs.js';
|
|
7
|
+
import { R as RuntimeRPC } from './chunks/worker.CmzGeuVD.js';
|
|
10
8
|
import { Writable } from 'node:stream';
|
|
11
|
-
export { W as WorkerContext } from './chunks/worker.
|
|
9
|
+
export { W as WorkerContext } from './chunks/worker.umPNbBNk.js';
|
|
10
|
+
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions, O as OnServerRestartHandler, h as OnTestsRerunHandler } from './chunks/environment.CT0jpO-1.js';
|
|
12
11
|
import createDebug from 'debug';
|
|
13
|
-
export { b as RuntimeConfig } from './chunks/config.
|
|
12
|
+
export { b as RuntimeConfig } from './chunks/config.BTPBhmK5.js';
|
|
14
13
|
export { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
15
14
|
import '@vitest/utils';
|
|
16
15
|
import 'vite-node';
|
|
@@ -76,20 +75,8 @@ declare class GitNotFoundError extends Error {
|
|
|
76
75
|
constructor();
|
|
77
76
|
}
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
* Config of the current project.
|
|
82
|
-
*/
|
|
83
|
-
config: ResolvedConfig$1;
|
|
84
|
-
/**
|
|
85
|
-
* Provide a value to the test context. This value will be available to all tests via `inject`.
|
|
86
|
-
*/
|
|
87
|
-
provide: <T extends keyof ProvidedContext & string>(key: T, value: ProvidedContext[T]) => void;
|
|
88
|
-
/**
|
|
89
|
-
* Register a function that will be called before tests run again in watch mode.
|
|
90
|
-
*/
|
|
91
|
-
onTestsRerun: (cb: OnTestsRerunHandler) => void;
|
|
92
|
-
}
|
|
78
|
+
/** @deprecated use `TestProject` instead */
|
|
79
|
+
type GlobalSetupContext = TestProject;
|
|
93
80
|
|
|
94
81
|
declare function VitestPlugin(options?: UserConfig$1, ctx?: Vitest): Promise<Plugin[]>;
|
|
95
82
|
|
|
@@ -130,4 +117,4 @@ declare const TestFile: typeof TestModule;
|
|
|
130
117
|
*/
|
|
131
118
|
type FileDiagnostic = ModuleDiagnostic;
|
|
132
119
|
|
|
133
|
-
export { ApiConfig, BaseSequencer, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic,
|
|
120
|
+
export { ApiConfig, BaseSequencer, type FileDiagnostic, GitNotFoundError, type GlobalSetupContext, ModuleDiagnostic, ResolvedConfig$1 as ResolvedConfig, TestFile, TestModule, TestProject, TestSequencer, FilesNotFoundError as TestsNotFoundError, UserConfig$1 as UserConfig, Vitest, VitestPlugin, VitestRunMode, TestProject as WorkspaceProject, WorkspaceSpec, createDebugger, createMethodsRPC, createServer, createViteLogger, createViteServer, createVitest, distDir, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rootDir, startVitest };
|
package/dist/node.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { createServer as createServer$1 } from 'vite';
|
|
2
2
|
export { isFileServingAllowed, parseAst, parseAstAsync } from 'vite';
|
|
3
|
-
import { f as TestModule } from './chunks/index.
|
|
4
|
-
export { e as TestCase, g as TestSuite } from './chunks/index.
|
|
5
|
-
export { p as parseCLI } from './chunks/cac.
|
|
6
|
-
export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
7
|
-
export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.
|
|
8
|
-
export { B as BaseSequencer } from './chunks/RandomSequencer.
|
|
3
|
+
import { f as TestModule } from './chunks/index.DKe7vK-G.js';
|
|
4
|
+
export { e as TestCase, g as TestSuite } from './chunks/index.DKe7vK-G.js';
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.CWCZimpS.js';
|
|
6
|
+
export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.BKUOv0Nc.js';
|
|
7
|
+
export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.3rGGWga5.js';
|
|
8
|
+
export { B as BaseSequencer } from './chunks/RandomSequencer.gisBJ77r.js';
|
|
9
9
|
export { distDir, rootDir } from './path.js';
|
|
10
10
|
import createDebug from 'debug';
|
|
11
11
|
import 'node:fs';
|
|
12
12
|
import '@vitest/runner/utils';
|
|
13
13
|
import 'pathe';
|
|
14
14
|
import 'tinyrainbow';
|
|
15
|
-
import './chunks/utils.
|
|
15
|
+
import './chunks/utils.CMUTX-p8.js';
|
|
16
16
|
import 'node:util';
|
|
17
17
|
import '@vitest/utils';
|
|
18
18
|
import 'node:perf_hooks';
|
|
19
19
|
import '@vitest/utils/source-map';
|
|
20
20
|
import 'std-env';
|
|
21
21
|
import 'node:fs/promises';
|
|
22
|
-
import 'restore-cursor';
|
|
23
22
|
import 'node:stream';
|
|
24
23
|
import 'node:console';
|
|
25
24
|
import 'node:process';
|
|
26
25
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
26
|
+
import 'assert';
|
|
27
|
+
import 'events';
|
|
27
28
|
import 'node:module';
|
|
28
29
|
import 'node:os';
|
|
29
|
-
import 'events';
|
|
30
30
|
import './chunks/constants.fzPh7AOq.js';
|
|
31
31
|
import './chunks/coverage.BoMDb1ip.js';
|
|
32
32
|
import 'node:path';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aE as BaseReporter, au as BasicReporter, aO as BenchmarkBuiltinReporters, aN as BenchmarkReportsMap, aJ as BuiltinReporterOptions, aI as BuiltinReporters, av as DefaultReporter, aw as DotReporter, aG as FileDiagnostic, ax as GithubActionsReporter, ay as HangingProcessReporter, aA as JUnitReporter, aK as JsonAssertionResult, az as JsonReporter, aL as JsonTestResult, aM as JsonTestResults, s as Reporter, aH as ReportersMap, aB as TapFlatReporter, aC as TapReporter, a5 as TaskOptions, a3 as TestCase, a6 as TestCollection, a7 as TestDiagnostic, aF as TestFile, Q as TestModule, M as TestProject, a8 as TestResult, a9 as TestResultFailed, aa as TestResultPassed, ab as TestResultSkipped, a4 as TestSuite, aD as VerboseReporter } from './chunks/reporters.
|
|
1
|
+
export { aE as BaseReporter, au as BasicReporter, aO as BenchmarkBuiltinReporters, aN as BenchmarkReportsMap, aJ as BuiltinReporterOptions, aI as BuiltinReporters, av as DefaultReporter, aw as DotReporter, aG as FileDiagnostic, ax as GithubActionsReporter, ay as HangingProcessReporter, aA as JUnitReporter, aK as JsonAssertionResult, az as JsonReporter, aL as JsonTestResult, aM as JsonTestResults, s as Reporter, aH as ReportersMap, aB as TapFlatReporter, aC as TapReporter, a5 as TaskOptions, a3 as TestCase, a6 as TestCollection, a7 as TestDiagnostic, aF as TestFile, Q as TestModule, M as TestProject, a8 as TestResult, a9 as TestResultFailed, aa as TestResultPassed, ab as TestResultSkipped, a4 as TestSuite, aD as VerboseReporter } from './chunks/reporters.BZbwTvrM.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import './chunks/environment.CT0jpO-1.js';
|
|
4
4
|
import 'node:stream';
|
|
@@ -6,7 +6,7 @@ import 'vite';
|
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import 'vite-node';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
9
|
-
import './chunks/config.
|
|
9
|
+
import './chunks/config.BTPBhmK5.js';
|
|
10
10
|
import '@vitest/pretty-format';
|
|
11
11
|
import '@vitest/snapshot';
|
|
12
12
|
import '@vitest/snapshot/environment';
|
package/dist/reporters.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { B as BasicReporter, h as BenchmarkReportsMap, D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.
|
|
1
|
+
export { B as BasicReporter, h as BenchmarkReportsMap, D as DefaultReporter, a as DotReporter, G as GithubActionsReporter, H as HangingProcessReporter, b as JUnitReporter, J as JsonReporter, R as ReportersMap, T as TapFlatReporter, c as TapReporter, e as TestCase, d as TestFile, f as TestModule, g as TestSuite, V as VerboseReporter } from './chunks/index.DKe7vK-G.js';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import '@vitest/runner/utils';
|
|
4
4
|
import 'pathe';
|
|
5
5
|
import 'tinyrainbow';
|
|
6
|
-
import './chunks/utils.
|
|
6
|
+
import './chunks/utils.CMUTX-p8.js';
|
|
7
7
|
import 'node:util';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import 'node:perf_hooks';
|
|
10
10
|
import '@vitest/utils/source-map';
|
|
11
|
-
import './chunks/RandomSequencer.
|
|
11
|
+
import './chunks/RandomSequencer.gisBJ77r.js';
|
|
12
12
|
import 'std-env';
|
|
13
13
|
import 'node:fs/promises';
|
|
14
14
|
import 'tinyexec';
|
|
@@ -20,8 +20,9 @@ import 'node:module';
|
|
|
20
20
|
import 'fs';
|
|
21
21
|
import 'vite-node/utils';
|
|
22
22
|
import 'node:crypto';
|
|
23
|
-
import 'restore-cursor';
|
|
24
23
|
import 'node:stream';
|
|
25
24
|
import 'node:console';
|
|
26
25
|
import 'node:process';
|
|
27
26
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
27
|
+
import 'assert';
|
|
28
|
+
import 'events';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TaskContext, ExtendedContext } from '@vitest/runner';
|
|
3
|
-
import { S as SerializedConfig } from './chunks/config.
|
|
3
|
+
import { S as SerializedConfig } from './chunks/config.BTPBhmK5.js';
|
|
4
4
|
import '@vitest/pretty-format';
|
|
5
5
|
import '@vitest/snapshot';
|
|
6
6
|
import '@vitest/snapshot/environment';
|
|
@@ -27,7 +27,6 @@ declare class VitestTestRunner implements VitestRunner {
|
|
|
27
27
|
constructor(config: SerializedConfig);
|
|
28
28
|
importFile(filepath: string, source: VitestRunnerImportSource): unknown;
|
|
29
29
|
onCollectStart(file: File): void;
|
|
30
|
-
onBeforeRunFiles(): void;
|
|
31
30
|
onAfterRunFiles(): void;
|
|
32
31
|
onAfterRunSuite(suite: Suite): Promise<void>;
|
|
33
32
|
onAfterRunTask(test: Task): void;
|
package/dist/runners.js
CHANGED
|
@@ -4,7 +4,7 @@ import { a as getBenchOptions, g as getBenchFn } from './chunks/benchmark.Cdu9hj
|
|
|
4
4
|
import { g as getWorkerState } from './chunks/utils.C8RiOc4B.js';
|
|
5
5
|
import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
|
|
6
6
|
import { getTests, getNames, getTestName } from '@vitest/runner/utils';
|
|
7
|
-
import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.
|
|
7
|
+
import { g as getSnapshotClient, i as inject, c as createExpect, v as vi } from './chunks/vi.CZKezqeD.js';
|
|
8
8
|
import { r as rpc } from './chunks/rpc.C3q9uwRX.js';
|
|
9
9
|
import 'chai';
|
|
10
10
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
@@ -168,10 +168,8 @@ class VitestTestRunner {
|
|
|
168
168
|
onCollectStart(file) {
|
|
169
169
|
this.workerState.current = file;
|
|
170
170
|
}
|
|
171
|
-
onBeforeRunFiles() {
|
|
172
|
-
this.snapshotClient.clear();
|
|
173
|
-
}
|
|
174
171
|
onAfterRunFiles() {
|
|
172
|
+
this.snapshotClient.clear();
|
|
175
173
|
this.workerState.current = void 0;
|
|
176
174
|
}
|
|
177
175
|
async onAfterRunSuite(suite) {
|
|
@@ -182,18 +180,15 @@ class VitestTestRunner {
|
|
|
182
180
|
for (const test of getTests(suite)) {
|
|
183
181
|
if (test.mode === "skip") {
|
|
184
182
|
const name = getNames(test).slice(1).join(" > ");
|
|
185
|
-
this.snapshotClient.
|
|
183
|
+
this.snapshotClient.skipTest(suite.file.filepath, name);
|
|
186
184
|
}
|
|
187
185
|
}
|
|
188
|
-
const result = await this.snapshotClient.
|
|
189
|
-
|
|
190
|
-
await rpc().snapshotSaved(result);
|
|
191
|
-
}
|
|
186
|
+
const result = await this.snapshotClient.finish(suite.file.filepath);
|
|
187
|
+
await rpc().snapshotSaved(result);
|
|
192
188
|
}
|
|
193
189
|
this.workerState.current = suite.suite || suite.file;
|
|
194
190
|
}
|
|
195
191
|
onAfterRunTask(test) {
|
|
196
|
-
this.snapshotClient.clearTest();
|
|
197
192
|
if (this.config.logHeapUsage && typeof process !== "undefined") {
|
|
198
193
|
test.result.heap = process.memoryUsage().heapUsed;
|
|
199
194
|
}
|
|
@@ -220,15 +215,15 @@ class VitestTestRunner {
|
|
|
220
215
|
suite.mode = "skip";
|
|
221
216
|
}
|
|
222
217
|
if (suite.mode !== "skip" && "filepath" in suite) {
|
|
223
|
-
await this.snapshotClient.
|
|
224
|
-
suite.filepath,
|
|
225
|
-
"__default_name_",
|
|
218
|
+
await this.snapshotClient.setup(
|
|
219
|
+
suite.file.filepath,
|
|
226
220
|
this.workerState.config.snapshotOptions
|
|
227
221
|
);
|
|
228
222
|
}
|
|
229
223
|
this.workerState.current = suite;
|
|
230
224
|
}
|
|
231
225
|
onBeforeTryTask(test) {
|
|
226
|
+
this.snapshotClient.clearTest(test.file.filepath, test.id);
|
|
232
227
|
setState(
|
|
233
228
|
{
|
|
234
229
|
assertionCalls: 0,
|
|
@@ -238,7 +233,7 @@ class VitestTestRunner {
|
|
|
238
233
|
expectedAssertionsNumberErrorGen: null,
|
|
239
234
|
testPath: test.file.filepath,
|
|
240
235
|
currentTestName: getTestName(test),
|
|
241
|
-
snapshotState: this.snapshotClient.
|
|
236
|
+
snapshotState: this.snapshotClient.getSnapshotState(test.file.filepath)
|
|
242
237
|
},
|
|
243
238
|
globalThis[GLOBAL_EXPECT]
|
|
244
239
|
);
|
package/dist/worker.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client';
|
|
|
5
5
|
import { readFileSync } from 'node:fs';
|
|
6
6
|
import { resolve, normalize } from 'pathe';
|
|
7
7
|
import { e as environments } from './chunks/index.K90BXFOx.js';
|
|
8
|
-
import { s as setupInspect } from './chunks/inspector.
|
|
8
|
+
import { s as setupInspect } from './chunks/inspector.DKLceBVD.js';
|
|
9
9
|
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.C3q9uwRX.js';
|
|
10
10
|
import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C8RiOc4B.js';
|
|
11
11
|
import { d as disposeInternalListeners } from './chunks/utils.Cn0zI1t3.js';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
|
-
import { r as runBaseTests } from '../chunks/base.
|
|
2
|
+
import { r as runBaseTests } from '../chunks/base.CkcgFVQd.js';
|
|
3
3
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
|
|
4
4
|
import 'vite-node/client';
|
|
5
5
|
import '../chunks/execute.2pr0rHgK.js';
|
|
@@ -5,11 +5,11 @@ import util from 'node:util';
|
|
|
5
5
|
import { startTests, collectTests } from '@vitest/runner';
|
|
6
6
|
import { KNOWN_ASSET_TYPES } from 'vite-node/constants';
|
|
7
7
|
import { installSourcemapsSupport } from 'vite-node/source-map';
|
|
8
|
-
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.
|
|
8
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.CkOJwybT.js';
|
|
9
9
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.BoMDb1ip.js';
|
|
10
|
-
import { V as VitestIndex } from '../chunks/index.
|
|
11
|
-
import { c as closeInspector } from '../chunks/inspector.
|
|
12
|
-
import { s as setupCommonEnv } from '../chunks/setup-common.
|
|
10
|
+
import { V as VitestIndex } from '../chunks/index.BqHViJW9.js';
|
|
11
|
+
import { c as closeInspector } from '../chunks/inspector.DKLceBVD.js';
|
|
12
|
+
import { s as setupCommonEnv } from '../chunks/setup-common.B5ClyS48.js';
|
|
13
13
|
import { g as getWorkerState } from '../chunks/utils.C8RiOc4B.js';
|
|
14
14
|
import 'chai';
|
|
15
15
|
import 'node:path';
|
|
@@ -18,7 +18,7 @@ import 'node:url';
|
|
|
18
18
|
import '../chunks/rpc.C3q9uwRX.js';
|
|
19
19
|
import '@vitest/utils';
|
|
20
20
|
import '../chunks/index.68735LiX.js';
|
|
21
|
-
import '../chunks/vi.
|
|
21
|
+
import '../chunks/vi.CZKezqeD.js';
|
|
22
22
|
import '@vitest/expect';
|
|
23
23
|
import '@vitest/runner/utils';
|
|
24
24
|
import '../chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
@@ -74,7 +74,7 @@ async function run(method, files, config, executor) {
|
|
|
74
74
|
workerState.durations.prepare = performance.now() - workerState.durations.prepare;
|
|
75
75
|
const { vi } = VitestIndex;
|
|
76
76
|
for (const file of files) {
|
|
77
|
-
workerState.filepath = file;
|
|
77
|
+
workerState.filepath = file.filepath;
|
|
78
78
|
if (method === "run") {
|
|
79
79
|
await startTests([file], runner);
|
|
80
80
|
} else {
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as runBaseTests } from '../chunks/base.
|
|
1
|
+
import { r as runBaseTests } from '../chunks/base.CkcgFVQd.js';
|
|
2
2
|
import { a as createThreadsRpcOptions } from '../chunks/utils.Cn0zI1t3.js';
|
|
3
3
|
import 'vite-node/client';
|
|
4
4
|
import '../chunks/execute.2pr0rHgK.js';
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import v8 from 'node:v8';
|
|
2
2
|
import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../chunks/utils.Cn0zI1t3.js';
|
|
3
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
3
|
+
import { r as runVmTests } from '../chunks/vm.DGhTouO3.js';
|
|
4
4
|
import '@vitest/utils';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'node:vm';
|
package/dist/workers.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.
|
|
1
|
+
import { W as WorkerGlobalState, C as ContextRPC, B as BirpcOptions, R as RuntimeRPC } from './chunks/worker.CmzGeuVD.js';
|
|
2
2
|
import { Awaitable } from '@vitest/utils';
|
|
3
3
|
import * as v8 from 'v8';
|
|
4
|
-
import { S as SerializedConfig } from './chunks/config.
|
|
5
|
-
import { W as WorkerContext } from './chunks/worker.
|
|
4
|
+
import { S as SerializedConfig } from './chunks/config.BTPBhmK5.js';
|
|
5
|
+
import { W as WorkerContext } from './chunks/worker.umPNbBNk.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import 'vite-node';
|
|
8
8
|
import './chunks/environment.CT0jpO-1.js';
|
package/dist/workers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { p as provideWorkerState } from './chunks/utils.C8RiOc4B.js';
|
|
2
2
|
export { collect as collectVitestWorkerTests, run as runVitestWorker } from './worker.js';
|
|
3
|
-
export { r as runBaseTests } from './chunks/base.
|
|
3
|
+
export { r as runBaseTests } from './chunks/base.CkcgFVQd.js';
|
|
4
4
|
export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSerializableConfig } from './chunks/utils.Cn0zI1t3.js';
|
|
5
|
-
export { r as runVmTests } from './chunks/vm.
|
|
5
|
+
export { r as runVmTests } from './chunks/vm.DGhTouO3.js';
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import '@vitest/utils/source-map';
|
|
@@ -12,7 +12,7 @@ import 'node:fs';
|
|
|
12
12
|
import 'pathe';
|
|
13
13
|
import './chunks/index.K90BXFOx.js';
|
|
14
14
|
import 'node:console';
|
|
15
|
-
import './chunks/inspector.
|
|
15
|
+
import './chunks/inspector.DKLceBVD.js';
|
|
16
16
|
import 'node:module';
|
|
17
17
|
import './chunks/rpc.C3q9uwRX.js';
|
|
18
18
|
import './chunks/index.68735LiX.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0-beta.1",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
"dist"
|
|
116
116
|
],
|
|
117
117
|
"engines": {
|
|
118
|
-
"node": "^18.0.0 ||
|
|
118
|
+
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@edge-runtime/vm": "*",
|
|
122
|
-
"@types/node": "^18.0.0 ||
|
|
122
|
+
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
|
|
123
123
|
"happy-dom": "*",
|
|
124
124
|
"jsdom": "*",
|
|
125
|
-
"@vitest/browser": "
|
|
126
|
-
"@vitest/ui": "
|
|
125
|
+
"@vitest/browser": "3.0.0-beta.1",
|
|
126
|
+
"@vitest/ui": "3.0.0-beta.1"
|
|
127
127
|
},
|
|
128
128
|
"peerDependenciesMeta": {
|
|
129
129
|
"@edge-runtime/vm": {
|
|
@@ -149,28 +149,27 @@
|
|
|
149
149
|
"chai": "^5.1.2",
|
|
150
150
|
"debug": "^4.3.7",
|
|
151
151
|
"expect-type": "^1.1.0",
|
|
152
|
-
"magic-string": "^0.30.
|
|
152
|
+
"magic-string": "^0.30.14",
|
|
153
153
|
"pathe": "^1.1.2",
|
|
154
|
-
"restore-cursor": "^5.1.0",
|
|
155
154
|
"std-env": "^3.8.0",
|
|
156
155
|
"tinybench": "^2.9.0",
|
|
157
156
|
"tinyexec": "^0.3.1",
|
|
158
157
|
"tinypool": "^1.0.2",
|
|
159
158
|
"tinyrainbow": "^1.2.0",
|
|
160
|
-
"vite": "^5.0.0",
|
|
159
|
+
"vite": "^5.0.0 || ^6.0.0",
|
|
161
160
|
"why-is-node-running": "^2.3.0",
|
|
162
|
-
"@vitest/
|
|
163
|
-
"@vitest/
|
|
164
|
-
"@vitest/
|
|
165
|
-
"@vitest/runner": "
|
|
166
|
-
"@vitest/snapshot": "
|
|
167
|
-
"@vitest/
|
|
168
|
-
"
|
|
169
|
-
"
|
|
161
|
+
"@vitest/expect": "3.0.0-beta.1",
|
|
162
|
+
"@vitest/mocker": "3.0.0-beta.1",
|
|
163
|
+
"@vitest/pretty-format": "^3.0.0-beta.1",
|
|
164
|
+
"@vitest/runner": "3.0.0-beta.1",
|
|
165
|
+
"@vitest/snapshot": "3.0.0-beta.1",
|
|
166
|
+
"@vitest/spy": "3.0.0-beta.1",
|
|
167
|
+
"vite-node": "3.0.0-beta.1",
|
|
168
|
+
"@vitest/utils": "3.0.0-beta.1"
|
|
170
169
|
},
|
|
171
170
|
"devDependencies": {
|
|
172
171
|
"@ampproject/remapping": "^2.3.0",
|
|
173
|
-
"@antfu/install-pkg": "^0.
|
|
172
|
+
"@antfu/install-pkg": "^0.5.0",
|
|
174
173
|
"@edge-runtime/vm": "^4.0.4",
|
|
175
174
|
"@sinonjs/fake-timers": "11.1.0",
|
|
176
175
|
"@types/debug": "^4.1.12",
|
|
@@ -179,7 +178,7 @@
|
|
|
179
178
|
"@types/istanbul-reports": "^3.0.4",
|
|
180
179
|
"@types/jsdom": "^21.1.7",
|
|
181
180
|
"@types/micromatch": "^4.0.9",
|
|
182
|
-
"@types/node": "^22.
|
|
181
|
+
"@types/node": "^22.10.1",
|
|
183
182
|
"@types/prompts": "^2.4.9",
|
|
184
183
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
185
184
|
"acorn-walk": "^8.3.4",
|
|
@@ -189,16 +188,16 @@
|
|
|
189
188
|
"cli-truncate": "^4.0.0",
|
|
190
189
|
"fast-glob": "3.3.2",
|
|
191
190
|
"find-up": "^6.3.0",
|
|
192
|
-
"flatted": "^3.3.
|
|
191
|
+
"flatted": "^3.3.2",
|
|
193
192
|
"get-tsconfig": "^4.8.1",
|
|
194
|
-
"happy-dom": "^15.11.
|
|
193
|
+
"happy-dom": "^15.11.7",
|
|
195
194
|
"jsdom": "^25.0.1",
|
|
196
|
-
"local-pkg": "^0.5.
|
|
195
|
+
"local-pkg": "^0.5.1",
|
|
197
196
|
"log-update": "^5.0.1",
|
|
198
197
|
"micromatch": "^4.0.8",
|
|
199
198
|
"pretty-format": "^29.7.0",
|
|
200
199
|
"prompts": "^2.4.2",
|
|
201
|
-
"strip-literal": "^2.1.
|
|
200
|
+
"strip-literal": "^2.1.1",
|
|
202
201
|
"ws": "^8.18.0"
|
|
203
202
|
},
|
|
204
203
|
"scripts": {
|