vitest 4.0.14 → 4.0.16
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 +2 -2
- package/dist/browser.js +2 -2
- package/dist/chunks/{base.BEv8sRbK.js → base.Bin-9uYm.js} +7 -6
- package/dist/chunks/browser.d.Bz3lxTX-.d.ts +57 -0
- package/dist/chunks/{cac.DnEx6DOX.js → cac.BGonGPac.js} +10 -25
- package/dist/chunks/{cli-api.CbjxIXjQ.js → cli-api.BKg19Fvw.js} +469 -124
- package/dist/chunks/{config.d.g6OOauRt.d.ts → config.d.CzIjkicf.d.ts} +1 -0
- package/dist/chunks/{coverage.CtyeYmKM.js → coverage.BuJUwVtg.js} +2 -1
- package/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts +7 -0
- package/dist/chunks/{globals.C0izxiX3.js → globals.DOayXfHP.js} +3 -3
- package/dist/chunks/{index.D6PC4Dpu.js → index.456_DGfR.js} +128 -18
- package/dist/chunks/{index.CQwQ_SLL.js → index.6Qv1eEA6.js} +3 -3
- package/dist/chunks/index.Chj8NDwU.js +206 -0
- package/dist/chunks/{index.B88tjlE5.js → index.Drsj_6e7.js} +1 -1
- package/dist/chunks/{index.DBx1AtPJ.js → index.Z5E_ObnR.js} +1 -1
- package/dist/chunks/{init-forks.DmvIFK4U.js → init-forks.v9UONQS6.js} +11 -2
- package/dist/chunks/{init-threads.De6b3S3g.js → init-threads.DqYg3Trk.js} +1 -1
- package/dist/chunks/{init.a5SCIJ0x.js → init.KmQZdqFg.js} +2 -2
- package/dist/chunks/modules.BJuCwlRJ.js +36 -0
- package/dist/chunks/{plugin.d.B6hlg3fN.d.ts → plugin.d.v1sC_bv1.d.ts} +1 -1
- package/dist/chunks/{reporters.d.DeFcIuza.d.ts → reporters.d.Rsi0PyxX.d.ts} +27 -4
- package/dist/chunks/{rpc.BytlcPfC.js → rpc.BoxB0q7B.js} +1 -1
- package/dist/chunks/{setup-common.DGHc_BUK.js → setup-common.Cm-kSBVi.js} +1 -1
- package/dist/chunks/{startModuleRunner.W28wBIgJ.js → startModuleRunner.DpqpB8k3.js} +8 -9
- package/dist/chunks/{test.DqQZzsWf.js → test.B8ej_ZHS.js} +9 -4
- package/dist/chunks/{vi.BiaV1qII.js → vi.2VT5v0um.js} +40 -30
- package/dist/chunks/{vm.BbVD4fJ5.js → vm.qFl6P1nF.js} +2 -2
- package/dist/chunks/worker.d.5JNaocaN.d.ts +254 -0
- package/dist/cli.js +2 -2
- package/dist/config.d.ts +7 -7
- package/dist/coverage.d.ts +8 -8
- package/dist/coverage.js +1 -1
- package/dist/index.d.ts +22 -14
- package/dist/index.js +3 -3
- package/dist/module-evaluator.d.ts +5 -0
- package/dist/module-evaluator.js +23 -16
- package/dist/module-runner.js +2 -1
- package/dist/node.d.ts +17 -10
- package/dist/node.js +10 -9
- package/dist/reporters.d.ts +7 -7
- package/dist/reporters.js +2 -2
- package/dist/runners.d.ts +2 -1
- package/dist/runners.js +4 -4
- package/dist/worker.d.ts +5 -3
- package/dist/worker.js +11 -10
- package/dist/workers/forks.js +12 -11
- package/dist/workers/runVmTests.js +7 -7
- package/dist/workers/threads.js +12 -11
- package/dist/workers/vmForks.js +7 -6
- package/dist/workers/vmThreads.js +7 -6
- package/package.json +15 -15
- package/dist/chunks/browser.d.F6jMf15V.d.ts +0 -18
- package/dist/chunks/index.0kCJoeWi.js +0 -220
- package/dist/chunks/worker.d.DhEa3KzY.d.ts +0 -238
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ModuleEvaluator, ModuleRunnerImportMeta, ModuleRunnerContext, EvaluatedModuleNode } from 'vite/module-runner';
|
|
2
|
+
import { V as VitestEvaluatedModules } from './chunks/evaluatedModules.d.BxJ5omdx.js';
|
|
2
3
|
import vm from 'node:vm';
|
|
3
4
|
import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js';
|
|
4
5
|
import '@vitest/runner';
|
|
@@ -12,6 +13,8 @@ interface ModuleExecutionInfoEntry {
|
|
|
12
13
|
duration: number;
|
|
13
14
|
/** The time that was spent executing the module itself and externalized imports. */
|
|
14
15
|
selfTime: number;
|
|
16
|
+
external?: boolean;
|
|
17
|
+
importer?: string;
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
declare class FileMap {
|
|
@@ -85,6 +88,7 @@ interface VitestVmOptions {
|
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
interface VitestModuleEvaluatorOptions {
|
|
91
|
+
evaluatedModules?: VitestEvaluatedModules;
|
|
88
92
|
interopDefault?: boolean | undefined;
|
|
89
93
|
moduleExecutionInfo?: ModuleExecutionInfo;
|
|
90
94
|
getCurrentTestFilepath?: () => string | undefined;
|
|
@@ -101,6 +105,7 @@ declare class VitestModuleEvaluator implements ModuleEvaluator {
|
|
|
101
105
|
private primitives;
|
|
102
106
|
private debug;
|
|
103
107
|
private _otel;
|
|
108
|
+
private _evaluatedModules?;
|
|
104
109
|
constructor(vmOptions?: VitestVmOptions | undefined, options?: VitestModuleEvaluatorOptions);
|
|
105
110
|
private convertIdToImportUrl;
|
|
106
111
|
runExternalModule(id: string): Promise<any>;
|
package/dist/module-evaluator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isBuiltin, createRequire } from 'node:module';
|
|
2
|
-
import { pathToFileURL } from 'node:url';
|
|
2
|
+
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
3
3
|
import vm from 'node:vm';
|
|
4
4
|
import { isAbsolute } from 'pathe';
|
|
5
5
|
import { ssrModuleExportsKey, ssrImportMetaKey, ssrImportKey, ssrDynamicImportKey, ssrExportAllKey } from 'vite/module-runner';
|
|
@@ -8,7 +8,7 @@ import { T as Traces } from './chunks/traces.U4xDYhzZ.js';
|
|
|
8
8
|
const performanceNow = performance.now.bind(performance);
|
|
9
9
|
class ModuleDebug {
|
|
10
10
|
executionStack = [];
|
|
11
|
-
startCalculateModuleExecutionInfo(filename,
|
|
11
|
+
startCalculateModuleExecutionInfo(filename, options) {
|
|
12
12
|
const startTime = performanceNow();
|
|
13
13
|
this.executionStack.push({
|
|
14
14
|
filename,
|
|
@@ -22,7 +22,9 @@ class ModuleDebug {
|
|
|
22
22
|
const selfTime = duration - currentExecution.subImportTime;
|
|
23
23
|
if (this.executionStack.length > 0) this.executionStack.at(-1).subImportTime += duration;
|
|
24
24
|
return {
|
|
25
|
-
startOffset,
|
|
25
|
+
startOffset: options.startOffset,
|
|
26
|
+
external: options.external,
|
|
27
|
+
importer: options.importer,
|
|
26
28
|
duration,
|
|
27
29
|
selfTime
|
|
28
30
|
};
|
|
@@ -40,11 +42,13 @@ class VitestModuleEvaluator {
|
|
|
40
42
|
primitives;
|
|
41
43
|
debug = new ModuleDebug();
|
|
42
44
|
_otel;
|
|
45
|
+
_evaluatedModules;
|
|
43
46
|
constructor(vmOptions, options = {}) {
|
|
44
47
|
this.options = options;
|
|
45
48
|
this._otel = options.traces || new Traces({ enabled: false });
|
|
46
49
|
this.vm = vmOptions;
|
|
47
50
|
this.stubs = getDefaultRequestStubs(vmOptions?.context);
|
|
51
|
+
this._evaluatedModules = options.evaluatedModules;
|
|
48
52
|
if (options.compiledFunctionArgumentsNames) this.compiledFunctionArgumentsNames = options.compiledFunctionArgumentsNames;
|
|
49
53
|
if (options.compiledFunctionArgumentsValues) this.compiledFunctionArgumentsValues = options.compiledFunctionArgumentsValues;
|
|
50
54
|
if (vmOptions) this.primitives = vm.runInContext("({ Object, Proxy, Reflect })", vmOptions.context);
|
|
@@ -67,9 +71,15 @@ class VitestModuleEvaluator {
|
|
|
67
71
|
async runExternalModule(id) {
|
|
68
72
|
if (id in this.stubs) return this.stubs[id];
|
|
69
73
|
const file = this.convertIdToImportUrl(id);
|
|
70
|
-
const
|
|
74
|
+
const importer = (this._evaluatedModules?.getModuleById(id)?.importers)?.values().next().value;
|
|
75
|
+
const filename = id.startsWith("file://") ? fileURLToPath(id) : id;
|
|
76
|
+
const finishModuleExecutionInfo = this.debug.startCalculateModuleExecutionInfo(filename, {
|
|
77
|
+
startOffset: 0,
|
|
78
|
+
external: true,
|
|
79
|
+
importer
|
|
80
|
+
});
|
|
71
81
|
const namespace = await this._otel.$("vitest.module.external", { attributes: { "code.file.path": file } }, () => this.vm ? this.vm.externalModulesExecutor.import(file) : import(file)).finally(() => {
|
|
72
|
-
finishModuleExecutionInfo();
|
|
82
|
+
this.options.moduleExecutionInfo?.set(filename, finishModuleExecutionInfo());
|
|
73
83
|
});
|
|
74
84
|
if (!this.shouldInterop(file, namespace)) return namespace;
|
|
75
85
|
const { mod, defaultExport } = interopModule(namespace);
|
|
@@ -177,21 +187,18 @@ class VitestModuleEvaluator {
|
|
|
177
187
|
lineOffset: 0,
|
|
178
188
|
columnOffset: -codeDefinition.length
|
|
179
189
|
};
|
|
180
|
-
|
|
190
|
+
// this will always be 1 element because it's cached after load
|
|
191
|
+
const importer = module.importers.values().next().value;
|
|
192
|
+
const finishModuleExecutionInfo = this.debug.startCalculateModuleExecutionInfo(options.filename, {
|
|
193
|
+
startOffset: codeDefinition.length,
|
|
194
|
+
importer
|
|
195
|
+
});
|
|
181
196
|
try {
|
|
182
|
-
|
|
183
|
-
const dynamicRequest = async (dep, options) => {
|
|
184
|
-
dep = String(dep);
|
|
185
|
-
// TODO: support more edge cases?
|
|
186
|
-
// vite doesn't support dynamic modules by design, but we have to
|
|
187
|
-
if (dep[0] === "#") return context[ssrDynamicImportKey](wrapId(dep), options);
|
|
188
|
-
return context[ssrDynamicImportKey](dep, options);
|
|
189
|
-
};
|
|
190
|
-
await initModule(
|
|
197
|
+
await (this.vm ? vm.runInContext(wrappedCode, this.vm.context, options) : vm.runInThisContext(wrappedCode, options))(
|
|
191
198
|
context[ssrModuleExportsKey],
|
|
192
199
|
context[ssrImportMetaKey],
|
|
193
200
|
context[ssrImportKey],
|
|
194
|
-
|
|
201
|
+
context[ssrDynamicImportKey],
|
|
195
202
|
context[ssrExportAllKey],
|
|
196
203
|
// vite 7 support, remove when vite 7+ is supported
|
|
197
204
|
context.__vite_ssr_exportName__ || ((name, getter) => Object.defineProperty(exportsObject, name, {
|
package/dist/module-runner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { VitestModuleEvaluator } from './module-evaluator.js';
|
|
2
|
-
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.
|
|
2
|
+
export { a as VITEST_VM_CONTEXT_SYMBOL, V as VitestModuleRunner, s as startVitestModuleRunner } from './chunks/startModuleRunner.DpqpB8k3.js';
|
|
3
3
|
export { g as getWorkerState } from './chunks/utils.DvEY5TfP.js';
|
|
4
4
|
import 'node:module';
|
|
5
5
|
import 'node:url';
|
|
@@ -9,6 +9,7 @@ import 'vite/module-runner';
|
|
|
9
9
|
import './chunks/traces.U4xDYhzZ.js';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import '@vitest/utils/helpers';
|
|
12
|
+
import './chunks/modules.BJuCwlRJ.js';
|
|
12
13
|
import './path.js';
|
|
13
14
|
import 'node:path';
|
|
14
15
|
import '@vitest/utils/serialize';
|
package/dist/node.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as ResolvedConfig$1, LogLevel, LoggerOptions, Logger as Logger$1 } from 'vite';
|
|
2
|
+
import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as ResolvedConfig$1, ViteDevServer, LogLevel, LoggerOptions, Logger as Logger$1 } from 'vite';
|
|
3
3
|
export { vite as Vite };
|
|
4
|
-
export { esbuildVersion, isCSSRequest,
|
|
4
|
+
export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
5
5
|
import { IncomingMessage } from 'node:http';
|
|
6
|
-
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as PoolWorker, l as PoolOptions, m as WorkerRequest, n as TestSequencer, L as Logger } from './chunks/reporters.d.
|
|
7
|
-
export { at as BaseCoverageOptions, Y as BenchmarkUserOptions, Z as BrowserBuiltinProvider, $ as BrowserCommand, a0 as BrowserCommandContext, a1 as BrowserConfigOptions, a2 as BrowserInstanceOption, a3 as BrowserModuleMocker, a4 as BrowserOrchestrator, a5 as BrowserProvider, a6 as BrowserProviderOption, a7 as BrowserScript, a8 as BrowserServerFactory, a9 as BrowserServerOptions, aa as BrowserServerState, ab as BrowserServerStateSession, ai as BuiltinEnvironment, ac as CDPSession, aj as CSSModuleScopeStrategy, au as CoverageIstanbulOptions, av as CoverageOptions, aw as CoverageProvider, ax as CoverageProviderModule, ay as CoverageReporter, c as CoverageV8Options, az as CustomProviderOptions, ak as DepsOptimizationOptions, al as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, t as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, o as OnTestsRerunHandler, ad as ParentProjectBrowser, am as Pool, q as PoolRunnerInitializer, r as PoolTask, ae as ProjectBrowser, an as ProjectConfig, a as ReportContext, aB as ReportedHookContext, aC as Reporter, ap as ResolveSnapshotPathHandler, aq as ResolveSnapshotPathHandlerContext, af as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ao as ResolvedProjectConfig, S as SerializedTestProject, u as TaskOptions, v as TestCase, w as TestCollection, x as TestDiagnostic, y as TestModule, z as TestModuleState, B as TestResult, D as TestResultFailed, E as TestResultPassed, F as TestResultSkipped, aD as TestRunEndReason, aA as TestRunResult, X as TestSequencerConstructor, G as TestState, K as TestSuite, N as TestSuiteState, ag as ToMatchScreenshotComparators, ah as ToMatchScreenshotOptions, ar as TypecheckConfig, U as UserWorkspaceConfig, as as VitestEnvironment, p as VitestPackageInstaller, W as WatcherTriggerPattern, s as WorkerResponse, _ as _BrowserNames, Q as experimental_getRunnerTask } from './chunks/reporters.d.
|
|
8
|
-
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.
|
|
6
|
+
import { h as ResolvedConfig, f as UserConfig, i as VitestRunMode, j as VitestOptions, V as Vitest, A as ApiConfig, k as TestSpecification, T as TestProject, P as PoolWorker, l as PoolOptions, m as WorkerRequest, n as TestSequencer, L as Logger } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
7
|
+
export { at as BaseCoverageOptions, Y as BenchmarkUserOptions, Z as BrowserBuiltinProvider, $ as BrowserCommand, a0 as BrowserCommandContext, a1 as BrowserConfigOptions, a2 as BrowserInstanceOption, a3 as BrowserModuleMocker, a4 as BrowserOrchestrator, a5 as BrowserProvider, a6 as BrowserProviderOption, a7 as BrowserScript, a8 as BrowserServerFactory, a9 as BrowserServerOptions, aa as BrowserServerState, ab as BrowserServerStateSession, ai as BuiltinEnvironment, ac as CDPSession, aj as CSSModuleScopeStrategy, au as CoverageIstanbulOptions, av as CoverageOptions, aw as CoverageProvider, ax as CoverageProviderModule, ay as CoverageReporter, c as CoverageV8Options, az as CustomProviderOptions, ak as DepsOptimizationOptions, al as EnvironmentOptions, H as HTMLOptions, I as InlineConfig, t as JUnitOptions, J as JsonOptions, M as ModuleDiagnostic, O as OnServerRestartHandler, o as OnTestsRerunHandler, ad as ParentProjectBrowser, am as Pool, q as PoolRunnerInitializer, r as PoolTask, ae as ProjectBrowser, an as ProjectConfig, a as ReportContext, aB as ReportedHookContext, aC as Reporter, ap as ResolveSnapshotPathHandler, aq as ResolveSnapshotPathHandlerContext, af as ResolvedBrowserOptions, R as ResolvedCoverageOptions, ao as ResolvedProjectConfig, S as SerializedTestProject, u as TaskOptions, v as TestCase, w as TestCollection, x as TestDiagnostic, y as TestModule, z as TestModuleState, B as TestResult, D as TestResultFailed, E as TestResultPassed, F as TestResultSkipped, aD as TestRunEndReason, aA as TestRunResult, X as TestSequencerConstructor, G as TestState, K as TestSuite, N as TestSuiteState, ag as ToMatchScreenshotComparators, ah as ToMatchScreenshotOptions, ar as TypecheckConfig, U as UserWorkspaceConfig, as as VitestEnvironment, p as VitestPackageInstaller, W as WatcherTriggerPattern, s as WorkerResponse, _ as _BrowserNames, Q as experimental_getRunnerTask } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
8
|
+
export { C as CacheKeyIdGenerator, a as CacheKeyIdGeneratorContext, V as VitestPluginContext } from './chunks/plugin.d.v1sC_bv1.js';
|
|
9
9
|
import { Awaitable } from '@vitest/utils';
|
|
10
10
|
export { SerializedError } from '@vitest/utils';
|
|
11
11
|
import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
import { C as ContextRPC } from './chunks/worker.d.
|
|
14
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
13
|
+
import { C as ContextRPC } from './chunks/worker.d.5JNaocaN.js';
|
|
14
|
+
export { T as TestExecutionType } from './chunks/worker.d.5JNaocaN.js';
|
|
15
15
|
import { Debugger } from 'obug';
|
|
16
16
|
import './chunks/global.d.B15mdLcR.js';
|
|
17
17
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
18
|
-
export { b as RuntimeConfig } from './chunks/config.d.
|
|
18
|
+
export { b as RuntimeConfig } from './chunks/config.d.CzIjkicf.js';
|
|
19
19
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
20
|
+
import './chunks/browser.d.Bz3lxTX-.js';
|
|
20
21
|
import '@vitest/mocker';
|
|
21
22
|
import '@vitest/utils/source-map';
|
|
22
23
|
import 'vitest/browser';
|
|
23
|
-
import './chunks/browser.d.F6jMf15V.js';
|
|
24
24
|
import '@vitest/pretty-format';
|
|
25
25
|
import '@vitest/snapshot';
|
|
26
26
|
import '@vitest/utils/diff';
|
|
@@ -225,6 +225,13 @@ declare function registerConsoleShortcuts(ctx: Vitest, stdin: NodeJS.ReadStream
|
|
|
225
225
|
|
|
226
226
|
interface WorkerContext extends ContextRPC {}
|
|
227
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Check if the url is allowed to be served, via the `server.fs` config.
|
|
230
|
+
* @deprecated Use the `isFileLoadingAllowed` function instead.
|
|
231
|
+
*/
|
|
232
|
+
declare function isFileServingAllowed(config: ResolvedConfig$1, url: string): boolean;
|
|
233
|
+
declare function isFileServingAllowed(url: string, server: ViteDevServer): boolean;
|
|
234
|
+
|
|
228
235
|
declare function createViteLogger(console: Logger, level?: LogLevel, options?: LoggerOptions): Logger$1;
|
|
229
236
|
|
|
230
237
|
declare const rootDir: string;
|
|
@@ -238,5 +245,5 @@ declare const createViteServer: typeof vite.createServer;
|
|
|
238
245
|
|
|
239
246
|
declare const rolldownVersion: string | undefined;
|
|
240
247
|
|
|
241
|
-
export { ApiConfig, BaseSequencer, ForksPoolWorker, GitNotFoundError, PoolOptions, PoolWorker, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, ThreadsPoolWorker, TypecheckPoolWorker, Vitest, VitestOptions, VitestPlugin, VitestRunMode, VmForksPoolWorker, VmThreadsPoolWorker, WorkerRequest, createDebugger, createMethodsRPC, createViteLogger, createViteServer, createVitest, distDir, escapeTestName, getFilePoolName, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rolldownVersion, rootDir, startVitest, version };
|
|
248
|
+
export { ApiConfig, BaseSequencer, ForksPoolWorker, GitNotFoundError, PoolOptions, PoolWorker, ResolvedConfig, TestProject, TestSequencer, TestSpecification, UserConfig as TestUserConfig, FilesNotFoundError as TestsNotFoundError, ThreadsPoolWorker, TypecheckPoolWorker, Vitest, VitestOptions, VitestPlugin, VitestRunMode, VmForksPoolWorker, VmThreadsPoolWorker, WorkerRequest, createDebugger, createMethodsRPC, createViteLogger, createViteServer, createVitest, distDir, escapeTestName, getFilePoolName, isFileServingAllowed, isValidApiRequest, parseCLI, registerConsoleShortcuts, resolveApiServerConfig, resolveConfig, resolveFsAllow, rolldownVersion, rootDir, startVitest, version };
|
|
242
249
|
export type { CliOptions, CliParseOptions, ProcessPool, CollectLineNumbers as TypeCheckCollectLineNumbers, CollectLines as TypeCheckCollectLines, Context as TypeCheckContext, TscErrorInfo as TypeCheckErrorInfo, RawErrsMap as TypeCheckRawErrorsMap, RootAndTarget as TypeCheckRootAndTarget, WorkerContext };
|
package/dist/node.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
|
-
export { esbuildVersion, isCSSRequest,
|
|
4
|
-
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.
|
|
5
|
-
export { f as ForksPoolWorker, G as GitNotFoundError, F as TestsNotFoundError, T as ThreadsPoolWorker, h as TypecheckPoolWorker, b as VitestPackageInstaller, j as VmForksPoolWorker, k as VmThreadsPoolWorker,
|
|
6
|
-
export { p as parseCLI } from './chunks/cac.
|
|
7
|
-
import { r as resolveConfig$2 } from './chunks/coverage.
|
|
8
|
-
export { b as BaseSequencer, a as resolveApiServerConfig } from './chunks/coverage.
|
|
3
|
+
export { esbuildVersion, isCSSRequest, isFileLoadingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.BKg19Fvw.js';
|
|
5
|
+
export { f as ForksPoolWorker, G as GitNotFoundError, F as TestsNotFoundError, T as ThreadsPoolWorker, h as TypecheckPoolWorker, b as VitestPackageInstaller, j as VmForksPoolWorker, k as VmThreadsPoolWorker, p as createDebugger, d as createMethodsRPC, o as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, n as isFileServingAllowed, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.BKg19Fvw.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.BGonGPac.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.BuJUwVtg.js';
|
|
8
|
+
export { b as BaseSequencer, a as resolveApiServerConfig } from './chunks/coverage.BuJUwVtg.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
10
|
import { a as any } from './chunks/index.D4KonVSU.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
@@ -18,8 +18,8 @@ import 'node:path';
|
|
|
18
18
|
import 'node:os';
|
|
19
19
|
import '@vitest/snapshot/manager';
|
|
20
20
|
import 'node:perf_hooks';
|
|
21
|
-
import './chunks/index.
|
|
22
|
-
import './chunks/index.
|
|
21
|
+
import './chunks/index.Chj8NDwU.js';
|
|
22
|
+
import './chunks/index.456_DGfR.js';
|
|
23
23
|
import 'node:fs/promises';
|
|
24
24
|
import '@vitest/utils/source-map';
|
|
25
25
|
import 'tinyrainbow';
|
|
@@ -52,6 +52,7 @@ import '@vitest/utils/highlight';
|
|
|
52
52
|
import 'node:url';
|
|
53
53
|
import 'node:tty';
|
|
54
54
|
import 'node:events';
|
|
55
|
+
import './chunks/modules.BJuCwlRJ.js';
|
|
55
56
|
import 'node:child_process';
|
|
56
57
|
import 'node:worker_threads';
|
|
57
58
|
import 'picomatch';
|
|
@@ -62,7 +63,7 @@ import './chunks/defaults.BOqNVLsY.js';
|
|
|
62
63
|
import '@vitest/utils/constants';
|
|
63
64
|
import '@vitest/utils/resolver';
|
|
64
65
|
import 'es-module-lexer';
|
|
65
|
-
import './chunks/index.
|
|
66
|
+
import './chunks/index.Drsj_6e7.js';
|
|
66
67
|
import 'node:assert';
|
|
67
68
|
import '@vitest/utils/serialize';
|
|
68
69
|
import 'node:readline';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aR as BaseReporter, aS as BenchmarkBuiltinReporters, aE as BenchmarkReporter, aF as BenchmarkReportsMap, aT as BuiltinReporterOptions, aU as BuiltinReporters, aG as DefaultReporter, aH as DotReporter, aI as GithubActionsReporter, aJ as HangingProcessReporter, aL as JUnitReporter, aV as JsonAssertionResult, aK as JsonReporter, aW as JsonTestResult, aX as JsonTestResults, aB as ReportedHookContext, aC as Reporter, aM as ReportersMap, aN as TapFlatReporter, aO as TapReporter, aD as TestRunEndReason, aP as VerboseBenchmarkReporter, aQ as VerboseReporter } from './chunks/reporters.d.
|
|
1
|
+
export { aR as BaseReporter, aS as BenchmarkBuiltinReporters, aE as BenchmarkReporter, aF as BenchmarkReportsMap, aT as BuiltinReporterOptions, aU as BuiltinReporters, aG as DefaultReporter, aH as DotReporter, aI as GithubActionsReporter, aJ as HangingProcessReporter, aL as JUnitReporter, aV as JsonAssertionResult, aK as JsonReporter, aW as JsonTestResult, aX as JsonTestResults, aB as ReportedHookContext, aC as Reporter, aM as ReportersMap, aN as TapFlatReporter, aO as TapReporter, aD as TestRunEndReason, aP as VerboseBenchmarkReporter, aQ as VerboseReporter } from './chunks/reporters.d.Rsi0PyxX.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
4
|
import './chunks/rpc.d.RH3apGEf.js';
|
|
@@ -7,15 +7,15 @@ import 'vite/module-runner';
|
|
|
7
7
|
import './chunks/traces.d.402V_yFI.js';
|
|
8
8
|
import 'node:stream';
|
|
9
9
|
import 'vite';
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import './chunks/config.d.g6OOauRt.js';
|
|
10
|
+
import './chunks/browser.d.Bz3lxTX-.js';
|
|
11
|
+
import './chunks/worker.d.5JNaocaN.js';
|
|
12
|
+
import './chunks/config.d.CzIjkicf.js';
|
|
14
13
|
import '@vitest/pretty-format';
|
|
15
14
|
import '@vitest/utils/diff';
|
|
16
|
-
import './chunks/browser.d.F6jMf15V.js';
|
|
17
|
-
import './chunks/worker.d.DhEa3KzY.js';
|
|
18
15
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
16
|
+
import '@vitest/mocker';
|
|
17
|
+
import '@vitest/utils/source-map';
|
|
18
|
+
import 'vitest/browser';
|
|
19
19
|
import '@vitest/expect';
|
|
20
20
|
import 'vitest/optional-types.js';
|
|
21
21
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/reporters.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { 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, V as VerboseReporter } from './chunks/index.
|
|
2
|
-
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.
|
|
1
|
+
export { 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, V as VerboseReporter } from './chunks/index.456_DGfR.js';
|
|
2
|
+
export { B as BenchmarkReporter, a as BenchmarkReportsMap, V as VerboseBenchmarkReporter } from './chunks/index.Drsj_6e7.js';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
package/dist/runners.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tinybench from 'tinybench';
|
|
2
2
|
import { VitestRunner, VitestRunnerImportSource, Suite, File, Task, CancelReason, Test, TestContext, ImportDuration } from '@vitest/runner';
|
|
3
3
|
export { VitestRunner } from '@vitest/runner';
|
|
4
|
-
import { S as SerializedConfig } from './chunks/config.d.
|
|
4
|
+
import { S as SerializedConfig } from './chunks/config.d.CzIjkicf.js';
|
|
5
5
|
import { T as Traces } from './chunks/traces.d.402V_yFI.js';
|
|
6
6
|
import '@vitest/pretty-format';
|
|
7
7
|
import '@vitest/snapshot';
|
|
@@ -26,6 +26,7 @@ declare class VitestTestRunner implements VitestRunner {
|
|
|
26
26
|
private assertionsErrors;
|
|
27
27
|
pool: string;
|
|
28
28
|
private _otel;
|
|
29
|
+
viteEnvironment: string;
|
|
29
30
|
constructor(config: SerializedConfig);
|
|
30
31
|
importFile(filepath: string, source: VitestRunnerImportSource): unknown;
|
|
31
32
|
onCollectStart(file: File): void;
|
package/dist/runners.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.
|
|
1
|
+
export { N as NodeBenchmarkRunner, V as VitestTestRunner } from './chunks/test.B8ej_ZHS.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils/helpers';
|
|
4
4
|
import '@vitest/utils/timers';
|
|
@@ -8,12 +8,12 @@ import './chunks/utils.DvEY5TfP.js';
|
|
|
8
8
|
import '@vitest/expect';
|
|
9
9
|
import '@vitest/utils/error';
|
|
10
10
|
import 'pathe';
|
|
11
|
-
import './chunks/vi.
|
|
11
|
+
import './chunks/vi.2VT5v0um.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/spy';
|
|
14
14
|
import '@vitest/utils/offset';
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
16
|
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
17
17
|
import './chunks/date.Bq6ZW5rf.js';
|
|
18
|
-
import './chunks/rpc.
|
|
19
|
-
import './chunks/index.
|
|
18
|
+
import './chunks/rpc.BoxB0q7B.js';
|
|
19
|
+
import './chunks/index.Chj8NDwU.js';
|
package/dist/worker.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { W as WorkerGlobalState,
|
|
1
|
+
import { W as WorkerGlobalState, a as WorkerSetupContext, B as BirpcOptions } from './chunks/worker.d.5JNaocaN.js';
|
|
2
2
|
import { T as Traces } from './chunks/traces.d.402V_yFI.js';
|
|
3
3
|
import { Awaitable } from '@vitest/utils';
|
|
4
4
|
import { R as RuntimeRPC } from './chunks/rpc.d.RH3apGEf.js';
|
|
5
5
|
import '@vitest/runner';
|
|
6
6
|
import 'vite/module-runner';
|
|
7
|
-
import './chunks/config.d.
|
|
7
|
+
import './chunks/config.d.CzIjkicf.js';
|
|
8
8
|
import '@vitest/pretty-format';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/diff';
|
|
11
11
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
12
12
|
|
|
13
|
+
/** @experimental */
|
|
14
|
+
declare function setupEnvironment(context: WorkerSetupContext): Promise<() => Promise<void>>;
|
|
13
15
|
/** @experimental */
|
|
14
16
|
declare function runBaseTests(method: "run" | "collect", state: WorkerGlobalState, traces: Traces): Promise<void>;
|
|
15
17
|
|
|
@@ -26,4 +28,4 @@ interface Options extends VitestWorker {
|
|
|
26
28
|
/** @experimental */
|
|
27
29
|
declare function init(worker: Options): void;
|
|
28
30
|
|
|
29
|
-
export { init, runBaseTests };
|
|
31
|
+
export { init, runBaseTests, setupEnvironment };
|
package/dist/worker.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
export { r as runBaseTests } from './chunks/base.
|
|
2
|
-
export { i as init } from './chunks/init.
|
|
1
|
+
export { r as runBaseTests, s as setupEnvironment } from './chunks/base.Bin-9uYm.js';
|
|
2
|
+
export { i as init } from './chunks/init.KmQZdqFg.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/index.
|
|
5
|
+
import './chunks/index.6Qv1eEA6.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
|
-
import './chunks/setup-common.
|
|
7
|
+
import './chunks/setup-common.Cm-kSBVi.js';
|
|
8
8
|
import './chunks/coverage.D_JHT54q.js';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/timers';
|
|
11
11
|
import './chunks/utils.DvEY5TfP.js';
|
|
12
|
-
import './chunks/rpc.
|
|
13
|
-
import './chunks/index.
|
|
14
|
-
import './chunks/test.
|
|
12
|
+
import './chunks/rpc.BoxB0q7B.js';
|
|
13
|
+
import './chunks/index.Chj8NDwU.js';
|
|
14
|
+
import './chunks/test.B8ej_ZHS.js';
|
|
15
15
|
import '@vitest/runner';
|
|
16
16
|
import '@vitest/utils/helpers';
|
|
17
17
|
import './chunks/benchmark.B3N2zMcH.js';
|
|
18
18
|
import '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/utils/error';
|
|
20
20
|
import 'pathe';
|
|
21
|
-
import './chunks/vi.
|
|
21
|
+
import './chunks/vi.2VT5v0um.js';
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import './chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
25
|
import './chunks/date.Bq6ZW5rf.js';
|
|
26
26
|
import './chunks/evaluatedModules.Dg1zASAC.js';
|
|
27
27
|
import 'vite/module-runner';
|
|
28
|
-
import './chunks/startModuleRunner.
|
|
28
|
+
import './chunks/startModuleRunner.DpqpB8k3.js';
|
|
29
29
|
import 'node:fs';
|
|
30
|
+
import './chunks/modules.BJuCwlRJ.js';
|
|
30
31
|
import 'node:module';
|
|
31
32
|
import 'node:url';
|
|
32
33
|
import './path.js';
|
|
@@ -41,7 +42,7 @@ import 'node:timers';
|
|
|
41
42
|
import 'node:timers/promises';
|
|
42
43
|
import 'node:util';
|
|
43
44
|
import '@vitest/utils/constants';
|
|
44
|
-
import './chunks/index.
|
|
45
|
+
import './chunks/index.Z5E_ObnR.js';
|
|
45
46
|
import 'expect-type';
|
|
46
47
|
import './chunks/index.BspFP3mn.js';
|
|
47
48
|
import 'node:console';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { r as runBaseTests, s as setupEnvironment } from '../chunks/base.
|
|
2
|
-
import { w as workerInit } from '../chunks/init-forks.
|
|
1
|
+
import { r as runBaseTests, s as setupEnvironment } from '../chunks/base.Bin-9uYm.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-forks.v9UONQS6.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import '../chunks/index.
|
|
5
|
+
import '../chunks/index.6Qv1eEA6.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
|
-
import '../chunks/setup-common.
|
|
7
|
+
import '../chunks/setup-common.Cm-kSBVi.js';
|
|
8
8
|
import '../chunks/coverage.D_JHT54q.js';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/timers';
|
|
11
11
|
import '../chunks/utils.DvEY5TfP.js';
|
|
12
|
-
import '../chunks/rpc.
|
|
13
|
-
import '../chunks/index.
|
|
14
|
-
import '../chunks/test.
|
|
12
|
+
import '../chunks/rpc.BoxB0q7B.js';
|
|
13
|
+
import '../chunks/index.Chj8NDwU.js';
|
|
14
|
+
import '../chunks/test.B8ej_ZHS.js';
|
|
15
15
|
import '@vitest/runner';
|
|
16
16
|
import '@vitest/utils/helpers';
|
|
17
17
|
import '../chunks/benchmark.B3N2zMcH.js';
|
|
18
18
|
import '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/utils/error';
|
|
20
20
|
import 'pathe';
|
|
21
|
-
import '../chunks/vi.
|
|
21
|
+
import '../chunks/vi.2VT5v0um.js';
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
25
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
26
|
-
import '../chunks/init.
|
|
26
|
+
import '../chunks/init.KmQZdqFg.js';
|
|
27
27
|
import 'node:fs';
|
|
28
28
|
import 'node:module';
|
|
29
29
|
import 'node:url';
|
|
30
30
|
import 'vite/module-runner';
|
|
31
|
-
import '../chunks/startModuleRunner.
|
|
31
|
+
import '../chunks/startModuleRunner.DpqpB8k3.js';
|
|
32
|
+
import '../chunks/modules.BJuCwlRJ.js';
|
|
32
33
|
import '../path.js';
|
|
33
34
|
import 'node:path';
|
|
34
35
|
import '@vitest/utils/serialize';
|
|
@@ -44,7 +45,7 @@ import 'node:timers';
|
|
|
44
45
|
import 'node:timers/promises';
|
|
45
46
|
import 'node:util';
|
|
46
47
|
import '@vitest/utils/constants';
|
|
47
|
-
import '../chunks/index.
|
|
48
|
+
import '../chunks/index.Z5E_ObnR.js';
|
|
48
49
|
import 'expect-type';
|
|
49
50
|
|
|
50
51
|
workerInit({
|
|
@@ -5,17 +5,17 @@ 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 } from '../chunks/index.
|
|
9
|
-
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/setup-common.
|
|
10
|
-
import { i as index } from '../chunks/index.
|
|
8
|
+
import { s as setupChaiConfig, r as resolveTestRunner, a as resolveSnapshotEnvironment } from '../chunks/index.6Qv1eEA6.js';
|
|
9
|
+
import { c as setupCommonEnv, s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from '../chunks/setup-common.Cm-kSBVi.js';
|
|
10
|
+
import { i as index } from '../chunks/index.Z5E_ObnR.js';
|
|
11
11
|
import { c as closeInspector } from '../chunks/inspector.CvyFGlXm.js';
|
|
12
12
|
import { g as getWorkerState } from '../chunks/utils.DvEY5TfP.js';
|
|
13
|
-
import { g as globalExpect } from '../chunks/vi.
|
|
13
|
+
import { g as globalExpect } from '../chunks/vi.2VT5v0um.js';
|
|
14
14
|
import '@vitest/expect';
|
|
15
|
-
import '../chunks/rpc.
|
|
15
|
+
import '../chunks/rpc.BoxB0q7B.js';
|
|
16
16
|
import '@vitest/utils/timers';
|
|
17
|
-
import '../chunks/index.
|
|
18
|
-
import '../chunks/test.
|
|
17
|
+
import '../chunks/index.Chj8NDwU.js';
|
|
18
|
+
import '../chunks/test.B8ej_ZHS.js';
|
|
19
19
|
import '@vitest/utils/helpers';
|
|
20
20
|
import '../chunks/benchmark.B3N2zMcH.js';
|
|
21
21
|
import '@vitest/runner/utils';
|
package/dist/workers/threads.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { s as setupEnvironment, r as runBaseTests } from '../chunks/base.
|
|
2
|
-
import { w as workerInit } from '../chunks/init-threads.
|
|
1
|
+
import { s as setupEnvironment, r as runBaseTests } from '../chunks/base.Bin-9uYm.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-threads.DqYg3Trk.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import '../chunks/index.
|
|
5
|
+
import '../chunks/index.6Qv1eEA6.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
|
-
import '../chunks/setup-common.
|
|
7
|
+
import '../chunks/setup-common.Cm-kSBVi.js';
|
|
8
8
|
import '../chunks/coverage.D_JHT54q.js';
|
|
9
9
|
import '@vitest/snapshot';
|
|
10
10
|
import '@vitest/utils/timers';
|
|
11
11
|
import '../chunks/utils.DvEY5TfP.js';
|
|
12
|
-
import '../chunks/rpc.
|
|
13
|
-
import '../chunks/index.
|
|
14
|
-
import '../chunks/test.
|
|
12
|
+
import '../chunks/rpc.BoxB0q7B.js';
|
|
13
|
+
import '../chunks/index.Chj8NDwU.js';
|
|
14
|
+
import '../chunks/test.B8ej_ZHS.js';
|
|
15
15
|
import '@vitest/runner';
|
|
16
16
|
import '@vitest/utils/helpers';
|
|
17
17
|
import '../chunks/benchmark.B3N2zMcH.js';
|
|
18
18
|
import '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/utils/error';
|
|
20
20
|
import 'pathe';
|
|
21
|
-
import '../chunks/vi.
|
|
21
|
+
import '../chunks/vi.2VT5v0um.js';
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.D26ty3Ew.js';
|
|
25
25
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
26
|
-
import '../chunks/init.
|
|
26
|
+
import '../chunks/init.KmQZdqFg.js';
|
|
27
27
|
import 'node:fs';
|
|
28
28
|
import 'node:module';
|
|
29
29
|
import 'node:url';
|
|
30
30
|
import 'vite/module-runner';
|
|
31
|
-
import '../chunks/startModuleRunner.
|
|
31
|
+
import '../chunks/startModuleRunner.DpqpB8k3.js';
|
|
32
|
+
import '../chunks/modules.BJuCwlRJ.js';
|
|
32
33
|
import '../path.js';
|
|
33
34
|
import 'node:path';
|
|
34
35
|
import '@vitest/utils/serialize';
|
|
@@ -44,7 +45,7 @@ import 'node:timers';
|
|
|
44
45
|
import 'node:timers/promises';
|
|
45
46
|
import 'node:util';
|
|
46
47
|
import '@vitest/utils/constants';
|
|
47
|
-
import '../chunks/index.
|
|
48
|
+
import '../chunks/index.Z5E_ObnR.js';
|
|
48
49
|
import 'expect-type';
|
|
49
50
|
import 'node:worker_threads';
|
|
50
51
|
|
package/dist/workers/vmForks.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { w as workerInit } from '../chunks/init-forks.
|
|
2
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
3
|
-
import '../chunks/init.
|
|
1
|
+
import { w as workerInit } from '../chunks/init-forks.v9UONQS6.js';
|
|
2
|
+
import { r as runVmTests } from '../chunks/vm.qFl6P1nF.js';
|
|
3
|
+
import '../chunks/init.KmQZdqFg.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:module';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'pathe';
|
|
8
8
|
import 'vite/module-runner';
|
|
9
|
-
import '../chunks/startModuleRunner.
|
|
9
|
+
import '../chunks/startModuleRunner.DpqpB8k3.js';
|
|
10
10
|
import '@vitest/utils/helpers';
|
|
11
|
+
import '../chunks/modules.BJuCwlRJ.js';
|
|
11
12
|
import '../path.js';
|
|
12
13
|
import 'node:path';
|
|
13
14
|
import '@vitest/utils/serialize';
|
|
@@ -18,9 +19,9 @@ import '@vitest/mocker';
|
|
|
18
19
|
import '../chunks/index.BspFP3mn.js';
|
|
19
20
|
import 'node:console';
|
|
20
21
|
import '@vitest/utils/error';
|
|
21
|
-
import '../chunks/rpc.
|
|
22
|
+
import '../chunks/rpc.BoxB0q7B.js';
|
|
22
23
|
import '@vitest/utils/timers';
|
|
23
|
-
import '../chunks/index.
|
|
24
|
+
import '../chunks/index.Chj8NDwU.js';
|
|
24
25
|
import '../chunks/utils.DvEY5TfP.js';
|
|
25
26
|
import '@vitest/utils/source-map';
|
|
26
27
|
import '../chunks/inspector.CvyFGlXm.js';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { w as workerInit } from '../chunks/init-threads.
|
|
2
|
-
import { r as runVmTests } from '../chunks/vm.
|
|
1
|
+
import { w as workerInit } from '../chunks/init-threads.DqYg3Trk.js';
|
|
2
|
+
import { r as runVmTests } from '../chunks/vm.qFl6P1nF.js';
|
|
3
3
|
import 'node:worker_threads';
|
|
4
|
-
import '../chunks/init.
|
|
4
|
+
import '../chunks/init.KmQZdqFg.js';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:module';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'pathe';
|
|
9
9
|
import 'vite/module-runner';
|
|
10
|
-
import '../chunks/startModuleRunner.
|
|
10
|
+
import '../chunks/startModuleRunner.DpqpB8k3.js';
|
|
11
11
|
import '@vitest/utils/helpers';
|
|
12
|
+
import '../chunks/modules.BJuCwlRJ.js';
|
|
12
13
|
import '../path.js';
|
|
13
14
|
import 'node:path';
|
|
14
15
|
import '@vitest/utils/serialize';
|
|
@@ -19,9 +20,9 @@ import '@vitest/mocker';
|
|
|
19
20
|
import '../chunks/index.BspFP3mn.js';
|
|
20
21
|
import 'node:console';
|
|
21
22
|
import '@vitest/utils/error';
|
|
22
|
-
import '../chunks/rpc.
|
|
23
|
+
import '../chunks/rpc.BoxB0q7B.js';
|
|
23
24
|
import '@vitest/utils/timers';
|
|
24
|
-
import '../chunks/index.
|
|
25
|
+
import '../chunks/index.Chj8NDwU.js';
|
|
25
26
|
import '../chunks/utils.DvEY5TfP.js';
|
|
26
27
|
import '@vitest/utils/source-map';
|
|
27
28
|
import '../chunks/inspector.CvyFGlXm.js';
|