vitest 3.2.0 → 3.2.1
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.
|
@@ -619,7 +619,7 @@ class CAC extends EventEmitter {
|
|
|
619
619
|
|
|
620
620
|
const cac = (name = "") => new CAC(name);
|
|
621
621
|
|
|
622
|
-
var version = "3.2.
|
|
622
|
+
var version = "3.2.1";
|
|
623
623
|
|
|
624
624
|
const apiConfig = (port) => ({
|
|
625
625
|
port: {
|
|
@@ -1407,7 +1407,7 @@ async function start(mode, cliFilters, options) {
|
|
|
1407
1407
|
process.title = "node (vitest)";
|
|
1408
1408
|
} catch {}
|
|
1409
1409
|
try {
|
|
1410
|
-
const { startVitest } = await import('./cli-api.
|
|
1410
|
+
const { startVitest } = await import('./cli-api.DmupRhea.js').then(function (n) { return n.f; });
|
|
1411
1411
|
const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
|
|
1412
1412
|
if (!ctx.shouldKeepServer()) await ctx.exit();
|
|
1413
1413
|
} catch (e) {
|
|
@@ -1432,7 +1432,7 @@ async function collect(mode, cliFilters, options) {
|
|
|
1432
1432
|
process.title = "node (vitest)";
|
|
1433
1433
|
} catch {}
|
|
1434
1434
|
try {
|
|
1435
|
-
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.
|
|
1435
|
+
const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.DmupRhea.js').then(function (n) { return n.f; });
|
|
1436
1436
|
const ctx = await prepareVitest(mode, {
|
|
1437
1437
|
...normalizeCliOptions(cliFilters, options),
|
|
1438
1438
|
watch: false,
|
|
@@ -11,7 +11,7 @@ import { generateFileHash, limitConcurrency, createFileTask, hasFailed, getTasks
|
|
|
11
11
|
import { SnapshotManager } from '@vitest/snapshot/manager';
|
|
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.C8BzMmTW.js';
|
|
15
15
|
import { c as createBirpc } from './index.CJ0plNrh.js';
|
|
16
16
|
import { p as parse, s as stringify, d as printError, f as formatProjectName, w as withLabel, e as errorBanner, h as divider, i as generateCodeFrame, R as ReportersMap, j as BlobReporter, r as readBlobs, H as HangingProcessReporter } from './index.BZ0g1JD2.js';
|
|
17
17
|
import require$$0$3 from 'events';
|
|
@@ -5384,7 +5384,7 @@ class VitestCache {
|
|
|
5384
5384
|
}
|
|
5385
5385
|
static resolveCacheDir(root, dir, projectName) {
|
|
5386
5386
|
const baseDir = slash(dir || "node_modules/.vite");
|
|
5387
|
-
return resolve(root, baseDir, "vitest", hash("
|
|
5387
|
+
return resolve(root, baseDir, "vitest", hash("sha1", projectName || "", "hex"));
|
|
5388
5388
|
}
|
|
5389
5389
|
}
|
|
5390
5390
|
|
|
@@ -5837,7 +5837,7 @@ function MocksPlugins(options = {}) {
|
|
|
5837
5837
|
}
|
|
5838
5838
|
|
|
5839
5839
|
function generateCssFilenameHash(filepath) {
|
|
5840
|
-
return hash("
|
|
5840
|
+
return hash("sha1", filepath, "hex").slice(0, 6);
|
|
5841
5841
|
}
|
|
5842
5842
|
function generateScopedClassName(strategy, name, filename) {
|
|
5843
5843
|
// should be configured by Vite defaults
|
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import './chunks/vite.d.DqE4-hhK.js';
|
|
|
12
12
|
import { a as SerializedConfig, F as FakeTimerInstallOpts, R as RuntimeOptions } from './chunks/config.d.D2ROskhv.js';
|
|
13
13
|
export { b as RuntimeConfig, S as SerializedCoverageConfig } from './chunks/config.d.D2ROskhv.js';
|
|
14
14
|
import { ExpectStatic } from '@vitest/expect';
|
|
15
|
-
export { Assertion, AsymmetricMatchersContaining, ExpectPollOptions, ExpectStatic, JestAssertion, Matchers } from '@vitest/expect';
|
|
15
|
+
export { Assertion, AsymmetricMatchersContaining, DeeplyAllowMatchers, ExpectPollOptions, ExpectStatic, JestAssertion, Matchers } from '@vitest/expect';
|
|
16
16
|
import { spyOn, fn, MaybeMockedDeep, MaybeMocked, MaybePartiallyMocked, MaybePartiallyMockedDeep, MockInstance } from '@vitest/spy';
|
|
17
17
|
export { Mock, MockContext, MockInstance, Mocked, MockedClass, MockedFunction, MockedObject } from '@vitest/spy';
|
|
18
18
|
import { M as MockFactoryWithHelper, a as MockOptions } from './chunks/mocker.d.BE_2ls6u.js';
|
package/dist/node.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveConfig as resolveConfig$1, mergeConfig, createServer as createServer$1 } from 'vite';
|
|
2
2
|
export { esbuildVersion, isFileServingAllowed, parseAst, parseAstAsync, rollupVersion, version as viteVersion } from 'vite';
|
|
3
|
-
import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.
|
|
4
|
-
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, i as isValidApiRequest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.
|
|
5
|
-
export { p as parseCLI } from './chunks/cac.
|
|
3
|
+
import { V as Vitest, a as VitestPlugin, T as TestModule } from './chunks/cli-api.DmupRhea.js';
|
|
4
|
+
export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, e as createViteLogger, c as createVitest, i as isValidApiRequest, d as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.DmupRhea.js';
|
|
5
|
+
export { p as parseCLI } from './chunks/cac.C8BzMmTW.js';
|
|
6
6
|
import { r as resolveConfig$2 } from './chunks/coverage.EIiagJJP.js';
|
|
7
7
|
export { b as BaseSequencer, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.EIiagJJP.js';
|
|
8
8
|
import { slash, deepClone } from '@vitest/utils';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.1",
|
|
5
5
|
"description": "Next generation testing framework powered by Vite",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
|
|
120
120
|
"happy-dom": "*",
|
|
121
121
|
"jsdom": "*",
|
|
122
|
-
"@vitest/
|
|
123
|
-
"@vitest/
|
|
122
|
+
"@vitest/browser": "3.2.1",
|
|
123
|
+
"@vitest/ui": "3.2.1"
|
|
124
124
|
},
|
|
125
125
|
"peerDependenciesMeta": {
|
|
126
126
|
"@edge-runtime/vm": {
|
|
@@ -161,14 +161,14 @@
|
|
|
161
161
|
"tinyrainbow": "^2.0.0",
|
|
162
162
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",
|
|
163
163
|
"why-is-node-running": "^2.3.0",
|
|
164
|
-
"@vitest/
|
|
165
|
-
"@vitest/pretty-format": "^3.2.
|
|
166
|
-
"@vitest/runner": "3.2.
|
|
167
|
-
"@vitest/snapshot": "3.2.
|
|
168
|
-
"@vitest/
|
|
169
|
-
"@vitest/
|
|
170
|
-
"
|
|
171
|
-
"
|
|
164
|
+
"@vitest/mocker": "3.2.1",
|
|
165
|
+
"@vitest/pretty-format": "^3.2.1",
|
|
166
|
+
"@vitest/runner": "3.2.1",
|
|
167
|
+
"@vitest/snapshot": "3.2.1",
|
|
168
|
+
"@vitest/expect": "3.2.1",
|
|
169
|
+
"@vitest/spy": "3.2.1",
|
|
170
|
+
"vite-node": "3.2.1",
|
|
171
|
+
"@vitest/utils": "3.2.1"
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|
|
174
174
|
"@ampproject/remapping": "^2.3.0",
|