@depup/vitest 5.0.1-depup.0 → 5.0.3-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/LICENSE.md +28 -0
- package/README.md +9 -7
- package/browser/context.d.ts +7 -1
- package/browser/context.js +5 -5
- package/changes.json +14 -6
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +10 -10
- package/dist/chunks/{base.Cc3oda2V.js → base.DhkQeZwd.js} +14 -14
- package/dist/chunks/{browser.d.g5Thl309.d.ts → browser.d.3cffPS1V.d.ts} +3 -3
- package/dist/chunks/{cac.fSuRXrAx.js → cac.DfDGTQ9W.js} +13 -13
- package/dist/chunks/{cli-api.DcLieX4F.js → cli-api.C4x4GGip.js} +5 -5
- package/dist/chunks/{config.d.CU_b-wJj.d.ts → config.d.BxjInJat.d.ts} +13 -15
- package/dist/chunks/{console.B09ye7y0.js → console.RBA5x-0t.js} +3 -2
- package/dist/chunks/{coverage.AipniaqB.js → coverage.S6Dao4g-.js} +1 -1
- package/dist/chunks/{coverage.CX7NN5s7.js → coverage._yXj5zeb.js} +1 -1
- package/dist/chunks/{creator.BEj8pIIH.js → creator.203NYCo3.js} +12 -12
- package/dist/chunks/{display.pkpxlVcY.js → display.CXBnkt9a.js} +1 -1
- package/dist/chunks/{doctor.DR3u0Z_G.js → doctor.CpHPRoza.js} +2 -2
- package/dist/chunks/{environment.d.C6xYahWA.d.ts → environment.d.DAj1Vt__.d.ts} +1 -1
- package/dist/chunks/{globals.D9ucJdZZ.js → globals.9QtHn8Sr.js} +9 -9
- package/dist/chunks/{index.m3L2HgmY.js → index.C4tKZ0yW.js} +29 -15
- package/dist/chunks/{index.DzobfTyw.js → index.DpLw24bj.js} +177 -85
- package/dist/chunks/{index.M2dsQ_UQ.js → index.cx-_w29y.js} +551 -179
- package/dist/chunks/{index.DNv8WNGe.js → index.ggMXe2IF.js} +17 -7
- package/dist/chunks/{index.D4dXTzh9.js → index.k8L_ZRzq.js} +24 -7
- package/dist/chunks/{init-forks.DgHqDQHC.js → init-forks.hzLs7kMZ.js} +1 -1
- package/dist/chunks/{init-threads.B-t1iYCi.js → init-threads.COb0VD5D.js} +1 -1
- package/dist/chunks/{init.3UJvPvQg.js → init.D0qF-GGk.js} +4 -5
- package/dist/chunks/{native.CF4uT5hY.js → native.CBlba4VV.js} +2 -2
- package/dist/chunks/{nativeModuleMocker.B20FEd-E.js → nativeModuleMocker.CXSh3m91.js} +2 -2
- package/dist/chunks/{nativeModuleRunner.J0QLzNtK.js → nativeModuleRunner.jwZPY3dg.js} +1 -1
- package/dist/chunks/{node.CfQ_OGWr.js → node.BzimPqT5.js} +1 -1
- package/dist/chunks/{pathe.M-eThtNZ.DwEga6ro.js → pathe.M-eThtNZ.CknpM8Or.js} +1 -1
- package/dist/chunks/{plugin.d.CN87HSxv.d.ts → plugin.d.BsjqSb4-.d.ts} +35 -27
- package/dist/chunks/{plugins.Cigb0uSy.js → plugins.D2ut1V9b.js} +1 -1
- package/dist/chunks/{resolver.NpfwMKt9.js → resolver.fbW9AUvG.js} +1 -1
- package/dist/chunks/{rpc.Bvs-iVxs.js → rpc.BTmCtPly.js} +8 -6
- package/dist/chunks/{rpc.d.DA9Utv4e.d.ts → rpc.d.BPFHl-HE.d.ts} +1 -1
- package/dist/chunks/{run.C5UmxDPh.js → run.BTlFXlnv.js} +29 -19
- package/dist/chunks/{setup-common.BkQOiNcI.js → setup-common.BglbuAHD.js} +3 -3
- package/dist/chunks/{source-map.BH0bbrs9.js → source-map.DUxvo12T.js} +4 -8
- package/dist/chunks/{source-map.d.YqWNcp4e.d.ts → source-map.d.BLHtC2OB.d.ts} +1 -1
- package/dist/chunks/{spy.DQ0ZsPbi.js → spy.DgMTfhrK.js} +21 -18
- package/dist/chunks/{task-utils.d.BZm4GSQD.d.ts → task-utils.d.C-IeGxLU.d.ts} +1 -1
- package/dist/chunks/{utils.CJ0JImL8.js → utils.RcGwuOc_.js} +2 -2
- package/dist/chunks/{vm.W4G5WMTl.js → vm.vTyZj_02.js} +8 -8
- package/dist/chunks/{worker.d.MLmnzOJE.d.ts → worker.d.Bt2A2mmi.d.ts} +3 -3
- package/dist/cli.js +2 -2
- package/dist/config.d.ts +9 -9
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -9
- package/dist/module-evaluator.d.ts +3 -2
- package/dist/module-evaluator.js +8 -5
- package/dist/node.d.ts +9 -9
- package/dist/node.js +14 -14
- package/dist/runtime.d.ts +6 -6
- package/dist/runtime.js +4 -4
- package/dist/spy.js +1 -1
- package/dist/task-utils.js +2 -1
- package/dist/worker.d.ts +4 -4
- package/dist/worker.js +17 -17
- package/dist/workers/forks.js +18 -18
- package/dist/workers/runVmTests.js +14 -14
- package/dist/workers/threads.js +18 -18
- package/dist/workers/vmForks.js +12 -12
- package/dist/workers/vmThreads.js +12 -12
- package/globals.d.ts +19 -19
- package/index.cjs +3 -3
- package/optional-runtime-types.d.ts +1 -1
- package/optional-types.d.ts +1 -1
- package/package.json +37 -24
- package/suppress-warnings.cjs +1 -1
package/LICENSE.md
CHANGED
|
@@ -713,6 +713,34 @@ Repository: git+https://github.com/quansync-dev/quansync.git
|
|
|
713
713
|
|
|
714
714
|
---------------------------------------
|
|
715
715
|
|
|
716
|
+
## react-is
|
|
717
|
+
License: MIT
|
|
718
|
+
Repository: https://github.com/react/react.git
|
|
719
|
+
|
|
720
|
+
> MIT License
|
|
721
|
+
>
|
|
722
|
+
> Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
723
|
+
>
|
|
724
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
725
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
726
|
+
> in the Software without restriction, including without limitation the rights
|
|
727
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
728
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
729
|
+
> furnished to do so, subject to the following conditions:
|
|
730
|
+
>
|
|
731
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
732
|
+
> copies or substantial portions of the Software.
|
|
733
|
+
>
|
|
734
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
735
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
736
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
737
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
738
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
739
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
740
|
+
> SOFTWARE.
|
|
741
|
+
|
|
742
|
+
---------------------------------------
|
|
743
|
+
|
|
716
744
|
## sisteransi
|
|
717
745
|
License: MIT
|
|
718
746
|
By: Terkel Gjervig
|
package/README.md
CHANGED
|
@@ -13,22 +13,24 @@ npm install @depup/vitest
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [vitest](https://www.npmjs.com/package/vitest) @ 5.0.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [vitest](https://www.npmjs.com/package/vitest) @ 5.0.3 |
|
|
17
|
+
| Processed | 2026-10-04 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
|
-
| Deps updated |
|
|
19
|
+
| Deps updated | 9 |
|
|
20
20
|
|
|
21
21
|
## Dependency Changes
|
|
22
22
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
25
|
| @types/chai | ^5.2.2 | ^5.2.3 |
|
|
26
|
+
| chai | ^6.2.2 | ^6.3.0 |
|
|
26
27
|
| es-module-lexer | ^2.3.2 | ^3.0.2 |
|
|
27
|
-
| magic-string | ^1.2.3 | ^1.4.
|
|
28
|
+
| magic-string | ^1.2.3 | ^1.4.2 |
|
|
28
29
|
| obug | ^2.1.4 | ^3.0.0 |
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
30
|
+
| std-env | ^4.2.0 | ^4.3.0 |
|
|
31
|
+
| tinybench | ^6.1.4 | ^6.2.0 |
|
|
32
|
+
| tinyexec | ^1.3.0 | ^1.3.1 |
|
|
33
|
+
| why-is-node-running | 3.2.1 | ^3.2.2 |
|
|
32
34
|
|
|
33
35
|
---
|
|
34
36
|
|
package/browser/context.d.ts
CHANGED
|
@@ -4,4 +4,10 @@ export * from '@vitest/browser-playwright/context'
|
|
|
4
4
|
export * from '@vitest/browser-webdriverio/context'
|
|
5
5
|
// @ts-ignore -- @vitest/browser-preview might not be installed
|
|
6
6
|
export * from '@vitest/browser-preview/context'
|
|
7
|
-
export {
|
|
7
|
+
export {
|
|
8
|
+
BrowserCommands,
|
|
9
|
+
BrowserTraceEntryKind,
|
|
10
|
+
CDPSession,
|
|
11
|
+
FsOptions,
|
|
12
|
+
MarkOptions,
|
|
13
|
+
} from 'vitest/internal/browser'
|
package/browser/context.js
CHANGED
|
@@ -12,9 +12,9 @@ export const utils = null
|
|
|
12
12
|
const pool = globalThis.__vitest_worker__?.ctx?.pool
|
|
13
13
|
|
|
14
14
|
throw new Error(
|
|
15
|
-
//
|
|
16
|
-
'vitest/browser can be imported only inside the Browser Mode. '
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
// oxlint-disable-next-line prefer-template
|
|
16
|
+
'vitest/browser can be imported only inside the Browser Mode. ' +
|
|
17
|
+
(pool
|
|
18
|
+
? `Your test is running in ${pool} pool. Make sure your regular tests are excluded from the "test.include" glob pattern.`
|
|
19
|
+
: 'Instead, it was imported outside of Vitest.'),
|
|
20
20
|
)
|
package/changes.json
CHANGED
|
@@ -4,31 +4,39 @@
|
|
|
4
4
|
"from": "^5.2.2",
|
|
5
5
|
"to": "^5.2.3"
|
|
6
6
|
},
|
|
7
|
+
"chai": {
|
|
8
|
+
"from": "^6.2.2",
|
|
9
|
+
"to": "^6.3.0"
|
|
10
|
+
},
|
|
7
11
|
"es-module-lexer": {
|
|
8
12
|
"from": "^2.3.2",
|
|
9
13
|
"to": "^3.0.2"
|
|
10
14
|
},
|
|
11
15
|
"magic-string": {
|
|
12
16
|
"from": "^1.2.3",
|
|
13
|
-
"to": "^1.4.
|
|
17
|
+
"to": "^1.4.2"
|
|
14
18
|
},
|
|
15
19
|
"obug": {
|
|
16
20
|
"from": "^2.1.4",
|
|
17
21
|
"to": "^3.0.0"
|
|
18
22
|
},
|
|
23
|
+
"std-env": {
|
|
24
|
+
"from": "^4.2.0",
|
|
25
|
+
"to": "^4.3.0"
|
|
26
|
+
},
|
|
19
27
|
"tinybench": {
|
|
20
|
-
"from": "6.1.4",
|
|
28
|
+
"from": "^6.1.4",
|
|
21
29
|
"to": "^6.2.0"
|
|
22
30
|
},
|
|
23
31
|
"tinyexec": {
|
|
24
|
-
"from": "1.3.0",
|
|
32
|
+
"from": "^1.3.0",
|
|
25
33
|
"to": "^1.3.1"
|
|
26
34
|
},
|
|
27
35
|
"why-is-node-running": {
|
|
28
|
-
"from": "
|
|
36
|
+
"from": "3.2.1",
|
|
29
37
|
"to": "^3.2.2"
|
|
30
38
|
}
|
|
31
39
|
},
|
|
32
|
-
"timestamp": "2026-
|
|
33
|
-
"totalUpdated":
|
|
40
|
+
"timestamp": "2026-10-04T01:29:48.712Z",
|
|
41
|
+
"totalUpdated": 9
|
|
34
42
|
}
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as FileSpecification, c as SerializedDiffOptions } from './chunks/config.d.
|
|
1
|
+
import { F as FileSpecification, c as SerializedDiffOptions } from './chunks/config.d.BxjInJat.js';
|
|
2
2
|
import { SerializedCoverageConfig, RunnerTestFile as File, SerializedConfig, DiffOptions, TestError } from './index.js';
|
|
3
3
|
import { VitestRunner } from './runtime.js';
|
|
4
|
-
export { P as ParsedStack, _ as SpyModule, d as StringifyOptions, f as format, i as inspect, s as stringify } from './chunks/config.d.
|
|
5
|
-
import { R as RuntimeCoverageModuleLoader } from './chunks/source-map.d.
|
|
6
|
-
export { D as DecodedMap, g as getOriginalPosition } from './chunks/source-map.d.
|
|
4
|
+
export { P as ParsedStack, _ as SpyModule, d as StringifyOptions, f as format, i as inspect, s as stringify } from './chunks/config.d.BxjInJat.js';
|
|
5
|
+
import { R as RuntimeCoverageModuleLoader } from './chunks/source-map.d.BLHtC2OB.js';
|
|
6
|
+
export { D as DecodedMap, g as getOriginalPosition } from './chunks/source-map.d.BLHtC2OB.js';
|
|
7
7
|
import 'vitest/optional-runtime-types.js';
|
|
8
8
|
import 'tinybench';
|
|
9
9
|
|
package/dist/browser.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.
|
|
2
|
-
export { p as collectTests, a as processError, s as startTests } from './chunks/run.
|
|
3
|
-
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as setupEnv } from './chunks/setup-common.
|
|
4
|
-
export { s as SpyModule } from './chunks/spy.
|
|
5
|
-
export { f as format, i as inspect, s as stringify } from './chunks/display.
|
|
6
|
-
export { g as getType } from './chunks/pathe.M-eThtNZ.
|
|
7
|
-
export { D as DecodedMap, g as getOriginalPosition, a as getSafeTimers, s as setSafeTimers } from './chunks/source-map.
|
|
8
|
-
import './chunks/coverage.
|
|
9
|
-
import './chunks/index.
|
|
1
|
+
export { s as startCoverageInsideWorker, a as stopCoverageInsideWorker, t as takeCoverageInsideWorker } from './chunks/coverage.S6Dao4g-.js';
|
|
2
|
+
export { p as collectTests, a as processError, s as startTests } from './chunks/run.BTlFXlnv.js';
|
|
3
|
+
export { l as loadDiffConfig, a as loadSnapshotSerializers, s as setupCommonEnv, b as setupEnv } from './chunks/setup-common.BglbuAHD.js';
|
|
4
|
+
export { s as SpyModule } from './chunks/spy.DgMTfhrK.js';
|
|
5
|
+
export { f as format, i as inspect, s as stringify } from './chunks/display.CXBnkt9a.js';
|
|
6
|
+
export { g as getType } from './chunks/pathe.M-eThtNZ.CknpM8Or.js';
|
|
7
|
+
export { D as DecodedMap, g as getOriginalPosition, a as getSafeTimers, s as setSafeTimers } from './chunks/source-map.DUxvo12T.js';
|
|
8
|
+
import './chunks/coverage._yXj5zeb.js';
|
|
9
|
+
import './chunks/index.cx-_w29y.js';
|
|
10
10
|
import './chunks/tinyrainbow.Ht9iggcq.js';
|
|
11
11
|
import './task-utils.js';
|
|
12
|
-
import './chunks/plugins.
|
|
12
|
+
import './chunks/plugins.D2ut1V9b.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @internal
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { runInThisContext } from 'node:vm';
|
|
2
|
-
import { s as spyModule } from './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.
|
|
2
|
+
import { s as spyModule } from './spy.DgMTfhrK.js';
|
|
3
|
+
import { r as resolveTestRunner, a as resolveSnapshotEnvironment, d as detectAsyncLeaks, s as setupChaiConfig } from './index.ggMXe2IF.js';
|
|
4
|
+
import { l as loadEnvironment, e as emitModuleRunner, a as listenForErrors } from './init.D0qF-GGk.js';
|
|
5
5
|
import { Traces } from '../traces.js';
|
|
6
|
-
import { V as VitestEvaluatedModules } from './rpc.
|
|
7
|
-
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './index.
|
|
6
|
+
import { V as VitestEvaluatedModules } from './rpc.BTmCtPly.js';
|
|
7
|
+
import { s as startVitestModuleRunner, c as createNodeImportMeta } from './index.k8L_ZRzq.js';
|
|
8
8
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
9
|
-
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './coverage.
|
|
10
|
-
import { i as index, g as globalExpect, v as vi } from './index.
|
|
9
|
+
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './coverage.S6Dao4g-.js';
|
|
10
|
+
import { i as index, g as globalExpect, v as vi } from './index.C4tKZ0yW.js';
|
|
11
11
|
import { c as closeInspector } from './inspector.CvyFGlXm.js';
|
|
12
|
-
import { s as startTests, p as publicCollect } from './run.
|
|
12
|
+
import { s as startTests, p as publicCollect } from './run.BTlFXlnv.js';
|
|
13
13
|
import { createRequire } from 'node:module';
|
|
14
14
|
import timers from 'node:timers';
|
|
15
15
|
import timersPromises from 'node:timers/promises';
|
|
16
16
|
import util from 'node:util';
|
|
17
|
-
import { K as KNOWN_ASSET_TYPES } from './pathe.M-eThtNZ.
|
|
18
|
-
import { s as setupCommonEnv, b as setupEnv } from './setup-common.
|
|
17
|
+
import { K as KNOWN_ASSET_TYPES } from './pathe.M-eThtNZ.CknpM8Or.js';
|
|
18
|
+
import { s as setupCommonEnv, b as setupEnv } from './setup-common.BglbuAHD.js';
|
|
19
19
|
import { g as getWorkerState, r as resetModules, p as provideWorkerState, a as getSafeWorkerState } from './utils.DYj33du9.js';
|
|
20
20
|
|
|
21
21
|
// this should only be used in Node
|
|
@@ -57,7 +57,7 @@ function resolveAsset(mod, url) {
|
|
|
57
57
|
mod.exports = url;
|
|
58
58
|
}
|
|
59
59
|
async function setupConsoleLogSpy() {
|
|
60
|
-
const { createCustomConsole } = await import('./console.
|
|
60
|
+
const { createCustomConsole } = await import('./console.RBA5x-0t.js');
|
|
61
61
|
globalThis.console = createCustomConsole();
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -119,7 +119,7 @@ async function startModuleRunner(options) {
|
|
|
119
119
|
let mocker;
|
|
120
120
|
if (options.state.config.experimental.nodeLoader !== false) {
|
|
121
121
|
// this additionally imports acorn/magic-string
|
|
122
|
-
const { NativeModuleMocker } = await import('./nativeModuleMocker.
|
|
122
|
+
const { NativeModuleMocker } = await import('./nativeModuleMocker.CXSh3m91.js');
|
|
123
123
|
mocker = new NativeModuleMocker({
|
|
124
124
|
async resolveId(id, importer) {
|
|
125
125
|
// TODO: use import.meta.resolve instead
|
|
@@ -136,7 +136,7 @@ async function startModuleRunner(options) {
|
|
|
136
136
|
}
|
|
137
137
|
// imported lazily (pulls in `local-pkg`) so it stays out of the default
|
|
138
138
|
// worker startup graph; only the `viteModuleRunner: false` path needs it
|
|
139
|
-
const { NativeModuleRunner } = await import('./nativeModuleRunner.
|
|
139
|
+
const { NativeModuleRunner } = await import('./nativeModuleRunner.jwZPY3dg.js').then(function (n) { return n.n; });
|
|
140
140
|
_moduleRunner = new NativeModuleRunner(root, mocker);
|
|
141
141
|
return _moduleRunner;
|
|
142
142
|
}
|
|
@@ -148,7 +148,7 @@ let _environmentTime;
|
|
|
148
148
|
/** @experimental */
|
|
149
149
|
async function setupBaseEnvironment(context) {
|
|
150
150
|
if (context.config.experimental.viteModuleRunner === false) {
|
|
151
|
-
const { setupNodeLoaderHooks } = await import('./native.
|
|
151
|
+
const { setupNodeLoaderHooks } = await import('./native.CBlba4VV.js');
|
|
152
152
|
await setupNodeLoaderHooks(context);
|
|
153
153
|
}
|
|
154
154
|
const startTime = performance.now();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FileSpecification } from './config.d.
|
|
2
|
-
import { O as OTELCarrier } from './rpc.d.
|
|
3
|
-
import { T as TestExecutionMethod } from './worker.d.
|
|
1
|
+
import { F as FileSpecification } from './config.d.BxjInJat.js';
|
|
2
|
+
import { O as OTELCarrier } from './rpc.d.BPFHl-HE.js';
|
|
3
|
+
import { T as TestExecutionMethod } from './worker.d.Bt2A2mmi.js';
|
|
4
4
|
|
|
5
5
|
interface ModuleDefinitionLocation {
|
|
6
6
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as normalize, t as toArray } from './pathe.M-eThtNZ.
|
|
1
|
+
import { n as normalize, t as toArray } from './pathe.M-eThtNZ.CknpM8Or.js';
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { m } from './tinyrainbow.Ht9iggcq.js';
|
|
4
4
|
import { a as isForceColor } from './env.DzFJjrmK.js';
|
|
@@ -620,7 +620,7 @@ class CAC extends EventEmitter {
|
|
|
620
620
|
|
|
621
621
|
const cac = (name = "") => new CAC(name);
|
|
622
622
|
|
|
623
|
-
var version = "5.0.
|
|
623
|
+
var version = "5.0.3";
|
|
624
624
|
|
|
625
625
|
const apiConfig = (port) => ({
|
|
626
626
|
port: {
|
|
@@ -975,11 +975,11 @@ const cliOptionsConfig = {
|
|
|
975
975
|
argument: "<seed>"
|
|
976
976
|
},
|
|
977
977
|
hooks: {
|
|
978
|
-
description: "Changes the order in which hooks are executed. Accepted values are: \"stack\", \"list\" and \"parallel\". Visit [`sequence.hooks`](https://vitest.dev/config/sequence#sequence-hooks) for more information (default: `\"
|
|
978
|
+
description: "Changes the order in which hooks are executed. Accepted values are: \"stack\", \"list\" and \"parallel\". Visit [`sequence.hooks`](https://vitest.dev/config/sequence#sequence-hooks) for more information (default: `\"stack\"`)",
|
|
979
979
|
argument: "<order>"
|
|
980
980
|
},
|
|
981
981
|
setupFiles: {
|
|
982
|
-
description: "Changes the order in which setup files are executed. Accepted values are: \"list\" and \"parallel\". If set to \"list\", will run setup files in the order they are defined. If set to \"parallel\", will run setup files in parallel (default: `\"
|
|
982
|
+
description: "Changes the order in which setup files are executed. Accepted values are: \"list\" and \"parallel\". If set to \"list\", will run setup files in the order they are defined. If set to \"parallel\", will run setup files in parallel (default: `\"list\"`)",
|
|
983
983
|
argument: "<order>"
|
|
984
984
|
},
|
|
985
985
|
groupOrder: null
|
|
@@ -1074,10 +1074,10 @@ const cliOptionsConfig = {
|
|
|
1074
1074
|
description: "Placeholder for an empty first or last line (default: `\"\"`)",
|
|
1075
1075
|
argument: "<placeholder>"
|
|
1076
1076
|
},
|
|
1077
|
-
expand: { description: "Expand all common lines (default: `
|
|
1077
|
+
expand: { description: "Expand all common lines (default: `false`)" },
|
|
1078
1078
|
includeChangeCounts: { description: "Include comparison counts in diff output (default: `false`)" },
|
|
1079
1079
|
omitAnnotationLines: { description: "Omit annotation lines from the output (default: `false`)" },
|
|
1080
|
-
printBasicPrototype: { description: "Print basic prototype Object and Array (default: `
|
|
1080
|
+
printBasicPrototype: { description: "Print basic prototype Object and Array (default: `false`)" },
|
|
1081
1081
|
maxDepth: {
|
|
1082
1082
|
description: "Limit the depth to recurse when printing nested objects (default: `20`)",
|
|
1083
1083
|
argument: "<maxDepth>"
|
|
@@ -2366,11 +2366,11 @@ function normalizeCliOptions(cliFilters, argv) {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
async function start(cliFilters, options) {
|
|
2368
2368
|
try {
|
|
2369
|
-
const { startVitest } = await import('./cli-api.
|
|
2369
|
+
const { startVitest } = await import('./cli-api.C4x4GGip.js').then(function (n) { return n.a; });
|
|
2370
2370
|
const ctx = await startVitest(cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
2371
2371
|
if (!ctx.shouldKeepServer()) await ctx.exit();
|
|
2372
2372
|
} catch (e) {
|
|
2373
|
-
const { errorBanner } = await import('./utils.
|
|
2373
|
+
const { errorBanner } = await import('./utils.RcGwuOc_.js').then(function (n) { return n.u; });
|
|
2374
2374
|
console.error(`\n${errorBanner("Startup Error")}`);
|
|
2375
2375
|
console.error(e);
|
|
2376
2376
|
console.error("\n\n");
|
|
@@ -2380,11 +2380,11 @@ async function start(cliFilters, options) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
async function doctorCommand(cliFilters, options) {
|
|
2382
2382
|
try {
|
|
2383
|
-
const { doctor } = await import('./doctor.
|
|
2383
|
+
const { doctor } = await import('./doctor.CpHPRoza.js');
|
|
2384
2384
|
await doctor(cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
2385
2385
|
process.exit();
|
|
2386
2386
|
} catch (e) {
|
|
2387
|
-
const { errorBanner } = await import('./utils.
|
|
2387
|
+
const { errorBanner } = await import('./utils.RcGwuOc_.js').then(function (n) { return n.u; });
|
|
2388
2388
|
console.error(`\n${errorBanner("Doctor Error")}`);
|
|
2389
2389
|
console.error(e);
|
|
2390
2390
|
console.error("\n\n");
|
|
@@ -2397,12 +2397,12 @@ async function init(project) {
|
|
|
2397
2397
|
console.error(/* @__PURE__ */ new Error("Only the \"browser\" project is supported. Use \"vitest init browser\" to create a new project."));
|
|
2398
2398
|
process.exit(1);
|
|
2399
2399
|
}
|
|
2400
|
-
const { create } = await import('./creator.
|
|
2400
|
+
const { create } = await import('./creator.203NYCo3.js');
|
|
2401
2401
|
await create();
|
|
2402
2402
|
}
|
|
2403
2403
|
async function collect(cliFilters, options) {
|
|
2404
2404
|
try {
|
|
2405
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
2405
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.C4x4GGip.js').then(function (n) { return n.a; });
|
|
2406
2406
|
const ctx = await prepareVitest({
|
|
2407
2407
|
...normalizeCliOptions(cliFilters, options),
|
|
2408
2408
|
watch: false,
|
|
@@ -2424,7 +2424,7 @@ async function collect(cliFilters, options) {
|
|
|
2424
2424
|
} else outputFileList(await ctx.getRelevantTestSpecifications(cliFilters.map(normalize)), options);
|
|
2425
2425
|
await ctx.close();
|
|
2426
2426
|
} catch (e) {
|
|
2427
|
-
const { errorBanner } = await import('./utils.
|
|
2427
|
+
const { errorBanner } = await import('./utils.RcGwuOc_.js').then(function (n) { return n.u; });
|
|
2428
2428
|
console.error(`\n${errorBanner("Collect Error")}`);
|
|
2429
2429
|
console.error(e);
|
|
2430
2430
|
console.error("\n\n");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { mkdirSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import { C as CoverageProviderMap } from './coverage.
|
|
3
|
-
import { L as Logger, k as VitestPackageInstaller, P as PluginHarness, w as resolveConfig, V as Vitest, A as stdout, y as prompt, g as FilesNotFoundError, G as GitNotFoundError, I as IncludeTaskLocationDisabledError, C as RangeLocationFilterProvidedError, E as LocationFilterFileNotFoundError } from './index.
|
|
2
|
+
import { C as CoverageProviderMap } from './coverage._yXj5zeb.js';
|
|
3
|
+
import { L as Logger, k as VitestPackageInstaller, P as PluginHarness, w as resolveConfig, V as Vitest, A as stdout, y as prompt, g as FilesNotFoundError, G as GitNotFoundError, I as IncludeTaskLocationDisabledError, C as RangeLocationFilterProvidedError, E as LocationFilterFileNotFoundError } from './index.DpLw24bj.js';
|
|
4
4
|
import readline from 'node:readline';
|
|
5
5
|
import { y } from './tinyrainbow.Ht9iggcq.js';
|
|
6
6
|
import { i as isWindows } from './env.DzFJjrmK.js';
|
|
7
7
|
import { stripVTControlCharacters } from 'node:util';
|
|
8
|
-
import { e as createDefer, a as relative, r as resolve, d as dirname, i as isAbsolute } from './pathe.M-eThtNZ.
|
|
8
|
+
import { e as createDefer, a as relative, r as resolve, d as dirname, i as isAbsolute } from './pathe.M-eThtNZ.CknpM8Or.js';
|
|
9
9
|
|
|
10
10
|
async function createVitest(modeOrOptions, optionsOrViteOverrides = {}, viteOverridesOrVitestOptions = {}, maybeVitestOptions = {}) {
|
|
11
11
|
let options;
|
|
@@ -188,7 +188,7 @@ ${keys.map((i) => y.dim(" press ") + y.reset([i[0]].flat().map(y.bold).join(",
|
|
|
188
188
|
}
|
|
189
189
|
function* traverseFilteredTestNames(parentName, filter, t) {
|
|
190
190
|
if (t.type === "test") {
|
|
191
|
-
if (t.name
|
|
191
|
+
if (filter.test(t.name)) {
|
|
192
192
|
const displayName = `${parentName} > ${t.name}`;
|
|
193
193
|
yield {
|
|
194
194
|
key: t.name,
|
|
@@ -506,7 +506,7 @@ function formatCollectedAsString(testModules) {
|
|
|
506
506
|
return results;
|
|
507
507
|
}
|
|
508
508
|
const envPackageNames = {
|
|
509
|
-
|
|
509
|
+
jsdom: "jsdom",
|
|
510
510
|
"happy-dom": "happy-dom",
|
|
511
511
|
"edge-runtime": "@edge-runtime/vm"
|
|
512
512
|
};
|
|
@@ -795,11 +795,11 @@ interface MockContext<T extends Procedure | Constructable = Procedure> {
|
|
|
795
795
|
lastCall: MockParameters<T> | undefined;
|
|
796
796
|
}
|
|
797
797
|
type Procedure = (...args: any[]) => any;
|
|
798
|
-
type NormalizedProcedure<T extends Procedure | Constructable> = T extends Constructable ?
|
|
798
|
+
type NormalizedProcedure<T extends Procedure | Constructable> = T extends Constructable ? {
|
|
799
799
|
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
800
|
-
}
|
|
800
|
+
} | {
|
|
801
801
|
(this: InstanceType<T>, ...args: ConstructorParameters<T>): void;
|
|
802
|
-
}
|
|
802
|
+
} : T extends Procedure ? (...args: Parameters<T>) => ReturnType<T> : never;
|
|
803
803
|
type Methods<T> = keyof { [K in keyof T as T[K] extends Procedure ? K : never]: T[K] };
|
|
804
804
|
type Properties<T> = { [K in keyof T]: T[K] extends Procedure ? never : K }[keyof T] & (string | symbol);
|
|
805
805
|
type Classes<T> = { [K in keyof T]: T[K] extends new (...args: any[]) => any ? K : never }[keyof T] & (string | symbol);
|
|
@@ -976,29 +976,29 @@ interface MockInstance<T extends Procedure | Constructable = Procedure> extends
|
|
|
976
976
|
*/
|
|
977
977
|
mockRejectedValueOnce(error: unknown): this;
|
|
978
978
|
}
|
|
979
|
-
type Mock<T extends Procedure | Constructable = Procedure> = MockInstance<T> & (T extends Constructable ?
|
|
979
|
+
type Mock<T extends Procedure | Constructable = Procedure> = MockInstance<T> & (T extends Constructable ? T extends Procedure ? {
|
|
980
980
|
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
981
981
|
(...args: Parameters<T>): ReturnType<T>;
|
|
982
982
|
} : {
|
|
983
983
|
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
984
|
-
}
|
|
984
|
+
} : {
|
|
985
985
|
new (...args: MockParameters<T>): MockReturnType<T>;
|
|
986
986
|
(...args: MockParameters<T>): MockReturnType<T>;
|
|
987
987
|
}) & { [P in keyof T]: T[P] };
|
|
988
988
|
type PartialMaybePromise<T> = T extends Promise<Awaited<T>> ? Promise<Partial<Awaited<T>>> : Partial<T>;
|
|
989
|
-
type PartialResultFunction<T> = T extends Constructable ?
|
|
989
|
+
type PartialResultFunction<T> = T extends Constructable ? {
|
|
990
990
|
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
991
|
-
}
|
|
991
|
+
} | {
|
|
992
992
|
(this: InstanceType<T>, ...args: ConstructorParameters<T>): void;
|
|
993
|
-
}
|
|
993
|
+
} : T extends Procedure ? (...args: Parameters<T>) => PartialMaybePromise<ReturnType<T>> : T;
|
|
994
994
|
type PartialMock<T extends Procedure | Constructable = Procedure> = Mock<PartialResultFunction<T extends Mock ? NonNullable<ReturnType<T["getMockImplementation"]>> : T>>;
|
|
995
995
|
type DeepPartial<T> = T extends Procedure ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T;
|
|
996
996
|
type DeepPartialMaybePromise<T> = T extends Promise<Awaited<T>> ? Promise<DeepPartial<Awaited<T>>> : DeepPartial<T>;
|
|
997
|
-
type DeepPartialResultFunction<T> = T extends Constructable ?
|
|
997
|
+
type DeepPartialResultFunction<T> = T extends Constructable ? {
|
|
998
998
|
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
999
|
-
}
|
|
999
|
+
} | {
|
|
1000
1000
|
(this: InstanceType<T>, ...args: ConstructorParameters<T>): void;
|
|
1001
|
-
}
|
|
1001
|
+
} : T extends Procedure ? (...args: Parameters<T>) => DeepPartialMaybePromise<ReturnType<T>> : T;
|
|
1002
1002
|
type DeepPartialMock<T extends Procedure | Constructable = Procedure> = Mock<DeepPartialResultFunction<T extends Mock ? NonNullable<ReturnType<T["getMockImplementation"]>> : T>>;
|
|
1003
1003
|
type MaybeMockedConstructor<T> = T extends Constructable ? Mock<T> : T;
|
|
1004
1004
|
type MockedFunction<T extends Procedure | Constructable> = Mock<T> & MockedObject<T>;
|
|
@@ -2452,13 +2452,11 @@ interface TaskResult {
|
|
|
2452
2452
|
*/
|
|
2453
2453
|
hooks?: Partial<Record<keyof SuiteHooks, TaskState>>;
|
|
2454
2454
|
/**
|
|
2455
|
-
* The
|
|
2456
|
-
* failed and `retry` option is set.
|
|
2455
|
+
* The number of times the task has been retried across all repeats.
|
|
2457
2456
|
*/
|
|
2458
2457
|
retryCount?: number;
|
|
2459
2458
|
/**
|
|
2460
|
-
* The
|
|
2461
|
-
* `repeats` option is set. This number also contains `retryCount`.
|
|
2459
|
+
* The zero-based index of the current repeat.
|
|
2462
2460
|
*/
|
|
2463
2461
|
repeatCount?: number;
|
|
2464
2462
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Console } from 'node:console';
|
|
2
2
|
import { relative } from 'node:path';
|
|
3
3
|
import { Writable } from 'node:stream';
|
|
4
|
-
import { a as getSafeTimers } from './source-map.
|
|
4
|
+
import { a as getSafeTimers } from './source-map.DUxvo12T.js';
|
|
5
5
|
import { y } from './tinyrainbow.Ht9iggcq.js';
|
|
6
6
|
import { g as getWorkerState } from './utils.DYj33du9.js';
|
|
7
|
-
import './
|
|
7
|
+
import './index.cx-_w29y.js';
|
|
8
|
+
import './pathe.M-eThtNZ.CknpM8Or.js';
|
|
8
9
|
|
|
9
10
|
const RealDate = globalThis.Date;
|
|
10
11
|
const UNKNOWN_TEST_ID = "__vitest__unknown_test__";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as resolveCoverageProviderModule } from './coverage.
|
|
1
|
+
import { r as resolveCoverageProviderModule } from './coverage._yXj5zeb.js';
|
|
2
2
|
|
|
3
3
|
async function startCoverageInsideWorker(options, loader, runtimeOptions) {
|
|
4
4
|
const coverageModule = await resolveCoverageProviderModule(options, loader);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as resolve } from './pathe.M-eThtNZ.
|
|
1
|
+
import { r as resolve } from './pathe.M-eThtNZ.CknpM8Or.js';
|
|
2
2
|
|
|
3
3
|
function getCoverageFilesDirectory(reportsDirectory, shard) {
|
|
4
4
|
return resolve(reportsDirectory, `.tmp${shard ? `-${shard.index}-${shard.count}` : ""}`);
|
|
@@ -2,14 +2,15 @@ import { existsSync, writeFileSync, readFileSync } from 'node:fs';
|
|
|
2
2
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
3
3
|
import { resolve, dirname, relative } from 'node:path';
|
|
4
4
|
import { detectPackageManager, installPackage } from './index.DXQx-kDM.js';
|
|
5
|
-
import { y as prompt, z as findConfigFile } from './index.
|
|
5
|
+
import { y as prompt, z as findConfigFile } from './index.DpLw24bj.js';
|
|
6
6
|
import { x } from 'tinyexec';
|
|
7
7
|
import { y } from './tinyrainbow.Ht9iggcq.js';
|
|
8
8
|
import 'node:process';
|
|
9
9
|
import 'node:os';
|
|
10
|
-
import './pathe.M-eThtNZ.
|
|
11
|
-
import './source-map.
|
|
12
|
-
import './
|
|
10
|
+
import './pathe.M-eThtNZ.CknpM8Or.js';
|
|
11
|
+
import './source-map.DUxvo12T.js';
|
|
12
|
+
import './index.cx-_w29y.js';
|
|
13
|
+
import './cac.DfDGTQ9W.js';
|
|
13
14
|
import 'events';
|
|
14
15
|
import './env.DzFJjrmK.js';
|
|
15
16
|
import 'std-env';
|
|
@@ -31,18 +32,17 @@ import 'vite';
|
|
|
31
32
|
import 'node:crypto';
|
|
32
33
|
import '../path.js';
|
|
33
34
|
import 'node:url';
|
|
34
|
-
import './run.
|
|
35
|
-
import './
|
|
36
|
-
import './display.pkpxlVcY.js';
|
|
35
|
+
import './run.BTlFXlnv.js';
|
|
36
|
+
import './display.CXBnkt9a.js';
|
|
37
37
|
import '../task-utils.js';
|
|
38
|
-
import './nativeModuleRunner.
|
|
38
|
+
import './nativeModuleRunner.jwZPY3dg.js';
|
|
39
39
|
import 'node:module';
|
|
40
40
|
import 'node:v8';
|
|
41
41
|
import 'node:util';
|
|
42
42
|
import 'vite/module-runner';
|
|
43
43
|
import '../traces.js';
|
|
44
44
|
import 'obug';
|
|
45
|
-
import './resolver.
|
|
45
|
+
import './resolver.fbW9AUvG.js';
|
|
46
46
|
import 'es-module-lexer';
|
|
47
47
|
import 'tinyglobby';
|
|
48
48
|
import './defaults.D2ip7f-X.js';
|
|
@@ -51,10 +51,10 @@ import '@vitest/mocker/node';
|
|
|
51
51
|
import 'node:console';
|
|
52
52
|
import 'node:stream';
|
|
53
53
|
import './offset.Dy-5Fdfn.js';
|
|
54
|
-
import './utils.
|
|
54
|
+
import './utils.RcGwuOc_.js';
|
|
55
55
|
import '#module-evaluator';
|
|
56
56
|
import 'picomatch';
|
|
57
|
-
import './coverage.
|
|
57
|
+
import './coverage._yXj5zeb.js';
|
|
58
58
|
import 'node:tty';
|
|
59
59
|
import 'node:events';
|
|
60
60
|
import './modules.BJuCwlRJ.js';
|
|
@@ -386,7 +386,7 @@ async function generateExampleFiles(framework, lang) {
|
|
|
386
386
|
return testPath;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
//
|
|
389
|
+
// oxlint-disable-next-line no-console
|
|
390
390
|
const log = console.log;
|
|
391
391
|
function getProviderOptions() {
|
|
392
392
|
return Object.entries({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as format$1, p as plugins, c as createDOMElementFilter } from './index.
|
|
1
|
+
import { f as format$1, p as plugins, c as createDOMElementFilter } from './index.cx-_w29y.js';
|
|
2
2
|
|
|
3
3
|
const { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
|
|
4
4
|
const PLUGINS = [
|
|
@@ -4,7 +4,7 @@ import { availableParallelism, tmpdir } from 'node:os';
|
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
import { performance } from 'node:perf_hooks';
|
|
6
6
|
import { pathToFileURL } from 'node:url';
|
|
7
|
-
import { t as toArray, r as resolve } from './pathe.M-eThtNZ.
|
|
7
|
+
import { t as toArray, r as resolve } from './pathe.M-eThtNZ.CknpM8Or.js';
|
|
8
8
|
import { y } from './tinyrainbow.Ht9iggcq.js';
|
|
9
9
|
import { distDir } from '../path.js';
|
|
10
10
|
|
|
@@ -100,7 +100,7 @@ function log(...args) {
|
|
|
100
100
|
console.log(...args);
|
|
101
101
|
}
|
|
102
102
|
async function doctor(cliFilters, options) {
|
|
103
|
-
const { prepareVitest } = await import('./cli-api.
|
|
103
|
+
const { prepareVitest } = await import('./cli-api.C4x4GGip.js').then(function (n) { return n.a; });
|
|
104
104
|
log();
|
|
105
105
|
log(y.inverse(y.bold(y.blue(" DOCTOR "))), "resolving the current configuration...");
|
|
106
106
|
const ctx = await prepareVitest({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { g as globalApis } from './constants.-juJ8b_4.js';
|
|
2
|
-
import { i as index } from './index.
|
|
3
|
-
import './run.
|
|
4
|
-
import './index.
|
|
2
|
+
import { i as index } from './index.C4tKZ0yW.js';
|
|
3
|
+
import './run.BTlFXlnv.js';
|
|
4
|
+
import './index.cx-_w29y.js';
|
|
5
5
|
import './tinyrainbow.Ht9iggcq.js';
|
|
6
|
-
import './display.
|
|
7
|
-
import './pathe.M-eThtNZ.
|
|
8
|
-
import './source-map.
|
|
6
|
+
import './display.CXBnkt9a.js';
|
|
7
|
+
import './pathe.M-eThtNZ.CknpM8Or.js';
|
|
8
|
+
import './source-map.DUxvo12T.js';
|
|
9
9
|
import '../task-utils.js';
|
|
10
10
|
import './utils.DYj33du9.js';
|
|
11
|
-
import './spy.
|
|
11
|
+
import './spy.DgMTfhrK.js';
|
|
12
12
|
import 'chai';
|
|
13
|
-
import './plugins.
|
|
13
|
+
import './plugins.D2ut1V9b.js';
|
|
14
14
|
import './offset.Dy-5Fdfn.js';
|
|
15
|
-
import './rpc.
|
|
15
|
+
import './rpc.BTmCtPly.js';
|
|
16
16
|
import 'vite/module-runner';
|
|
17
17
|
import './index.DmDMHCg8.js';
|
|
18
18
|
import 'tinybench';
|