vitest 4.0.8 → 4.0.9
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 +1 -1
- package/dist/chunks/{base.BgTO2qAg.js → base.CiIV2DDC.js} +6 -6
- package/dist/chunks/{browser.d.DTTM2PTh.d.ts → browser.d.DnU_kh8a.d.ts} +1 -1
- package/dist/chunks/{cac.CfkWq8Qy.js → cac.B_NTJoIH.js} +4 -4
- package/dist/chunks/{cli-api.BQ-bjcRi.js → cli-api.D48wY175.js} +12 -12
- package/dist/chunks/{coverage.NVjCOln1.js → coverage.BUlIqJrL.js} +11 -11
- package/dist/chunks/{creator.fzVyoMf3.js → creator.BzqvXeRE.js} +1 -1
- package/dist/chunks/{global.d.DVdCfKp5.d.ts → global.d.BQDgW9Pr.d.ts} +1 -1
- package/dist/chunks/{globals.DOh96BiR.js → globals.DBrtKPdh.js} +2 -2
- package/dist/chunks/{index.DAL392Ss.js → index.0kCJoeWi.js} +94 -75
- package/dist/chunks/{index.DfKyPFVi.js → index.BfmpdV5p.js} +6 -0
- package/dist/chunks/{index.DIFZf73e.js → index.CGezRSGU.js} +1 -1
- package/dist/chunks/{index.BY4-tcno.js → index.CPA8jGhR.js} +3 -3
- package/dist/chunks/{index.Dc3xnDvT.js → index.z7NPOg2E.js} +4 -4
- package/dist/chunks/{init-forks.2hx7cf78.js → init-forks.aqTzCSR2.js} +1 -1
- package/dist/chunks/{init-threads.Cm4OCIWA.js → init-threads.C7T0-YMD.js} +1 -1
- package/dist/chunks/{init.DMDG-idf.js → init.BQhNfT0h.js} +3 -3
- package/dist/chunks/{moduleRunner.d.CzOZ_4wC.d.ts → moduleRunner.d.BxT-OjLR.d.ts} +1 -1
- package/dist/chunks/{plugin.d.D4RrtywJ.d.ts → plugin.d.DevON6kQ.d.ts} +1 -1
- package/dist/chunks/{reporters.d.Da1D1VbQ.d.ts → reporters.d.BQ0wpUaj.d.ts} +2 -2
- package/dist/chunks/{rpc.BUV7uWKJ.js → rpc.BytlcPfC.js} +1 -1
- package/dist/chunks/{setup-common.LGjNSzXp.js → setup-common.Dw1XgX0v.js} +1 -1
- package/dist/chunks/{startModuleRunner.BOmUtLIO.js → startModuleRunner.DLjmA_wU.js} +9 -9
- package/dist/chunks/{test.ClrAtjMv.js → test.w5HLbjmU.js} +2 -2
- package/dist/chunks/{vi.Bgcdy3bQ.js → vi.CyIUVSoU.js} +6 -6
- package/dist/chunks/{vm.BIkCDs68.js → vm.DXN8eCh2.js} +11 -11
- package/dist/chunks/{worker.d.DadbA89M.d.ts → worker.d.ZGohxCEd.d.ts} +44 -5
- package/dist/cli.js +1 -1
- package/dist/config.d.ts +5 -5
- package/dist/coverage.d.ts +3 -3
- package/dist/coverage.js +1 -1
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/module-evaluator.d.ts +2 -2
- package/dist/module-evaluator.js +6 -6
- package/dist/module-runner.js +1 -1
- package/dist/node.d.ts +7 -7
- package/dist/node.js +7 -7
- package/dist/reporters.d.ts +3 -3
- package/dist/runners.js +4 -4
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +11 -11
- package/dist/workers/forks.js +12 -12
- package/dist/workers/runVmTests.js +7 -7
- package/dist/workers/threads.js +12 -12
- package/dist/workers/vmForks.js +7 -7
- package/dist/workers/vmThreads.js +7 -7
- package/package.json +13 -13
|
@@ -351,8 +351,8 @@ class VitestMocker {
|
|
|
351
351
|
async callFunctionMock(id, url, mock) {
|
|
352
352
|
const node = this.ensureModule(id, url);
|
|
353
353
|
if (node.exports) return node.exports;
|
|
354
|
-
const exports = await mock.resolve();
|
|
355
|
-
const moduleExports = new Proxy(exports, { get: (target, prop) => {
|
|
354
|
+
const exports$1 = await mock.resolve();
|
|
355
|
+
const moduleExports = new Proxy(exports$1, { get: (target, prop) => {
|
|
356
356
|
const val = target[prop];
|
|
357
357
|
// 'then' can exist on non-Promise objects, need nested instanceof check for logic to work
|
|
358
358
|
if (prop === "then") {
|
|
@@ -444,8 +444,8 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
|
|
|
444
444
|
const Object = this.primitives.Object;
|
|
445
445
|
// we have to define a separate object that will copy all properties into itself
|
|
446
446
|
// and can't just use the same `exports` define automatically by Vite before the evaluator
|
|
447
|
-
const exports = Object.create(null);
|
|
448
|
-
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
447
|
+
const exports$1 = Object.create(null);
|
|
448
|
+
Object.defineProperty(exports$1, Symbol.toStringTag, {
|
|
449
449
|
value: "Module",
|
|
450
450
|
configurable: true,
|
|
451
451
|
writable: true
|
|
@@ -453,10 +453,10 @@ If you need to partially mock a module, you can use "importOriginal" helper insi
|
|
|
453
453
|
const node = this.ensureModule(mockId, this.getMockPath(evaluatedNode.url));
|
|
454
454
|
node.meta = evaluatedNode.meta;
|
|
455
455
|
node.file = evaluatedNode.file;
|
|
456
|
-
node.mockedExports = exports;
|
|
456
|
+
node.mockedExports = exports$1;
|
|
457
457
|
const mod = await this.moduleRunner.cachedRequest(url, node, callstack, void 0, true);
|
|
458
|
-
this.mockObject(mod, exports, mock.type);
|
|
459
|
-
return exports;
|
|
458
|
+
this.mockObject(mod, exports$1, mock.type);
|
|
459
|
+
return exports$1;
|
|
460
460
|
}
|
|
461
461
|
if (mock.type === "manual" && !callstack.includes(mockId) && !callstack.includes(url)) try {
|
|
462
462
|
callstack.push(mockId);
|
|
@@ -595,8 +595,8 @@ class VitestModuleRunner extends viteModuleRunner.ModuleRunner {
|
|
|
595
595
|
* We should keep the Vite behavour when there is a `strict` flag.
|
|
596
596
|
* @internal
|
|
597
597
|
*/
|
|
598
|
-
processImport(exports) {
|
|
599
|
-
return exports;
|
|
598
|
+
processImport(exports$1) {
|
|
599
|
+
return exports$1;
|
|
600
600
|
}
|
|
601
601
|
async import(rawId) {
|
|
602
602
|
const resolved = await this.vitestOptions.transport.resolveId(rawId);
|
|
@@ -7,8 +7,8 @@ import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect';
|
|
|
7
7
|
import { getTests, getNames, getTestName } from '@vitest/runner/utils';
|
|
8
8
|
import { processError } from '@vitest/utils/error';
|
|
9
9
|
import { normalize } from 'pathe';
|
|
10
|
-
import { a as getSnapshotClient, i as inject, c as createExpect, v as vi } from './vi.
|
|
11
|
-
import { r as rpc } from './rpc.
|
|
10
|
+
import { a as getSnapshotClient, i as inject, c as createExpect, v as vi } from './vi.CyIUVSoU.js';
|
|
11
|
+
import { r as rpc } from './rpc.BytlcPfC.js';
|
|
12
12
|
|
|
13
13
|
function createBenchmarkResult(name) {
|
|
14
14
|
return {
|
|
@@ -584,7 +584,7 @@ var hasRequiredDeprecated;
|
|
|
584
584
|
function requireDeprecated () {
|
|
585
585
|
if (hasRequiredDeprecated) return deprecated;
|
|
586
586
|
hasRequiredDeprecated = 1;
|
|
587
|
-
(function (exports) {
|
|
587
|
+
(function (exports$1) {
|
|
588
588
|
|
|
589
589
|
/**
|
|
590
590
|
* Returns a function that will invoke the supplied function and print a
|
|
@@ -593,9 +593,9 @@ function requireDeprecated () {
|
|
|
593
593
|
* @param {string} msg
|
|
594
594
|
* @returns {Function}
|
|
595
595
|
*/
|
|
596
|
-
exports.wrap = function (func, msg) {
|
|
596
|
+
exports$1.wrap = function (func, msg) {
|
|
597
597
|
var wrapped = function () {
|
|
598
|
-
exports.printWarning(msg);
|
|
598
|
+
exports$1.printWarning(msg);
|
|
599
599
|
return func.apply(this, arguments);
|
|
600
600
|
};
|
|
601
601
|
if (func.prototype) {
|
|
@@ -611,7 +611,7 @@ function requireDeprecated () {
|
|
|
611
611
|
* @param {string} funcName
|
|
612
612
|
* @returns {string}
|
|
613
613
|
*/
|
|
614
|
-
exports.defaultMsg = function (packageName, funcName) {
|
|
614
|
+
exports$1.defaultMsg = function (packageName, funcName) {
|
|
615
615
|
return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;
|
|
616
616
|
};
|
|
617
617
|
|
|
@@ -620,7 +620,7 @@ function requireDeprecated () {
|
|
|
620
620
|
* @param {string} msg
|
|
621
621
|
* @returns {undefined}
|
|
622
622
|
*/
|
|
623
|
-
exports.printWarning = function (msg) {
|
|
623
|
+
exports$1.printWarning = function (msg) {
|
|
624
624
|
/* istanbul ignore next */
|
|
625
625
|
if (typeof process === "object" && process.emitWarning) {
|
|
626
626
|
// Emit Warnings in Node
|
|
@@ -839,7 +839,7 @@ var hasRequiredTypeDetect;
|
|
|
839
839
|
function requireTypeDetect () {
|
|
840
840
|
if (hasRequiredTypeDetect) return typeDetect$1.exports;
|
|
841
841
|
hasRequiredTypeDetect = 1;
|
|
842
|
-
(function (module, exports) {
|
|
842
|
+
(function (module, exports$1) {
|
|
843
843
|
(function (global, factory) {
|
|
844
844
|
module.exports = factory() ;
|
|
845
845
|
}(typeDetect, (function () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
2
2
|
import vm, { isContext, runInContext } from 'node:vm';
|
|
3
3
|
import { dirname, basename, extname, normalize, resolve } from 'pathe';
|
|
4
|
-
import { l as loadEnvironment } from './init.
|
|
4
|
+
import { l as loadEnvironment } from './init.BQhNfT0h.js';
|
|
5
5
|
import { distDir } from '../path.js';
|
|
6
6
|
import { createCustomConsole } from './console.Cf-YriPC.js';
|
|
7
7
|
import fs from 'node:fs';
|
|
@@ -11,7 +11,7 @@ import { findNearestPackageData } from '@vitest/utils/resolver';
|
|
|
11
11
|
import { dirname as dirname$1 } from 'node:path';
|
|
12
12
|
import { CSS_LANGS_RE, KNOWN_ASSET_RE } from '@vitest/utils/constants';
|
|
13
13
|
import { getDefaultRequestStubs } from '../module-evaluator.js';
|
|
14
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.
|
|
14
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta, a as VITEST_VM_CONTEXT_SYMBOL } from './startModuleRunner.DLjmA_wU.js';
|
|
15
15
|
import { p as provideWorkerState } from './utils.DvEY5TfP.js';
|
|
16
16
|
|
|
17
17
|
function interopCommonJsModule(interopDefault, mod) {
|
|
@@ -232,11 +232,11 @@ class CommonjsExecutor {
|
|
|
232
232
|
}
|
|
233
233
|
getCoreSyntheticModule(identifier) {
|
|
234
234
|
if (this.moduleCache.has(identifier)) return this.moduleCache.get(identifier);
|
|
235
|
-
const exports = this.require(identifier);
|
|
236
|
-
const keys = Object.keys(exports);
|
|
235
|
+
const exports$1 = this.require(identifier);
|
|
236
|
+
const keys = Object.keys(exports$1);
|
|
237
237
|
const module = new SyntheticModule([...keys, "default"], () => {
|
|
238
|
-
for (const key of keys) module.setExport(key, exports[key]);
|
|
239
|
-
module.setExport("default", exports);
|
|
238
|
+
for (const key of keys) module.setExport(key, exports$1[key]);
|
|
239
|
+
module.setExport("default", exports$1);
|
|
240
240
|
}, {
|
|
241
241
|
context: this.context,
|
|
242
242
|
identifier
|
|
@@ -246,9 +246,9 @@ class CommonjsExecutor {
|
|
|
246
246
|
}
|
|
247
247
|
getCjsSyntheticModule(path, identifier) {
|
|
248
248
|
if (this.moduleCache.has(identifier)) return this.moduleCache.get(identifier);
|
|
249
|
-
const exports = this.require(path);
|
|
249
|
+
const exports$1 = this.require(path);
|
|
250
250
|
// TODO: technically module should be parsed to find static exports, implement for strict mode in #2854
|
|
251
|
-
const { keys, moduleExports, defaultExport } = interopCommonJsModule(this.interopDefault, exports);
|
|
251
|
+
const { keys, moduleExports, defaultExport } = interopCommonJsModule(this.interopDefault, exports$1);
|
|
252
252
|
const module = new SyntheticModule([...keys, "default"], function() {
|
|
253
253
|
for (const key of keys) this.setExport(key, moduleExports[key]);
|
|
254
254
|
this.setExport("default", defaultExport);
|
|
@@ -391,12 +391,12 @@ class EsmExecutor {
|
|
|
391
391
|
const cached = this.moduleCache.get(identifier);
|
|
392
392
|
if (cached) return cached;
|
|
393
393
|
const wasmModule = await WebAssembly.compile(source);
|
|
394
|
-
const exports = WebAssembly.Module.exports(wasmModule);
|
|
394
|
+
const exports$1 = WebAssembly.Module.exports(wasmModule);
|
|
395
395
|
const imports = WebAssembly.Module.imports(wasmModule);
|
|
396
396
|
const moduleLookup = {};
|
|
397
397
|
for (const { module } of imports) if (moduleLookup[module] === void 0) moduleLookup[module] = await this.executor.resolveModule(module, identifier);
|
|
398
398
|
const evaluateModule = (module) => this.evaluateModule(module);
|
|
399
|
-
return new SyntheticModule(exports.map(({ name }) => name), async function() {
|
|
399
|
+
return new SyntheticModule(exports$1.map(({ name }) => name), async function() {
|
|
400
400
|
const importsObject = {};
|
|
401
401
|
for (const { module, name } of imports) {
|
|
402
402
|
if (!importsObject[module]) importsObject[module] = {};
|
|
@@ -404,7 +404,7 @@ class EsmExecutor {
|
|
|
404
404
|
importsObject[module][name] = moduleLookup[module].namespace[name];
|
|
405
405
|
}
|
|
406
406
|
const wasmInstance = new WebAssembly.Instance(wasmModule, importsObject);
|
|
407
|
-
for (const { name } of exports) this.setExport(name, wasmInstance.exports[name]);
|
|
407
|
+
for (const { name } of exports$1) this.setExport(name, wasmInstance.exports[name]);
|
|
408
408
|
}, {
|
|
409
409
|
context: this.context,
|
|
410
410
|
identifier
|
|
@@ -132,14 +132,49 @@ type BirpcFn<T> = PromisifyFn<T> & {
|
|
|
132
132
|
*/
|
|
133
133
|
asEvent: (...args: ArgumentsType<T>) => Promise<void>;
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
interface BirpcReturnBuiltin<RemoteFunctions, LocalFunctions = Record<string, never>> {
|
|
136
|
+
/**
|
|
137
|
+
* Raw functions object
|
|
138
|
+
*/
|
|
138
139
|
$functions: LocalFunctions;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the RPC is closed
|
|
142
|
+
*/
|
|
143
|
+
readonly $closed: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Close the RPC connection
|
|
146
|
+
*/
|
|
139
147
|
$close: (error?: Error) => void;
|
|
140
|
-
|
|
148
|
+
/**
|
|
149
|
+
* Reject pending calls
|
|
150
|
+
*/
|
|
141
151
|
$rejectPendingCalls: (handler?: PendingCallHandler) => Promise<void>[];
|
|
142
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Call the remote function and wait for the result.
|
|
154
|
+
* An alternative to directly calling the function
|
|
155
|
+
*/
|
|
156
|
+
$call: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]>>>;
|
|
157
|
+
/**
|
|
158
|
+
* Same as `$call`, but returns `undefined` if the function is not defined on the remote side.
|
|
159
|
+
*/
|
|
160
|
+
$callOptional: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<Awaited<ReturnType<RemoteFunctions[K]> | undefined>>;
|
|
161
|
+
/**
|
|
162
|
+
* Send event without asking for response
|
|
163
|
+
*/
|
|
164
|
+
$callEvent: <K extends keyof RemoteFunctions>(method: K, ...args: ArgumentsType<RemoteFunctions[K]>) => Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* Call the remote function with the raw options.
|
|
167
|
+
*/
|
|
168
|
+
$callRaw: (options: {
|
|
169
|
+
method: string;
|
|
170
|
+
args: unknown[];
|
|
171
|
+
event?: boolean;
|
|
172
|
+
optional?: boolean;
|
|
173
|
+
}) => Promise<Awaited<ReturnType<any>>[]>;
|
|
174
|
+
}
|
|
175
|
+
type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {
|
|
176
|
+
[K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
|
|
177
|
+
} & BirpcReturnBuiltin<RemoteFunctions, LocalFunctions>;
|
|
143
178
|
type PendingCallHandler = (options: Pick<PromiseEntry, 'method' | 'reject'>) => void | Promise<void>;
|
|
144
179
|
interface PromiseEntry {
|
|
145
180
|
resolve: (arg: any) => void;
|
|
@@ -165,6 +200,10 @@ interface Request {
|
|
|
165
200
|
* Arguments
|
|
166
201
|
*/
|
|
167
202
|
a: any[];
|
|
203
|
+
/**
|
|
204
|
+
* Optional
|
|
205
|
+
*/
|
|
206
|
+
o?: boolean;
|
|
168
207
|
}
|
|
169
208
|
declare const setTimeout: typeof globalThis.setTimeout;
|
|
170
209
|
|
package/dist/cli.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HookHandler, ConfigEnv, UserConfig } from 'vite';
|
|
2
2
|
export { ConfigEnv, Plugin, UserConfig as ViteUserConfig, mergeConfig } from 'vite';
|
|
3
|
-
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.
|
|
4
|
-
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.
|
|
5
|
-
import { V as VitestPluginContext } from './chunks/plugin.d.
|
|
3
|
+
import { I as InlineConfig, c as CoverageV8Options, R as ResolvedCoverageOptions, U as UserWorkspaceConfig, d as UserProjectConfigFn, e as UserProjectConfigExport } from './chunks/reporters.d.BQ0wpUaj.js';
|
|
4
|
+
export { a as TestProjectConfiguration, g as TestProjectInlineConfiguration, f as TestUserConfig, W as WatcherTriggerPattern } from './chunks/reporters.d.BQ0wpUaj.js';
|
|
5
|
+
import { V as VitestPluginContext } from './chunks/plugin.d.DevON6kQ.js';
|
|
6
6
|
import { F as FakeTimerInstallOpts } from './chunks/config.d.BTfZNUu9.js';
|
|
7
7
|
import '@vitest/runner';
|
|
8
8
|
import '@vitest/utils';
|
|
9
|
-
import './chunks/worker.d.
|
|
9
|
+
import './chunks/worker.d.ZGohxCEd.js';
|
|
10
10
|
import 'vite/module-runner';
|
|
11
11
|
import './chunks/environment.d.CrsxCzP1.js';
|
|
12
12
|
import '@vitest/snapshot';
|
|
@@ -14,7 +14,7 @@ import 'node:stream';
|
|
|
14
14
|
import '@vitest/mocker';
|
|
15
15
|
import '@vitest/utils/source-map';
|
|
16
16
|
import 'vitest/browser';
|
|
17
|
-
import './chunks/browser.d.
|
|
17
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
18
18
|
import '@vitest/pretty-format';
|
|
19
19
|
import '@vitest/utils/diff';
|
|
20
20
|
import '@vitest/expect';
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.
|
|
1
|
+
import { R as ResolvedCoverageOptions, V as Vitest, C as CoverageMap, b as ReportContext } from './chunks/reporters.d.BQ0wpUaj.js';
|
|
2
2
|
import { TransformResult } from 'vite';
|
|
3
|
-
import { A as AfterSuiteRunMeta } from './chunks/worker.d.
|
|
3
|
+
import { A as AfterSuiteRunMeta } from './chunks/worker.d.ZGohxCEd.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils';
|
|
6
6
|
import 'node:stream';
|
|
@@ -11,7 +11,7 @@ import './chunks/config.d.BTfZNUu9.js';
|
|
|
11
11
|
import '@vitest/pretty-format';
|
|
12
12
|
import '@vitest/snapshot';
|
|
13
13
|
import '@vitest/utils/diff';
|
|
14
|
-
import './chunks/browser.d.
|
|
14
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
15
15
|
import '@vitest/expect';
|
|
16
16
|
import 'vitest/optional-types.js';
|
|
17
17
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
package/dist/coverage.js
CHANGED
package/dist/environments.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SerializedTestSpecification } from './chunks/browser.d.
|
|
2
|
-
export { B as BrowserTesterOptions } from './chunks/browser.d.
|
|
3
|
-
import './chunks/global.d.
|
|
1
|
+
import { S as SerializedTestSpecification } from './chunks/browser.d.DnU_kh8a.js';
|
|
2
|
+
export { B as BrowserTesterOptions } from './chunks/browser.d.DnU_kh8a.js';
|
|
3
|
+
import './chunks/global.d.BQDgW9Pr.js';
|
|
4
4
|
import { File, TestAnnotation, TaskResultPack, TaskEventPack, TaskPopulated } from '@vitest/runner';
|
|
5
5
|
export { CancelReason, ImportDuration, OnTestFailedHandler, OnTestFinishedHandler, RunMode, Task as RunnerTask, TaskBase as RunnerTaskBase, TaskEventPack as RunnerTaskEventPack, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SuiteAPI, SuiteCollector, SuiteFactory, TaskCustomOptions, TaskMeta, TaskState, TestAPI, TestAnnotation, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
6
6
|
import { Awaitable } from '@vitest/utils';
|
|
7
7
|
export { ParsedStack, SerializedError, TestError } from '@vitest/utils';
|
|
8
|
-
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, b as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.
|
|
9
|
-
export { A as AfterSuiteRunMeta, C as ContextRPC, d as ContextTestEnvironment, c as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.
|
|
8
|
+
import { U as UserConsoleLog, L as LabelColor, M as ModuleGraphData, b as BirpcReturn, P as ProvidedContext } from './chunks/worker.d.ZGohxCEd.js';
|
|
9
|
+
export { A as AfterSuiteRunMeta, C as ContextRPC, d as ContextTestEnvironment, c as RunnerRPC, R as RuntimeRPC, T as TestExecutionMethod, W as WorkerGlobalState } from './chunks/worker.d.ZGohxCEd.js';
|
|
10
10
|
import { S as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.BTfZNUu9.js';
|
|
11
11
|
export { b as RuntimeConfig, a as SerializedCoverageConfig } from './chunks/config.d.BTfZNUu9.js';
|
|
12
12
|
import { ExpectStatic } from '@vitest/expect';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.
|
|
1
|
+
export { b as assert, c as createExpect, g as expect, i as inject, s as should, v as vi, d as vitest } from './chunks/vi.CyIUVSoU.js';
|
|
2
2
|
export { b as bench } from './chunks/benchmark.B3N2zMcH.js';
|
|
3
3
|
export { V as EvaluatedModules } from './chunks/evaluatedModules.Dg1zASAC.js';
|
|
4
|
-
export { a as assertType } from './chunks/index.
|
|
4
|
+
export { a as assertType } from './chunks/index.CGezRSGU.js';
|
|
5
5
|
export { expectTypeOf } from 'expect-type';
|
|
6
6
|
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';
|
|
7
7
|
export { chai } from '@vitest/expect';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'vite/module-runner';
|
|
2
|
-
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.
|
|
2
|
+
export { b as VitestModuleEvaluator, a as VitestModuleEvaluatorOptions, c as createImportMetaEnvProxy, g as getDefaultRequestStubs, i as isPrimitive, u as unwrapId, w as wrapId } from './chunks/moduleRunner.d.BxT-OjLR.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/worker.d.
|
|
5
|
+
import './chunks/worker.d.ZGohxCEd.js';
|
|
6
6
|
import '@vitest/runner';
|
|
7
7
|
import './chunks/config.d.BTfZNUu9.js';
|
|
8
8
|
import '@vitest/pretty-format';
|
package/dist/module-evaluator.js
CHANGED
|
@@ -277,18 +277,18 @@ function getDefaultRequestStubs(context) {
|
|
|
277
277
|
const clientStub = vm.runInContext(`(defaultClient) => ({ ...defaultClient, updateStyle: ${updateStyle.toString()}, removeStyle: ${removeStyle.toString()} })`, context)(defaultClientStub);
|
|
278
278
|
return { "/@vite/client": clientStub };
|
|
279
279
|
}
|
|
280
|
-
function exportAll(exports, sourceModule) {
|
|
280
|
+
function exportAll(exports$1, sourceModule) {
|
|
281
281
|
// #1120 when a module exports itself it causes
|
|
282
282
|
// call stack error
|
|
283
|
-
if (exports === sourceModule) return;
|
|
283
|
+
if (exports$1 === sourceModule) return;
|
|
284
284
|
if (isPrimitive(sourceModule) || Array.isArray(sourceModule) || sourceModule instanceof Promise) return;
|
|
285
|
-
for (const key in sourceModule) if (key !== "default" && !(key in exports)) try {
|
|
286
|
-
defineExport(exports, key, () => sourceModule[key]);
|
|
285
|
+
for (const key in sourceModule) if (key !== "default" && !(key in exports$1)) try {
|
|
286
|
+
defineExport(exports$1, key, () => sourceModule[key]);
|
|
287
287
|
} catch {}
|
|
288
288
|
}
|
|
289
289
|
// keep consistency with Vite on how exports are defined
|
|
290
|
-
function defineExport(exports, key, value) {
|
|
291
|
-
Object.defineProperty(exports, key, {
|
|
290
|
+
function defineExport(exports$1, key, value) {
|
|
291
|
+
Object.defineProperty(exports$1, key, {
|
|
292
292
|
enumerable: true,
|
|
293
293
|
configurable: true,
|
|
294
294
|
get: value
|
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.DLjmA_wU.js';
|
|
3
3
|
export { g as getWorkerState } from './chunks/utils.DvEY5TfP.js';
|
|
4
4
|
import 'node:module';
|
|
5
5
|
import 'node:url';
|
package/dist/node.d.ts
CHANGED
|
@@ -3,23 +3,23 @@ import { InlineConfig, UserConfig as UserConfig$1, Plugin, ResolvedConfig as Res
|
|
|
3
3
|
export { vite as Vite };
|
|
4
4
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, 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, b 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.
|
|
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.BQ0wpUaj.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, b 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.BQ0wpUaj.js';
|
|
8
8
|
import { Awaitable } from '@vitest/utils';
|
|
9
9
|
export { SerializedError } from '@vitest/utils';
|
|
10
|
-
import { R as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.
|
|
11
|
-
export { T as TestExecutionType } from './chunks/worker.d.
|
|
10
|
+
import { R as RuntimeRPC, C as ContextRPC } from './chunks/worker.d.ZGohxCEd.js';
|
|
11
|
+
export { T as TestExecutionType } from './chunks/worker.d.ZGohxCEd.js';
|
|
12
12
|
import { Writable } from 'node:stream';
|
|
13
|
-
export { V as VitestPluginContext } from './chunks/plugin.d.
|
|
13
|
+
export { V as VitestPluginContext } from './chunks/plugin.d.DevON6kQ.js';
|
|
14
14
|
import { Debugger } from 'debug';
|
|
15
|
-
import './chunks/global.d.
|
|
15
|
+
import './chunks/global.d.BQDgW9Pr.js';
|
|
16
16
|
export { Task as RunnerTask, TaskResult as RunnerTaskResult, TaskResultPack as RunnerTaskResultPack, Test as RunnerTestCase, File as RunnerTestFile, Suite as RunnerTestSuite, SequenceHooks, SequenceSetupFiles } from '@vitest/runner';
|
|
17
17
|
export { b as RuntimeConfig } from './chunks/config.d.BTfZNUu9.js';
|
|
18
18
|
export { generateFileHash } from '@vitest/runner/utils';
|
|
19
19
|
import '@vitest/mocker';
|
|
20
20
|
import '@vitest/utils/source-map';
|
|
21
21
|
import 'vitest/browser';
|
|
22
|
-
import './chunks/browser.d.
|
|
22
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
23
23
|
import '@vitest/pretty-format';
|
|
24
24
|
import '@vitest/snapshot';
|
|
25
25
|
import '@vitest/utils/diff';
|
package/dist/node.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import { resolveConfig as resolveConfig$1, mergeConfig } from 'vite';
|
|
3
3
|
export { esbuildVersion, isCSSRequest, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
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, o as createDebugger, d as createMethodsRPC, n as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
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.
|
|
4
|
+
import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.D48wY175.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, o as createDebugger, d as createMethodsRPC, n as createViteLogger, c as createVitest, e as escapeTestName, l as experimental_getRunnerTask, g as getFilePoolName, i as isValidApiRequest, m as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.D48wY175.js';
|
|
6
|
+
export { p as parseCLI } from './chunks/cac.B_NTJoIH.js';
|
|
7
|
+
import { r as resolveConfig$2 } from './chunks/coverage.BUlIqJrL.js';
|
|
8
|
+
export { b as BaseSequencer, a as resolveApiServerConfig } from './chunks/coverage.BUlIqJrL.js';
|
|
9
9
|
import { slash, deepClone } from '@vitest/utils/helpers';
|
|
10
|
-
import { a as any } from './chunks/index.
|
|
10
|
+
import { a as any } from './chunks/index.z7NPOg2E.js';
|
|
11
11
|
import { resolve } from 'pathe';
|
|
12
12
|
import { c as configFiles } from './chunks/constants.D_Q9UYh-.js';
|
|
13
13
|
export { distDir, rootDir } from './path.js';
|
|
@@ -17,7 +17,7 @@ import './chunks/coverage.D_JHT54q.js';
|
|
|
17
17
|
import 'node:path';
|
|
18
18
|
import 'node:os';
|
|
19
19
|
import '@vitest/snapshot/manager';
|
|
20
|
-
import './chunks/index.
|
|
20
|
+
import './chunks/index.0kCJoeWi.js';
|
|
21
21
|
import './chunks/index.kotH7DY7.js';
|
|
22
22
|
import 'node:fs/promises';
|
|
23
23
|
import 'node:perf_hooks';
|
package/dist/reporters.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.BQ0wpUaj.js';
|
|
2
2
|
import '@vitest/runner';
|
|
3
3
|
import '@vitest/utils';
|
|
4
|
-
import './chunks/worker.d.
|
|
4
|
+
import './chunks/worker.d.ZGohxCEd.js';
|
|
5
5
|
import 'vite/module-runner';
|
|
6
6
|
import './chunks/config.d.BTfZNUu9.js';
|
|
7
7
|
import '@vitest/pretty-format';
|
|
@@ -13,7 +13,7 @@ import 'vite';
|
|
|
13
13
|
import '@vitest/mocker';
|
|
14
14
|
import '@vitest/utils/source-map';
|
|
15
15
|
import 'vitest/browser';
|
|
16
|
-
import './chunks/browser.d.
|
|
16
|
+
import './chunks/browser.d.DnU_kh8a.js';
|
|
17
17
|
import '@vitest/expect';
|
|
18
18
|
import 'vitest/optional-types.js';
|
|
19
19
|
import './chunks/benchmark.d.DAaHLpsq.js';
|
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.w5HLbjmU.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.CyIUVSoU.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.BFTU3MAI.js';
|
|
17
17
|
import './chunks/date.Bq6ZW5rf.js';
|
|
18
|
-
import './chunks/rpc.
|
|
19
|
-
import './chunks/index.
|
|
18
|
+
import './chunks/rpc.BytlcPfC.js';
|
|
19
|
+
import './chunks/index.0kCJoeWi.js';
|
package/dist/worker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WorkerGlobalState, B as BirpcOptions, R as RuntimeRPC, a as WorkerSetupContext } from './chunks/worker.d.
|
|
1
|
+
import { W as WorkerGlobalState, B as BirpcOptions, R as RuntimeRPC, a as WorkerSetupContext } from './chunks/worker.d.ZGohxCEd.js';
|
|
2
2
|
import { Awaitable } from '@vitest/utils';
|
|
3
3
|
import '@vitest/runner';
|
|
4
4
|
import 'vite/module-runner';
|
package/dist/worker.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export { r as runBaseTests } from './chunks/base.
|
|
2
|
-
export { i as init } from './chunks/init.
|
|
1
|
+
export { r as runBaseTests } from './chunks/base.CiIV2DDC.js';
|
|
2
|
+
export { i as init } from './chunks/init.BQhNfT0h.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import './chunks/index.
|
|
5
|
+
import './chunks/index.CPA8jGhR.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
|
-
import './chunks/setup-common.
|
|
7
|
+
import './chunks/setup-common.Dw1XgX0v.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.BytlcPfC.js';
|
|
13
|
+
import './chunks/index.0kCJoeWi.js';
|
|
14
|
+
import './chunks/test.w5HLbjmU.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.CyIUVSoU.js';
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import './chunks/_commonjsHelpers.BFTU3MAI.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.DLjmA_wU.js';
|
|
29
29
|
import 'node:fs';
|
|
30
30
|
import 'node:module';
|
|
31
31
|
import 'node:url';
|
|
@@ -40,7 +40,7 @@ import 'node:timers';
|
|
|
40
40
|
import 'node:timers/promises';
|
|
41
41
|
import 'node:util';
|
|
42
42
|
import '@vitest/utils/constants';
|
|
43
|
-
import './chunks/index.
|
|
43
|
+
import './chunks/index.CGezRSGU.js';
|
|
44
44
|
import 'expect-type';
|
|
45
|
-
import './chunks/index.
|
|
45
|
+
import './chunks/index.BfmpdV5p.js';
|
|
46
46
|
import 'node:console';
|
package/dist/workers/forks.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
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.CiIV2DDC.js';
|
|
2
|
+
import { w as workerInit } from '../chunks/init-forks.aqTzCSR2.js';
|
|
3
3
|
import 'node:vm';
|
|
4
4
|
import '@vitest/spy';
|
|
5
|
-
import '../chunks/index.
|
|
5
|
+
import '../chunks/index.CPA8jGhR.js';
|
|
6
6
|
import '@vitest/expect';
|
|
7
|
-
import '../chunks/setup-common.
|
|
7
|
+
import '../chunks/setup-common.Dw1XgX0v.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.BytlcPfC.js';
|
|
13
|
+
import '../chunks/index.0kCJoeWi.js';
|
|
14
|
+
import '../chunks/test.w5HLbjmU.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.CyIUVSoU.js';
|
|
22
22
|
import '@vitest/utils/offset';
|
|
23
23
|
import '@vitest/utils/source-map';
|
|
24
24
|
import '../chunks/_commonjsHelpers.BFTU3MAI.js';
|
|
25
25
|
import '../chunks/date.Bq6ZW5rf.js';
|
|
26
|
-
import '../chunks/init.
|
|
26
|
+
import '../chunks/init.BQhNfT0h.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.DLjmA_wU.js';
|
|
32
32
|
import '../path.js';
|
|
33
33
|
import 'node:path';
|
|
34
34
|
import '@vitest/utils/serialize';
|
|
35
35
|
import '../module-evaluator.js';
|
|
36
36
|
import '@vitest/mocker';
|
|
37
|
-
import '../chunks/index.
|
|
37
|
+
import '../chunks/index.BfmpdV5p.js';
|
|
38
38
|
import 'node:console';
|
|
39
39
|
import '../chunks/inspector.CvyFGlXm.js';
|
|
40
40
|
import '../chunks/evaluatedModules.Dg1zASAC.js';
|
|
@@ -43,7 +43,7 @@ import 'node:timers';
|
|
|
43
43
|
import 'node:timers/promises';
|
|
44
44
|
import 'node:util';
|
|
45
45
|
import '@vitest/utils/constants';
|
|
46
|
-
import '../chunks/index.
|
|
46
|
+
import '../chunks/index.CGezRSGU.js';
|
|
47
47
|
import 'expect-type';
|
|
48
48
|
import 'node:v8';
|
|
49
49
|
|