@depup/vitest 4.1.1-depup.0 → 4.1.2-depup.0
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/README.md +4 -4
- package/changes.json +6 -6
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/chunks/{base.C9_VThnT.js → base.BPik1OqN.js} +7 -7
- package/dist/chunks/{benchmark.D0SlKNbZ.js → benchmark.CX_oY03V.js} +1 -1
- package/dist/chunks/{browser.d.X3SXoOCV.d.ts → browser.d.BMOr_Kmk.d.ts} +1 -1
- package/dist/chunks/{cac.CHfKU_gf.js → cac.DRKYQDPl.js} +10 -8
- package/dist/chunks/{cli-api.BUXBO6jS.js → cli-api.Bxr1Nn49.js} +8 -6
- package/dist/chunks/{config.d.EJLVE3es.d.ts → config.d.Cz9kPrQs.d.ts} +1 -0
- package/dist/chunks/{coverage.CJ2HXVIG.js → coverage.kqM80boz.js} +12 -3
- package/dist/chunks/{defaults.CdU2lD-q.js → defaults.9aQKnqFk.js} +13 -5
- package/dist/chunks/{globals.8mibwXRO.js → globals.CVqIbOyt.js} +3 -3
- package/dist/chunks/{index.DXMFO5MJ.js → index.0GYC6HAu.js} +627 -586
- package/dist/chunks/{index.Dkvtd-Ku.js → index.DOa3dzoN.js} +2 -2
- package/dist/chunks/{index.6q6giCZO.js → index.nZ2xqFgD.js} +2 -2
- package/dist/chunks/{init-forks.B4YYSIj4.js → init-forks.UV3ZQGQH.js} +1 -1
- package/dist/chunks/{init-threads.Bd2Hsaex.js → init-threads.D3eCsY76.js} +1 -1
- package/dist/chunks/{init.BVxhC4nR.js → init.D98-gwRW.js} +3 -1
- package/dist/chunks/{nativeModuleMocker.Dd1Q1VIw.js → nativeModuleMocker.BRN2oBJd.js} +1 -1
- package/dist/chunks/{plugin.d.Dx0ozo6e.d.ts → plugin.d.BWbK_Jpw.d.ts} +1 -1
- package/dist/chunks/{reporters.d.CZ5E0GCT.d.ts → reporters.d.B0uk8id2.d.ts} +6 -8
- package/dist/chunks/{setup-common.CB31_KSV.js → setup-common.2wZXQUjS.js} +1 -1
- package/dist/chunks/{startVitestModuleRunner.C3FXk5Gv.js → startVitestModuleRunner.bRl2_oI_.js} +16 -2
- package/dist/chunks/{test.CBQUpOM3.js → test.p_J6dB8a.js} +1 -1
- package/dist/chunks/utils.DK8FXp4T.js +189 -0
- package/dist/chunks/{vm.DId8XBJa.js → vm.BvVhnZPV.js} +2 -2
- package/dist/chunks/{worker.d.B84sVRy0.d.ts → worker.d.BT5j8dyR.d.ts} +1 -1
- package/dist/cli.js +2 -20
- package/dist/config.cjs +13 -5
- package/dist/config.d.ts +8 -8
- package/dist/config.js +1 -1
- package/dist/coverage.d.ts +4 -4
- package/dist/coverage.js +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -3
- package/dist/node.d.ts +7 -7
- package/dist/node.js +8 -8
- package/dist/reporters.d.ts +4 -4
- package/dist/reporters.js +6 -6
- package/dist/runners.d.ts +1 -1
- package/dist/runners.js +2 -2
- package/dist/runtime.js +1 -1
- package/dist/suite.js +1 -1
- package/dist/worker.d.ts +2 -2
- package/dist/worker.js +9 -8
- package/dist/workers/forks.js +10 -9
- package/dist/workers/runVmTests.js +5 -5
- package/dist/workers/threads.js +10 -9
- package/dist/workers/vmForks.js +5 -5
- package/dist/workers/vmThreads.js +5 -5
- package/package.json +22 -22
- package/dist/chunks/index.CEzQDJGb.js +0 -231
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/vitest
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [vitest](https://www.npmjs.com/package/vitest) @ 4.1.
|
|
17
|
-
| Processed | 2026-03-
|
|
16
|
+
| Original | [vitest](https://www.npmjs.com/package/vitest) @ 4.1.2 |
|
|
17
|
+
| Processed | 2026-03-26 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 5 |
|
|
20
20
|
|
|
@@ -22,10 +22,10 @@ npm install @depup/vitest
|
|
|
22
22
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
|
+
| picomatch | ^4.0.3 | ^4.0.4 |
|
|
25
26
|
| tinybench | ^2.9.0 | ^6.0.0 |
|
|
26
27
|
| tinyexec | ^1.0.2 | ^1.0.4 |
|
|
27
|
-
|
|
|
28
|
-
| vite | ^6.0.0 || ^7.0.0 || ^8.0.0 | ^8.0.2 |
|
|
28
|
+
| vite | ^6.0.0 || ^7.0.0 || ^8.0.0 | ^8.0.3 |
|
|
29
29
|
| why-is-node-running | ^2.3.0 | ^3.2.2 |
|
|
30
30
|
|
|
31
31
|
---
|
package/changes.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bumped": {
|
|
3
|
+
"picomatch": {
|
|
4
|
+
"from": "^4.0.3",
|
|
5
|
+
"to": "^4.0.4"
|
|
6
|
+
},
|
|
3
7
|
"tinybench": {
|
|
4
8
|
"from": "^2.9.0",
|
|
5
9
|
"to": "^6.0.0"
|
|
@@ -8,19 +12,15 @@
|
|
|
8
12
|
"from": "^1.0.2",
|
|
9
13
|
"to": "^1.0.4"
|
|
10
14
|
},
|
|
11
|
-
"tinyrainbow": {
|
|
12
|
-
"from": "^3.0.3",
|
|
13
|
-
"to": "^3.1.0"
|
|
14
|
-
},
|
|
15
15
|
"vite": {
|
|
16
16
|
"from": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
17
|
-
"to": "^8.0.
|
|
17
|
+
"to": "^8.0.3"
|
|
18
18
|
},
|
|
19
19
|
"why-is-node-running": {
|
|
20
20
|
"from": "^2.3.0",
|
|
21
21
|
"to": "^3.2.2"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"timestamp": "2026-03-
|
|
24
|
+
"timestamp": "2026-03-26T16:32:02.556Z",
|
|
25
25
|
"totalUpdated": 5
|
|
26
26
|
}
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.d.
|
|
1
|
+
import { a as SerializedCoverageConfig, S as SerializedConfig } from './chunks/config.d.Cz9kPrQs.js';
|
|
2
2
|
import { R as RuntimeCoverageModuleLoader } from './chunks/coverage.d.BZtK59WP.js';
|
|
3
3
|
import { SerializedDiffOptions } from '@vitest/utils/diff';
|
|
4
4
|
export { O as OTELCarrier, T as Traces } from './chunks/traces.d.402V_yFI.js';
|
package/dist/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/setup-common.
|
|
1
|
+
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/setup-common.2wZXQUjS.js';
|
|
2
2
|
export { T as Traces } from './chunks/traces.DT5aQ62U.js';
|
|
3
3
|
export { collectTests, startTests } from '@vitest/runner';
|
|
4
4
|
import * as spyModule from '@vitest/spy';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { runInThisContext } from 'node:vm';
|
|
2
2
|
import * as spyModule from '@vitest/spy';
|
|
3
|
-
import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.
|
|
4
|
-
import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.
|
|
3
|
+
import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.nZ2xqFgD.js';
|
|
4
|
+
import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.D98-gwRW.js';
|
|
5
5
|
import { N as NativeModuleRunner } from './nativeModuleRunner.BIakptoF.js';
|
|
6
6
|
import { T as Traces } from './traces.DT5aQ62U.js';
|
|
7
7
|
import { V as VitestEvaluatedModules } from './evaluatedModules.Dg1zASAC.js';
|
|
8
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './startVitestModuleRunner.
|
|
8
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './startVitestModuleRunner.bRl2_oI_.js';
|
|
9
9
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
10
10
|
import { startTests, collectTests } from '@vitest/runner';
|
|
11
|
-
import { s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker } from './setup-common.
|
|
12
|
-
import { g as globalExpect, v as vi } from './test.
|
|
11
|
+
import { s as setupCommonEnv, b as startCoverageInsideWorker, c as stopCoverageInsideWorker } from './setup-common.2wZXQUjS.js';
|
|
12
|
+
import { g as globalExpect, v as vi } from './test.p_J6dB8a.js';
|
|
13
13
|
import { c as closeInspector } from './inspector.CvyFGlXm.js';
|
|
14
14
|
import { createRequire } from 'node:module';
|
|
15
15
|
import timers from 'node:timers';
|
|
16
16
|
import timersPromises from 'node:timers/promises';
|
|
17
17
|
import util from 'node:util';
|
|
18
18
|
import { KNOWN_ASSET_TYPES } from '@vitest/utils/constants';
|
|
19
|
-
import { i as index } from './index.
|
|
19
|
+
import { i as index } from './index.DOa3dzoN.js';
|
|
20
20
|
import { g as getWorkerState, r as resetModules, p as provideWorkerState, a as getSafeWorkerState } from './utils.BX5Fg8C4.js';
|
|
21
21
|
|
|
22
22
|
// this should only be used in Node
|
|
@@ -115,7 +115,7 @@ async function startModuleRunner(options) {
|
|
|
115
115
|
let mocker;
|
|
116
116
|
if (options.state.config.experimental.nodeLoader !== false) {
|
|
117
117
|
// this additionally imports acorn/magic-string
|
|
118
|
-
const { NativeModuleMocker } = await import('./nativeModuleMocker.
|
|
118
|
+
const { NativeModuleMocker } = await import('./nativeModuleMocker.BRN2oBJd.js');
|
|
119
119
|
mocker = new NativeModuleMocker({
|
|
120
120
|
async resolveId(id, importer) {
|
|
121
121
|
// TODO: use import.meta.resolve instead
|
|
@@ -20,7 +20,7 @@ const bench = createBenchmark(function(name, fn = noop, options = {}) {
|
|
|
20
20
|
benchFns.set(task, fn);
|
|
21
21
|
benchOptsMap.set(task, options);
|
|
22
22
|
// vitest runner sets mode to `todo` if handler is not passed down
|
|
23
|
-
// but we store handler
|
|
23
|
+
// but we store handler separately
|
|
24
24
|
if (!this.todo && task.mode === "todo") task.mode = "run";
|
|
25
25
|
});
|
|
26
26
|
function createBenchmark(fn) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileSpecification } from '@vitest/runner';
|
|
2
2
|
import { O as OTELCarrier } from './traces.d.402V_yFI.js';
|
|
3
|
-
import { T as TestExecutionMethod } from './worker.d.
|
|
3
|
+
import { T as TestExecutionMethod } from './worker.d.BT5j8dyR.js';
|
|
4
4
|
|
|
5
5
|
type SerializedTestSpecification = [project: {
|
|
6
6
|
name: string | undefined;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { toArray } from '@vitest/utils/helpers';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { normalize } from 'pathe';
|
|
4
|
-
import c$2 from 'tinyrainbow';
|
|
4
|
+
import c$2, { disableDefaultColors } from 'tinyrainbow';
|
|
5
|
+
import './env.D4Lgay0q.js';
|
|
5
6
|
import { b as defaultPort, d as defaultBrowserPort } from './constants.CPYnjOGj.js';
|
|
6
|
-
import { R as ReportersMap } from './index.DXMFO5MJ.js';
|
|
7
7
|
import assert from 'node:assert';
|
|
8
|
+
import { isAgent } from 'std-env';
|
|
8
9
|
|
|
9
10
|
function toArr(any) {
|
|
10
11
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -620,7 +621,7 @@ class CAC extends EventEmitter {
|
|
|
620
621
|
|
|
621
622
|
const cac = (name = "") => new CAC(name);
|
|
622
623
|
|
|
623
|
-
var version = "4.1.
|
|
624
|
+
var version = "4.1.2";
|
|
624
625
|
|
|
625
626
|
const apiConfig = (port) => ({
|
|
626
627
|
port: {
|
|
@@ -700,7 +701,7 @@ const cliOptionsConfig = {
|
|
|
700
701
|
hideSkippedTests: { description: "Hide logs for skipped tests" },
|
|
701
702
|
reporters: {
|
|
702
703
|
alias: "reporter",
|
|
703
|
-
description: `Specify reporters (
|
|
704
|
+
description: `Specify reporters (default, agent, blob, verbose, dot, json, tap, tap-flat, junit, tree, hanging-process, github-actions)`,
|
|
704
705
|
argument: "<name>",
|
|
705
706
|
subcommands: null,
|
|
706
707
|
array: true
|
|
@@ -2200,6 +2201,7 @@ function addCliOptions(cli, options) {
|
|
|
2200
2201
|
for (const [optionName, option] of Object.entries(options)) if (option) addCommand(cli, optionName, option);
|
|
2201
2202
|
}
|
|
2202
2203
|
function createCLI(options = {}) {
|
|
2204
|
+
if (isAgent) disableDefaultColors();
|
|
2203
2205
|
const cli = cac("vitest");
|
|
2204
2206
|
cli.version(version);
|
|
2205
2207
|
addCliOptions(cli, cliOptionsConfig);
|
|
@@ -2322,11 +2324,11 @@ function normalizeCliOptions(cliFilters, argv) {
|
|
|
2322
2324
|
}
|
|
2323
2325
|
async function start(mode, cliFilters, options) {
|
|
2324
2326
|
try {
|
|
2325
|
-
const { startVitest } = await import('./cli-api.
|
|
2327
|
+
const { startVitest } = await import('./cli-api.Bxr1Nn49.js').then(function (n) { return n.q; });
|
|
2326
2328
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
2327
2329
|
if (!ctx.shouldKeepServer()) await ctx.exit();
|
|
2328
2330
|
} catch (e) {
|
|
2329
|
-
const { errorBanner } = await import('./
|
|
2331
|
+
const { errorBanner } = await import('./utils.DK8FXp4T.js').then(function (n) { return n.u; });
|
|
2330
2332
|
console.error(`\n${errorBanner("Startup Error")}`);
|
|
2331
2333
|
console.error(e);
|
|
2332
2334
|
console.error("\n\n");
|
|
@@ -2344,7 +2346,7 @@ async function init(project) {
|
|
|
2344
2346
|
}
|
|
2345
2347
|
async function collect(mode, cliFilters, options) {
|
|
2346
2348
|
try {
|
|
2347
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
2349
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.Bxr1Nn49.js').then(function (n) { return n.q; });
|
|
2348
2350
|
const ctx = await prepareVitest(mode, {
|
|
2349
2351
|
...normalizeCliOptions(cliFilters, options),
|
|
2350
2352
|
watch: false,
|
|
@@ -2366,7 +2368,7 @@ async function collect(mode, cliFilters, options) {
|
|
|
2366
2368
|
} else outputFileList(await ctx.getRelevantTestSpecifications(cliFilters.map(normalize)), options);
|
|
2367
2369
|
await ctx.close();
|
|
2368
2370
|
} catch (e) {
|
|
2369
|
-
const { errorBanner } = await import('./
|
|
2371
|
+
const { errorBanner } = await import('./utils.DK8FXp4T.js').then(function (n) { return n.u; });
|
|
2370
2372
|
console.error(`\n${errorBanner("Collect Error")}`);
|
|
2371
2373
|
console.error(e);
|
|
2372
2374
|
console.error("\n\n");
|
|
@@ -13,19 +13,20 @@ import nodeos__default, { tmpdir } from 'node:os';
|
|
|
13
13
|
import { generateHash as generateHash$1, createTaskName, validateTags, calculateSuiteHash, someTasksAreOnly, interpretTaskModes, hasFailed, generateFileHash, limitConcurrency, createFileTask as createFileTask$1, getTasks, isTestCase } from '@vitest/runner/utils';
|
|
14
14
|
import { SnapshotManager } from '@vitest/snapshot/manager';
|
|
15
15
|
import { serializeValue } from '@vitest/utils/serialize';
|
|
16
|
-
import { v as version$1 } from './cac.
|
|
16
|
+
import { v as version$1 } from './cac.DRKYQDPl.js';
|
|
17
17
|
import { rootDir, distDir } from '../path.js';
|
|
18
|
-
import {
|
|
18
|
+
import { f as createIndexLocationsMap, g as TraceMap, o as originalPositionFor, h as ancestor, s as stringify, p as parse, i as printError, j as Typechecker, k as generateCodeFrame, l as escapeRegExp, m as createDefinesScript, a as BenchmarkReportsMap, R as ReportersMap, n as groupBy, q as BlobReporter, r as readBlobs, t as convertTasksToEvents, H as HangingProcessReporter, w as wildcardPatternToRegExp, u as stdout } from './index.0GYC6HAu.js';
|
|
19
19
|
import { N as NativeModuleRunner } from './nativeModuleRunner.BIakptoF.js';
|
|
20
20
|
import { T as Traces } from './traces.DT5aQ62U.js';
|
|
21
21
|
import { createDebug } from 'obug';
|
|
22
|
-
import { h as hash, R as RandomSequencer, i as isBrowserEnabled, r as resolveConfig, g as getCoverageProvider, b as resolveApiServerConfig } from './coverage.
|
|
22
|
+
import { h as hash, R as RandomSequencer, i as isBrowserEnabled, r as resolveConfig, g as getCoverageProvider, b as resolveApiServerConfig } from './coverage.kqM80boz.js';
|
|
23
23
|
import { rm, readFile, writeFile, rename, stat, unlink, mkdir, copyFile } from 'node:fs/promises';
|
|
24
24
|
import c from 'tinyrainbow';
|
|
25
25
|
import { VitestModuleEvaluator } from '#module-evaluator';
|
|
26
26
|
import { ModuleRunner } from 'vite/module-runner';
|
|
27
27
|
import { Console } from 'node:console';
|
|
28
28
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers.D26ty3Ew.js';
|
|
29
|
+
import { g as formatProjectName, w as withLabel, e as errorBanner, d as divider } from './utils.DK8FXp4T.js';
|
|
29
30
|
import { createRequire, builtinModules, isBuiltin as isBuiltin$1 } from 'node:module';
|
|
30
31
|
import url, { fileURLToPath, pathToFileURL } from 'node:url';
|
|
31
32
|
import { i as isTTY, a as isWindows } from './env.D4Lgay0q.js';
|
|
@@ -49,13 +50,13 @@ import require$$0$2 from 'stream';
|
|
|
49
50
|
import require$$7 from 'url';
|
|
50
51
|
import require$$0 from 'zlib';
|
|
51
52
|
import require$$0$1 from 'buffer';
|
|
52
|
-
import { c as configDefaults } from './defaults.
|
|
53
|
+
import { c as configDefaults } from './defaults.9aQKnqFk.js';
|
|
54
|
+
import { isAgent } from 'std-env';
|
|
53
55
|
import MagicString from 'magic-string';
|
|
54
56
|
import { hoistMocksPlugin, automockPlugin } from '@vitest/mocker/node';
|
|
55
57
|
import { KNOWN_ASSET_RE } from '@vitest/utils/constants';
|
|
56
58
|
import { findNearestPackageData } from '@vitest/utils/resolver';
|
|
57
59
|
import * as esModuleLexer from 'es-module-lexer';
|
|
58
|
-
import { a as BenchmarkReportsMap } from './index.CEzQDJGb.js';
|
|
59
60
|
import assert$1 from 'node:assert';
|
|
60
61
|
import { parseErrorStacktrace } from '@vitest/utils/source-map';
|
|
61
62
|
import { extractSourcemapFromFile } from '@vitest/utils/source-map/node';
|
|
@@ -9247,7 +9248,8 @@ function serializeConfig(project) {
|
|
|
9247
9248
|
tags: config.tags || [],
|
|
9248
9249
|
tagsFilter: config.tagsFilter,
|
|
9249
9250
|
strictTags: config.strictTags ?? true,
|
|
9250
|
-
slowTestThreshold: config.slowTestThreshold ?? globalConfig.slowTestThreshold ?? configDefaults.slowTestThreshold
|
|
9251
|
+
slowTestThreshold: config.slowTestThreshold ?? globalConfig.slowTestThreshold ?? configDefaults.slowTestThreshold,
|
|
9252
|
+
isAgent
|
|
9251
9253
|
};
|
|
9252
9254
|
}
|
|
9253
9255
|
|
|
@@ -206,6 +206,7 @@ interface SerializedConfig {
|
|
|
206
206
|
tagsFilter: string[] | undefined;
|
|
207
207
|
strictTags: boolean;
|
|
208
208
|
slowTestThreshold: number | undefined;
|
|
209
|
+
isAgent: boolean;
|
|
209
210
|
}
|
|
210
211
|
interface SerializedCoverageConfig {
|
|
211
212
|
provider: "istanbul" | "v8" | "custom" | undefined;
|
|
@@ -3,11 +3,11 @@ import module$1 from 'node:module';
|
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
5
5
|
import { slash, shuffle, toArray, cleanUrl } from '@vitest/utils/helpers';
|
|
6
|
-
import { resolve, relative, normalize } from 'pathe';
|
|
6
|
+
import { resolve, relative, normalize, join } from 'pathe';
|
|
7
7
|
import pm from 'picomatch';
|
|
8
8
|
import { glob } from 'tinyglobby';
|
|
9
9
|
import c from 'tinyrainbow';
|
|
10
|
-
import { c as configDefaults, e as benchmarkConfigDefaults, a as coverageConfigDefaults } from './defaults.
|
|
10
|
+
import { c as configDefaults, e as benchmarkConfigDefaults, a as coverageConfigDefaults } from './defaults.9aQKnqFk.js';
|
|
11
11
|
import crypto from 'node:crypto';
|
|
12
12
|
import { r as resolveModule } from './index.BCY_7LL2.js';
|
|
13
13
|
import { mergeConfig } from 'vite';
|
|
@@ -95,7 +95,16 @@ class RandomSequencer extends BaseSequencer {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function resolvePath(path, root) {
|
|
98
|
-
|
|
98
|
+
// local-pkg (mlly)'s resolveModule("./file", { paths: ["/some/root"] }) tries
|
|
99
|
+
// /some/file
|
|
100
|
+
// /some/file.js
|
|
101
|
+
// /some/root/file
|
|
102
|
+
// /some/root/file.js
|
|
103
|
+
// etc.
|
|
104
|
+
// but we don't want to resolve files from parent directories,
|
|
105
|
+
// so we ensure passing "/" suffix such as "/some/root/"
|
|
106
|
+
// https://github.com/unjs/mlly/blob/401d42983f6f3a9112658d67b0a92ba4fb1d7efa/src/resolve.ts#L104-L110
|
|
107
|
+
return normalize(/* @__PURE__ */ resolveModule(path, { paths: [join(root, "/")] }) ?? resolve(root, path));
|
|
99
108
|
}
|
|
100
109
|
function parseInspector(inspect) {
|
|
101
110
|
if (typeof inspect === "boolean" || inspect === void 0) return {};
|
|
@@ -21,14 +21,22 @@ const coverageConfigDefaults = {
|
|
|
21
21
|
exclude: [],
|
|
22
22
|
reportOnFailure: false,
|
|
23
23
|
reporter: [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
"text",
|
|
25
|
+
"html",
|
|
26
|
+
"clover",
|
|
27
|
+
"json"
|
|
28
28
|
],
|
|
29
29
|
allowExternal: false,
|
|
30
30
|
excludeAfterRemap: false,
|
|
31
|
-
processingConcurrency: Math.min(20, nodeos__default.availableParallelism?.() ?? nodeos__default.cpus().length)
|
|
31
|
+
processingConcurrency: Math.min(20, nodeos__default.availableParallelism?.() ?? nodeos__default.cpus().length),
|
|
32
|
+
ignoreClassMethods: [],
|
|
33
|
+
skipFull: false,
|
|
34
|
+
watermarks: {
|
|
35
|
+
statements: [50, 80],
|
|
36
|
+
functions: [50, 80],
|
|
37
|
+
branches: [50, 80],
|
|
38
|
+
lines: [50, 80]
|
|
39
|
+
}
|
|
32
40
|
};
|
|
33
41
|
const fakeTimersDefaults = {
|
|
34
42
|
loopLimit: 1e4,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { g as globalApis } from './constants.CPYnjOGj.js';
|
|
2
|
-
import { i as index } from './index.
|
|
3
|
-
import './test.
|
|
2
|
+
import { i as index } from './index.DOa3dzoN.js';
|
|
3
|
+
import './test.p_J6dB8a.js';
|
|
4
4
|
import '@vitest/runner';
|
|
5
5
|
import '@vitest/utils/helpers';
|
|
6
6
|
import '@vitest/utils/timers';
|
|
7
|
-
import './benchmark.
|
|
7
|
+
import './benchmark.CX_oY03V.js';
|
|
8
8
|
import '@vitest/runner/utils';
|
|
9
9
|
import './utils.BX5Fg8C4.js';
|
|
10
10
|
import '@vitest/expect';
|