vitest 2.1.4 → 2.1.6
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 +9 -9
- package/dist/browser.js +1 -1
- package/dist/chunks/{base.C3xNdjV6.js → base.BZZh4cSm.js} +1 -1
- package/dist/chunks/{cac.DrfPaMvZ.js → cac.DPEe9SCx.js} +5 -5
- package/dist/chunks/{cli-api.CKrRYkw8.js → cli-api.FAAw0S6C.js} +106 -77
- package/dist/chunks/{config.Crbj2GAb.d.ts → config.Cy0C388Z.d.ts} +0 -1
- package/dist/chunks/{globals.Bp645TTJ.js → globals.D8ZVAdXd.js} +2 -2
- package/dist/chunks/{index.Bn81VaWg.js → index.DsZFoqi9.js} +205 -303
- package/dist/chunks/{index.BMoXz_-n.js → index.K90BXFOx.js} +1 -1
- package/dist/chunks/{index.Dqe5k2Rk.js → index.ckWaX2gY.js} +1 -1
- package/dist/chunks/{index.D3d79vc8.js → index.nEwtF0bu.js} +1 -1
- package/dist/chunks/{reporters.anwo7Y6a.d.ts → reporters.D7Jzd9GS.d.ts} +26 -16
- package/dist/chunks/{resolveConfig.DPmbhVlP.js → resolveConfig.RxKrDli4.js} +4 -2
- package/dist/chunks/{runBaseTests.Dm-659zB.js → runBaseTests.3qpJUEJM.js} +4 -4
- package/dist/chunks/{setup-common.DDmVKp6O.js → setup-common.Dj6BZI3u.js} +1 -1
- package/dist/chunks/{utils.BB4zjzR8.js → utils.DNoFbBUZ.js} +6 -2
- package/dist/chunks/{vi.JMQoNY_Z.js → vi.DgezovHB.js} +85 -3
- package/dist/chunks/{vite.BdBj-UWY.d.ts → vite.C-N5BBZe.d.ts} +1 -1
- package/dist/chunks/{vm.jpyrB0xy.js → vm.Zr4qWzDJ.js} +3 -0
- package/dist/chunks/{worker.DHnGaO2M.d.ts → worker.B9FxPCaC.d.ts} +1 -1
- package/dist/chunks/{worker.BAlI9hII.d.ts → worker.tN5KGIih.d.ts} +2 -1
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +9 -9
- package/dist/coverage.d.ts +7 -7
- package/dist/coverage.js +1 -1
- package/dist/environments.js +1 -1
- package/dist/execute.d.ts +2 -2
- package/dist/index.d.ts +37 -8
- package/dist/index.js +2 -2
- package/dist/node.d.ts +8 -8
- package/dist/node.js +7 -7
- package/dist/reporters.d.ts +9 -9
- package/dist/reporters.js +2 -2
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +1 -1
- package/dist/worker.js +6 -2
- package/dist/workers/forks.js +1 -1
- package/dist/workers/runVmTests.js +4 -4
- 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 +4 -3
- package/package.json +18 -18
package/dist/node.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { w as VitestRunMode, H as VitestOptions, V as Vitest, z as UserConfig$1, A as ApiConfig, L as Logger, E as ResolvedConfig$1, J as WorkspaceProject, K as TestSequencer, M as WorkspaceSpec, N as TestModule, O as ModuleDiagnostic } from './chunks/reporters.
|
|
2
|
-
export { B as BaseCoverageOptions, G as BenchmarkUserOptions, ad as BrowserBuiltinProvider, ae as BrowserCommand, af as BrowserCommandContext, s as BrowserConfigOptions, ag as BrowserOrchestrator, ah as BrowserProvider, ai as BrowserProviderInitializationOptions, aj as BrowserProviderModule, ak as BrowserProviderOptions, r as BrowserScript, al as BrowserServer, am as BrowserServerState, an as BrowserServerStateContext, t as BuiltinEnvironment, ao as CDPSession, v as CSSModuleScopeStrategy, o as CoverageIstanbulOptions, n as CoverageOptions, C as CoverageProvider, b as CoverageProviderModule, l as CoverageReporter, c as CoverageV8Options, p as CustomProviderOptions, D as DepsOptimizationOptions, $ as HTMLOptions, I as InlineConfig, a1 as JUnitOptions, a0 as JsonOptions, P as Pool, u as PoolOptions, X as ProcessPool, F as ProjectConfig, a as ReportContext, ap as ResolvedBrowserOptions, R as ResolvedCoverageOptions, aq as ResolvedProjectConfig, _ as SerializedTestProject, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, ab as TestSequencerConstructor, ac as TestSpecification, a3 as TestSuite, x as TransformModePatterns, h as TypeCheckCollectLineNumbers, i as TypeCheckCollectLines, k as TypeCheckContext, T as TypeCheckErrorInfo, g as TypeCheckRawErrorsMap, j as TypeCheckRootAndTarget, y as TypecheckConfig, U as UserWorkspaceConfig, f as VitestEnvironment, Q as VitestPackageInstaller, Y as getFilePoolName } from './chunks/reporters.
|
|
1
|
+
import { w as VitestRunMode, H as VitestOptions, V as Vitest, z as UserConfig$1, A as ApiConfig, L as Logger, E as ResolvedConfig$1, J as WorkspaceProject, K as TestSequencer, M as WorkspaceSpec, N as TestModule, O as ModuleDiagnostic } from './chunks/reporters.D7Jzd9GS.js';
|
|
2
|
+
export { B as BaseCoverageOptions, G as BenchmarkUserOptions, ad as BrowserBuiltinProvider, ae as BrowserCommand, af as BrowserCommandContext, s as BrowserConfigOptions, ag as BrowserOrchestrator, ah as BrowserProvider, ai as BrowserProviderInitializationOptions, aj as BrowserProviderModule, ak as BrowserProviderOptions, r as BrowserScript, al as BrowserServer, am as BrowserServerState, an as BrowserServerStateContext, t as BuiltinEnvironment, ao as CDPSession, v as CSSModuleScopeStrategy, o as CoverageIstanbulOptions, n as CoverageOptions, C as CoverageProvider, b as CoverageProviderModule, l as CoverageReporter, c as CoverageV8Options, p as CustomProviderOptions, D as DepsOptimizationOptions, $ as HTMLOptions, I as InlineConfig, a1 as JUnitOptions, a0 as JsonOptions, P as Pool, u as PoolOptions, X as ProcessPool, F as ProjectConfig, a as ReportContext, ap as ResolvedBrowserOptions, R as ResolvedCoverageOptions, aq as ResolvedProjectConfig, _ as SerializedTestProject, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, ab as TestSequencerConstructor, ac as TestSpecification, a3 as TestSuite, x as TransformModePatterns, h as TypeCheckCollectLineNumbers, i as TypeCheckCollectLines, k as TypeCheckContext, T as TypeCheckErrorInfo, g as TypeCheckRawErrorsMap, j as TypeCheckRootAndTarget, y as TypecheckConfig, U as UserWorkspaceConfig, f as VitestEnvironment, Q as VitestPackageInstaller, Y as getFilePoolName } from './chunks/reporters.D7Jzd9GS.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
7
|
import { P as ProvidedContext } from './chunks/environment.LoooBwUu.js';
|
|
8
8
|
export { f as EnvironmentOptions, H as HappyDOMOptions, J as JSDOMOptions, O as OnServerRestartHandler } from './chunks/environment.LoooBwUu.js';
|
|
9
|
-
import { R as RuntimeRPC } from './chunks/worker.
|
|
9
|
+
import { R as RuntimeRPC } from './chunks/worker.tN5KGIih.js';
|
|
10
10
|
import { Writable } from 'node:stream';
|
|
11
|
-
export { W as WorkerContext } from './chunks/worker.
|
|
11
|
+
export { W as WorkerContext } from './chunks/worker.B9FxPCaC.js';
|
|
12
12
|
import createDebug from 'debug';
|
|
13
|
-
export { b as RuntimeConfig } from './chunks/config.
|
|
13
|
+
export { b as RuntimeConfig } from './chunks/config.Cy0C388Z.js';
|
|
14
14
|
export { SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
15
|
+
import '@vitest/utils';
|
|
15
16
|
import '@vitest/pretty-format';
|
|
16
17
|
import '@vitest/snapshot';
|
|
17
18
|
import 'vite-node';
|
|
18
19
|
import 'chai';
|
|
19
|
-
import '@vitest/utils';
|
|
20
20
|
import '@vitest/utils/source-map';
|
|
21
21
|
import 'vite-node/client';
|
|
22
22
|
import 'vite-node/server';
|
|
23
|
-
import '@vitest/snapshot/manager';
|
|
24
|
-
import 'node:fs';
|
|
25
23
|
import './chunks/benchmark.geERunq4.js';
|
|
26
24
|
import '@vitest/runner/utils';
|
|
27
25
|
import 'tinybench';
|
|
26
|
+
import '@vitest/snapshot/manager';
|
|
27
|
+
import 'node:fs';
|
|
28
28
|
import 'node:worker_threads';
|
|
29
29
|
import '@vitest/snapshot/environment';
|
|
30
30
|
|
package/dist/node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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, i as TestProject, 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.
|
|
3
|
+
import { f as TestModule } from './chunks/index.DsZFoqi9.js';
|
|
4
|
+
export { e as TestCase, i as TestProject, g as TestSuite } from './chunks/index.DsZFoqi9.js';
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.DPEe9SCx.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.FAAw0S6C.js';
|
|
7
|
+
export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.RxKrDli4.js';
|
|
8
8
|
export { B as BaseSequencer } from './chunks/RandomSequencer.CMRlh2v4.js';
|
|
9
9
|
export { distDir, rootDir } from './path.js';
|
|
10
10
|
import createDebug from 'debug';
|
|
@@ -12,7 +12,7 @@ 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.DNoFbBUZ.js';
|
|
16
16
|
import 'node:util';
|
|
17
17
|
import '@vitest/utils';
|
|
18
18
|
import 'node:perf_hooks';
|
|
@@ -52,13 +52,13 @@ import 'fs';
|
|
|
52
52
|
import 'vite-node/utils';
|
|
53
53
|
import '@vitest/mocker/node';
|
|
54
54
|
import 'magic-string';
|
|
55
|
-
import 'node:worker_threads';
|
|
56
55
|
import 'node:readline';
|
|
57
56
|
import 'node:assert';
|
|
58
57
|
import 'node:v8';
|
|
59
58
|
import 'util';
|
|
60
59
|
import 'node:events';
|
|
61
60
|
import 'tinypool';
|
|
61
|
+
import 'node:worker_threads';
|
|
62
62
|
import 'tinyexec';
|
|
63
63
|
import 'node:crypto';
|
|
64
64
|
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { aB as BaseReporter, ar as BasicReporter, aL as BenchmarkBuiltinReporters, aK as BenchmarkReportsMap, aG as BuiltinReporterOptions, aF as BuiltinReporters, as as DefaultReporter, at as DotReporter, aD as FileDiagnostic, au as GithubActionsReporter, av as HangingProcessReporter, ax as JUnitReporter, aH as JsonAssertionResult, aw as JsonReporter, aI as JsonTestResult, aJ as JsonTestResults, q as Reporter, aE as ReportersMap, ay as TapFlatReporter, az as TapReporter, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, aC as TestFile, N as TestModule, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, a3 as TestSuite, aA as VerboseReporter } from './chunks/reporters.
|
|
2
|
-
import './chunks/config.Crbj2GAb.js';
|
|
3
|
-
import '@vitest/pretty-format';
|
|
1
|
+
export { aB as BaseReporter, ar as BasicReporter, aL as BenchmarkBuiltinReporters, aK as BenchmarkReportsMap, aG as BuiltinReporterOptions, aF as BuiltinReporters, as as DefaultReporter, at as DotReporter, aD as FileDiagnostic, au as GithubActionsReporter, av as HangingProcessReporter, ax as JUnitReporter, aH as JsonAssertionResult, aw as JsonReporter, aI as JsonTestResult, aJ as JsonTestResults, q as Reporter, aE as ReportersMap, ay as TapFlatReporter, az as TapReporter, a4 as TaskOptions, a2 as TestCase, a5 as TestCollection, a6 as TestDiagnostic, aC as TestFile, N as TestModule, Z as TestProject, a7 as TestResult, a8 as TestResultFailed, a9 as TestResultPassed, aa as TestResultSkipped, a3 as TestSuite, aA as VerboseReporter } from './chunks/reporters.D7Jzd9GS.js';
|
|
4
2
|
import '@vitest/runner';
|
|
3
|
+
import './chunks/environment.LoooBwUu.js';
|
|
4
|
+
import 'node:stream';
|
|
5
|
+
import 'vite';
|
|
6
|
+
import '@vitest/utils';
|
|
7
|
+
import './chunks/config.Cy0C388Z.js';
|
|
8
|
+
import '@vitest/pretty-format';
|
|
5
9
|
import '@vitest/snapshot';
|
|
6
10
|
import '@vitest/snapshot/environment';
|
|
7
|
-
import 'vite';
|
|
8
11
|
import 'vite-node';
|
|
9
12
|
import 'chai';
|
|
10
|
-
import './chunks/environment.LoooBwUu.js';
|
|
11
|
-
import 'node:stream';
|
|
12
|
-
import '@vitest/utils';
|
|
13
13
|
import '@vitest/utils/source-map';
|
|
14
14
|
import 'vite-node/client';
|
|
15
15
|
import 'vite-node/server';
|
|
16
|
-
import '@vitest/snapshot/manager';
|
|
17
|
-
import 'node:fs';
|
|
18
16
|
import './chunks/benchmark.geERunq4.js';
|
|
19
17
|
import '@vitest/runner/utils';
|
|
20
18
|
import 'tinybench';
|
|
19
|
+
import '@vitest/snapshot/manager';
|
|
20
|
+
import 'node:fs';
|
package/dist/reporters.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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.DsZFoqi9.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.DNoFbBUZ.js';
|
|
7
7
|
import 'node:util';
|
|
8
8
|
import '@vitest/utils';
|
|
9
9
|
import 'node:perf_hooks';
|
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, Custom, TaskContext, ExtendedContext } from '@vitest/runner';
|
|
3
|
-
import { S as SerializedConfig } from './chunks/config.
|
|
3
|
+
import { S as SerializedConfig } from './chunks/config.Cy0C388Z.js';
|
|
4
4
|
import '@vitest/pretty-format';
|
|
5
5
|
import '@vitest/snapshot';
|
|
6
6
|
import '@vitest/snapshot/environment';
|
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, c as createExpect, v as vi } from './chunks/vi.
|
|
7
|
+
import { g as getSnapshotClient, c as createExpect, v as vi } from './chunks/vi.DgezovHB.js';
|
|
8
8
|
import { r as rpc } from './chunks/rpc.C3q9uwRX.js';
|
|
9
9
|
import 'chai';
|
|
10
10
|
import './chunks/_commonjsHelpers.BFTU3MAI.js';
|
package/dist/worker.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { pathToFileURL } from 'node:url';
|
|
2
|
+
import { createStackString, parseStacktrace } from '@vitest/utils/source-map';
|
|
2
3
|
import { workerId } from 'tinypool';
|
|
3
4
|
import { ViteNodeRunner, ModuleCacheMap } from 'vite-node/client';
|
|
4
5
|
import { readFileSync } from 'node:fs';
|
|
5
6
|
import { resolve, normalize } from 'pathe';
|
|
6
|
-
import { e as environments } from './chunks/index.
|
|
7
|
+
import { e as environments } from './chunks/index.K90BXFOx.js';
|
|
7
8
|
import { s as setupInspect } from './chunks/inspector.70d6emsh.js';
|
|
8
9
|
import { c as createRuntimeRpc, a as rpcDone } from './chunks/rpc.C3q9uwRX.js';
|
|
9
10
|
import { i as isChildProcess, s as setProcessTitle } from './chunks/utils.C8RiOc4B.js';
|
|
@@ -112,7 +113,10 @@ async function execute(method, ctx) {
|
|
|
112
113
|
prepare: prepareStart
|
|
113
114
|
},
|
|
114
115
|
rpc,
|
|
115
|
-
providedContext: ctx.providedContext
|
|
116
|
+
providedContext: ctx.providedContext,
|
|
117
|
+
onFilterStackTrace(stack) {
|
|
118
|
+
return createStackString(parseStacktrace(stack));
|
|
119
|
+
}
|
|
116
120
|
};
|
|
117
121
|
const methodName = method === "collect" ? "collectTests" : "runTests";
|
|
118
122
|
if (!worker[methodName] || typeof worker[methodName] !== "function") {
|
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.BZZh4cSm.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.nEwtF0bu.js';
|
|
9
9
|
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/coverage.BoMDb1ip.js';
|
|
10
|
-
import { V as VitestIndex } from '../chunks/index.
|
|
10
|
+
import { V as VitestIndex } from '../chunks/index.ckWaX2gY.js';
|
|
11
11
|
import { c as closeInspector } from '../chunks/inspector.70d6emsh.js';
|
|
12
|
-
import { s as setupCommonEnv } from '../chunks/setup-common.
|
|
12
|
+
import { s as setupCommonEnv } from '../chunks/setup-common.Dj6BZI3u.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.DgezovHB.js';
|
|
22
22
|
import '@vitest/expect';
|
|
23
23
|
import '@vitest/runner/utils';
|
|
24
24
|
import '../chunks/_commonjsHelpers.BFTU3MAI.js';
|
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.BZZh4cSm.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.Zr4qWzDJ.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.tN5KGIih.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.Cy0C388Z.js';
|
|
5
|
+
import { W as WorkerContext } from './chunks/worker.B9FxPCaC.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import 'vite-node';
|
|
8
8
|
import './chunks/environment.LoooBwUu.js';
|
package/dist/workers.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
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.BZZh4cSm.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.Zr4qWzDJ.js';
|
|
6
6
|
import '@vitest/utils';
|
|
7
7
|
import 'node:url';
|
|
8
|
+
import '@vitest/utils/source-map';
|
|
8
9
|
import 'tinypool';
|
|
9
10
|
import 'vite-node/client';
|
|
10
11
|
import 'node:fs';
|
|
11
12
|
import 'pathe';
|
|
12
|
-
import './chunks/index.
|
|
13
|
+
import './chunks/index.K90BXFOx.js';
|
|
13
14
|
import 'node:console';
|
|
14
15
|
import './chunks/inspector.70d6emsh.js';
|
|
15
16
|
import 'node:module';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.6",
|
|
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": "2.1.
|
|
126
|
-
"@vitest/ui": "2.1.
|
|
125
|
+
"@vitest/browser": "2.1.6",
|
|
126
|
+
"@vitest/ui": "2.1.6"
|
|
127
127
|
},
|
|
128
128
|
"peerDependenciesMeta": {
|
|
129
129
|
"@edge-runtime/vm": {
|
|
@@ -151,26 +151,26 @@
|
|
|
151
151
|
"expect-type": "^1.1.0",
|
|
152
152
|
"magic-string": "^0.30.12",
|
|
153
153
|
"pathe": "^1.1.2",
|
|
154
|
-
"std-env": "^3.
|
|
154
|
+
"std-env": "^3.8.0",
|
|
155
155
|
"tinybench": "^2.9.0",
|
|
156
156
|
"tinyexec": "^0.3.1",
|
|
157
157
|
"tinypool": "^1.0.1",
|
|
158
158
|
"tinyrainbow": "^1.2.0",
|
|
159
|
-
"vite": "^5.0.0",
|
|
159
|
+
"vite": "^5.0.0 || ^6.0.0",
|
|
160
160
|
"why-is-node-running": "^2.3.0",
|
|
161
|
-
"@vitest/expect": "2.1.
|
|
162
|
-
"@vitest/mocker": "2.1.
|
|
163
|
-
"@vitest/
|
|
164
|
-
"@vitest/
|
|
165
|
-
"@vitest/utils": "2.1.
|
|
166
|
-
"
|
|
167
|
-
"@vitest/
|
|
168
|
-
"
|
|
161
|
+
"@vitest/expect": "2.1.6",
|
|
162
|
+
"@vitest/mocker": "2.1.6",
|
|
163
|
+
"@vitest/pretty-format": "^2.1.6",
|
|
164
|
+
"@vitest/runner": "2.1.6",
|
|
165
|
+
"@vitest/utils": "2.1.6",
|
|
166
|
+
"vite-node": "2.1.6",
|
|
167
|
+
"@vitest/spy": "2.1.6",
|
|
168
|
+
"@vitest/snapshot": "2.1.6"
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
171
|
"@ampproject/remapping": "^2.3.0",
|
|
172
172
|
"@antfu/install-pkg": "^0.4.1",
|
|
173
|
-
"@edge-runtime/vm": "^4.0.
|
|
173
|
+
"@edge-runtime/vm": "^4.0.4",
|
|
174
174
|
"@sinonjs/fake-timers": "11.1.0",
|
|
175
175
|
"@types/debug": "^4.1.12",
|
|
176
176
|
"@types/estree": "^1.0.6",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"@types/istanbul-reports": "^3.0.4",
|
|
179
179
|
"@types/jsdom": "^21.1.7",
|
|
180
180
|
"@types/micromatch": "^4.0.9",
|
|
181
|
-
"@types/node": "^22.
|
|
181
|
+
"@types/node": "^22.9.0",
|
|
182
182
|
"@types/prompts": "^2.4.9",
|
|
183
183
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
184
184
|
"acorn-walk": "^8.3.4",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"find-up": "^6.3.0",
|
|
191
191
|
"flatted": "^3.3.1",
|
|
192
192
|
"get-tsconfig": "^4.8.1",
|
|
193
|
-
"happy-dom": "^15.
|
|
193
|
+
"happy-dom": "^15.11.4",
|
|
194
194
|
"jsdom": "^25.0.1",
|
|
195
195
|
"local-pkg": "^0.5.0",
|
|
196
196
|
"log-update": "^5.0.1",
|