vitest 2.1.7 → 2.1.8
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.
|
@@ -618,7 +618,7 @@ class CAC extends EventEmitter {
|
|
|
618
618
|
|
|
619
619
|
const cac = (name = "") => new CAC(name);
|
|
620
620
|
|
|
621
|
-
var version = "2.1.
|
|
621
|
+
var version = "2.1.8";
|
|
622
622
|
|
|
623
623
|
const apiConfig = (port) => ({
|
|
624
624
|
port: {
|
|
@@ -1502,7 +1502,7 @@ async function start(mode, cliFilters, options) {
|
|
|
1502
1502
|
} catch {
|
|
1503
1503
|
}
|
|
1504
1504
|
try {
|
|
1505
|
-
const { startVitest } = await import('./cli-api.
|
|
1505
|
+
const { startVitest } = await import('./cli-api.C2yC_ESk.js').then(function (n) { return n.e; });
|
|
1506
1506
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(options));
|
|
1507
1507
|
if (!ctx?.shouldKeepServer()) {
|
|
1508
1508
|
await ctx?.exit();
|
|
@@ -1533,7 +1533,7 @@ async function collect(mode, cliFilters, options) {
|
|
|
1533
1533
|
} catch {
|
|
1534
1534
|
}
|
|
1535
1535
|
try {
|
|
1536
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
1536
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.C2yC_ESk.js').then(function (n) { return n.e; });
|
|
1537
1537
|
const ctx = await prepareVitest(mode, {
|
|
1538
1538
|
...normalizeCliOptions(options),
|
|
1539
1539
|
watch: false,
|
|
@@ -11,7 +11,7 @@ import { SnapshotManager } from '@vitest/snapshot/manager';
|
|
|
11
11
|
import { i as isPackageExists, e as requireMicromatch, V as VitestCache, f as configDefaults, m as mm, b as resolveConfig, h as isBrowserEnabled, w as wildcardPatternToRegExp, g as getFilePoolName, j as createPool, a as resolveApiServerConfig, c as coverageConfigDefaults, s as stdout } from './resolveConfig.RxKrDli4.js';
|
|
12
12
|
import { ViteNodeRunner } from 'vite-node/client';
|
|
13
13
|
import { ViteNodeServer } from 'vite-node/server';
|
|
14
|
-
import { v as version$1 } from './cac.
|
|
14
|
+
import { v as version$1 } from './cac.FBRVyxnO.js';
|
|
15
15
|
import { c as createBirpc } from './index.68735LiX.js';
|
|
16
16
|
import { s as stringify, p as parse, R as ReportersMap, h as BenchmarkReportsMap, f as TestModule, g as TestSuite, e as TestCase, j as generateCodeFrame, i as TestProject, L as Logger, k as BlobReporter, r as readBlobs } from './index.DsZFoqi9.js';
|
|
17
17
|
import require$$0$2 from 'stream';
|
package/dist/cli.js
CHANGED
package/dist/node.js
CHANGED
|
@@ -2,8 +2,8 @@ import { createServer as createServer$1 } from 'vite';
|
|
|
2
2
|
export { isFileServingAllowed, parseAst, parseAstAsync } from 'vite';
|
|
3
3
|
import { f as TestModule } from './chunks/index.DsZFoqi9.js';
|
|
4
4
|
export { e as TestCase, i as TestProject, g as TestSuite } from './chunks/index.DsZFoqi9.js';
|
|
5
|
-
export { p as parseCLI } from './chunks/cac.
|
|
6
|
-
export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.FBRVyxnO.js';
|
|
6
|
+
export { G as GitNotFoundError, T as TestSpecification, F as TestsNotFoundError, V as VitestPackageInstaller, a as VitestPlugin, d as createViteLogger, c as createVitest, b as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.C2yC_ESk.js';
|
|
7
7
|
export { d as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig, b as resolveConfig } from './chunks/resolveConfig.RxKrDli4.js';
|
|
8
8
|
export { B as BaseSequencer } from './chunks/RandomSequencer.CMRlh2v4.js';
|
|
9
9
|
export { distDir, rootDir } from './path.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.8",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
"dist"
|
|
116
116
|
],
|
|
117
117
|
"engines": {
|
|
118
|
-
"node": "^18.0.0 ||
|
|
118
|
+
"node": "^18.0.0 || >=20.0.0"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@edge-runtime/vm": "*",
|
|
122
|
-
"@types/node": "^18.0.0 ||
|
|
122
|
+
"@types/node": "^18.0.0 || >=20.0.0",
|
|
123
123
|
"happy-dom": "*",
|
|
124
124
|
"jsdom": "*",
|
|
125
|
-
"@vitest/browser": "2.1.
|
|
126
|
-
"@vitest/ui": "2.1.
|
|
125
|
+
"@vitest/browser": "2.1.8",
|
|
126
|
+
"@vitest/ui": "2.1.8"
|
|
127
127
|
},
|
|
128
128
|
"peerDependenciesMeta": {
|
|
129
129
|
"@edge-runtime/vm": {
|
|
@@ -158,14 +158,14 @@
|
|
|
158
158
|
"tinyrainbow": "^1.2.0",
|
|
159
159
|
"vite": "^5.0.0",
|
|
160
160
|
"why-is-node-running": "^2.3.0",
|
|
161
|
-
"@vitest/expect": "2.1.
|
|
162
|
-
"@vitest/mocker": "2.1.
|
|
163
|
-
"@vitest/
|
|
164
|
-
"@vitest/
|
|
165
|
-
"@vitest/
|
|
166
|
-
"@vitest/
|
|
167
|
-
"
|
|
168
|
-
"
|
|
161
|
+
"@vitest/expect": "2.1.8",
|
|
162
|
+
"@vitest/mocker": "2.1.8",
|
|
163
|
+
"@vitest/runner": "2.1.8",
|
|
164
|
+
"@vitest/pretty-format": "^2.1.8",
|
|
165
|
+
"@vitest/snapshot": "2.1.8",
|
|
166
|
+
"@vitest/spy": "2.1.8",
|
|
167
|
+
"vite-node": "2.1.8",
|
|
168
|
+
"@vitest/utils": "2.1.8"
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
171
|
"@ampproject/remapping": "^2.3.0",
|