vitest 4.0.0-beta.14 → 4.0.0-beta.16

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 = "4.0.0-beta.14";
622
+ var version = "4.0.0-beta.16";
623
623
 
624
624
  const apiConfig = (port) => ({
625
625
  port: {
@@ -1341,7 +1341,7 @@ function normalizeCliOptions(cliFilters, argv) {
1341
1341
  }
1342
1342
  async function start(mode, cliFilters, options) {
1343
1343
  try {
1344
- const { startVitest } = await import('./cli-api.CD_0qYMh.js').then(function (n) { return n.h; }), ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
1344
+ const { startVitest } = await import('./cli-api.BB9IOXn3.js').then(function (n) { return n.h; }), ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(cliFilters, options));
1345
1345
  if (!ctx.shouldKeepServer()) await ctx.exit();
1346
1346
  } catch (e) {
1347
1347
  const { errorBanner } = await import('./index.DehVUBn4.js').then(function (n) { return n.u; });
@@ -1356,7 +1356,7 @@ async function init(project) {
1356
1356
  }
1357
1357
  async function collect(mode, cliFilters, options) {
1358
1358
  try {
1359
- const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.CD_0qYMh.js').then(function (n) { return n.h; }), ctx = await prepareVitest(mode, {
1359
+ const { prepareVitest, processCollected, outputFileList } = await import('./cli-api.BB9IOXn3.js').then(function (n) { return n.h; }), ctx = await prepareVitest(mode, {
1360
1360
  ...normalizeCliOptions(cliFilters, options),
1361
1361
  watch: false,
1362
1362
  run: true
@@ -10,7 +10,7 @@ import { A as API_PATH, c as configFiles, d as defaultBrowserPort, a as defaultP
10
10
  import nodeos__default, { tmpdir } from 'node:os';
11
11
  import { generateHash as generateHash$1, calculateSuiteHash, someTasksAreOnly, interpretTaskModes, generateFileHash, limitConcurrency, createFileTask as createFileTask$1, hasFailed, getTasks, isTestCase } from '@vitest/runner/utils';
12
12
  import { SnapshotManager } from '@vitest/snapshot/manager';
13
- import { v as version$1 } from './cac.DOq1v3N-.js';
13
+ import { v as version$1 } from './cac.BUHfInSv.js';
14
14
  import { c as createBirpc } from './index.Bgo3tNWt.js';
15
15
  import { p as parse, s as stringify, b as TraceMap, o as originalPositionFor, c as ancestor, d as createDefinesScript, e as convertTasksToEvents } from './typechecker.DsKAhua5.js';
16
16
  import require$$0$3 from 'events';
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createCLI } from './chunks/cac.DOq1v3N-.js';
1
+ import { c as createCLI } from './chunks/cac.BUHfInSv.js';
2
2
  import '@vitest/utils/helpers';
3
3
  import 'events';
4
4
  import 'pathe';
package/dist/config.d.ts CHANGED
@@ -92,6 +92,7 @@ type ViteUserConfigExport = UserConfig | Promise<UserConfig> | ViteUserConfigFnO
92
92
  declare function defineConfig(config: UserConfig): UserConfig;
93
93
  declare function defineConfig(config: Promise<UserConfig>): Promise<UserConfig>;
94
94
  declare function defineConfig(config: ViteUserConfigFnObject): ViteUserConfigFnObject;
95
+ declare function defineConfig(config: ViteUserConfigFnPromise): ViteUserConfigFnPromise;
95
96
  declare function defineConfig(config: ViteUserConfigExport): ViteUserConfigExport;
96
97
  declare function defineProject(config: UserWorkspaceConfig): UserWorkspaceConfig;
97
98
  declare function defineProject(config: Promise<UserWorkspaceConfig>): Promise<UserWorkspaceConfig>;
package/dist/node.js CHANGED
@@ -1,9 +1,9 @@
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.CD_0qYMh.js';
5
- export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.CD_0qYMh.js';
6
- export { p as parseCLI } from './chunks/cac.DOq1v3N-.js';
4
+ import { V as Vitest, a as VitestPlugin } from './chunks/cli-api.BB9IOXn3.js';
5
+ export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, g as createViteLogger, c as createVitest, e as escapeTestName, d as experimental_getRunnerTask, i as isValidApiRequest, f as registerConsoleShortcuts, r as resolveFsAllow, s as startVitest } from './chunks/cli-api.BB9IOXn3.js';
6
+ export { p as parseCLI } from './chunks/cac.BUHfInSv.js';
7
7
  import { r as resolveConfig$2 } from './chunks/coverage.3htTSxXZ.js';
8
8
  export { b as BaseSequencer, d as createDebugger, c as createMethodsRPC, g as getFilePoolName, a as resolveApiServerConfig } from './chunks/coverage.3htTSxXZ.js';
9
9
  import { slash, deepClone } from '@vitest/utils/helpers';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.14",
4
+ "version": "4.0.0-beta.16",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -127,13 +127,13 @@
127
127
  "peerDependencies": {
128
128
  "@edge-runtime/vm": "*",
129
129
  "@types/debug": "^4.1.12",
130
- "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
130
+ "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
131
131
  "happy-dom": "*",
132
132
  "jsdom": "*",
133
- "@vitest/browser-playwright": "4.0.0-beta.14",
134
- "@vitest/browser-preview": "4.0.0-beta.14",
135
- "@vitest/browser-webdriverio": "4.0.0-beta.14",
136
- "@vitest/ui": "4.0.0-beta.14"
133
+ "@vitest/browser-playwright": "4.0.0-beta.16",
134
+ "@vitest/browser-preview": "4.0.0-beta.16",
135
+ "@vitest/browser-webdriverio": "4.0.0-beta.16",
136
+ "@vitest/ui": "4.0.0-beta.16"
137
137
  },
138
138
  "peerDependenciesMeta": {
139
139
  "@edge-runtime/vm": {
@@ -179,13 +179,13 @@
179
179
  "tinyrainbow": "^3.0.3",
180
180
  "vite": "^6.0.0 || ^7.0.0-0",
181
181
  "why-is-node-running": "^2.3.0",
182
- "@vitest/expect": "4.0.0-beta.14",
183
- "@vitest/mocker": "4.0.0-beta.14",
184
- "@vitest/pretty-format": "4.0.0-beta.14",
185
- "@vitest/runner": "4.0.0-beta.14",
186
- "@vitest/utils": "4.0.0-beta.14",
187
- "@vitest/snapshot": "4.0.0-beta.14",
188
- "@vitest/spy": "4.0.0-beta.14"
182
+ "@vitest/expect": "4.0.0-beta.16",
183
+ "@vitest/mocker": "4.0.0-beta.16",
184
+ "@vitest/pretty-format": "4.0.0-beta.16",
185
+ "@vitest/runner": "4.0.0-beta.16",
186
+ "@vitest/spy": "4.0.0-beta.16",
187
+ "@vitest/snapshot": "4.0.0-beta.16",
188
+ "@vitest/utils": "4.0.0-beta.16"
189
189
  },
190
190
  "devDependencies": {
191
191
  "@antfu/install-pkg": "^1.1.0",
@@ -213,7 +213,7 @@
213
213
  "prompts": "^2.4.2",
214
214
  "strip-literal": "^3.0.0",
215
215
  "ws": "^8.18.3",
216
- "@vitest/browser-playwright": "4.0.0-beta.14"
216
+ "@vitest/browser-playwright": "4.0.0-beta.16"
217
217
  },
218
218
  "scripts": {
219
219
  "build": "premove dist && rollup -c",