vitest 2.0.2 → 2.0.3

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.
@@ -14,7 +14,7 @@ import timers from 'node:timers';
14
14
  import { installSourcemapsSupport } from 'vite-node/source-map';
15
15
  import { V as VitestIndex } from '../vendor/index.Hqvcg1pf.js';
16
16
  import { s as setupCommonEnv } from '../vendor/setup-common.yHaxjRhz.js';
17
- import { c as closeInspector } from '../vendor/inspector.hPQncR7V.js';
17
+ import { c as closeInspector } from '../vendor/inspector.-FCQUzqR.js';
18
18
  import 'std-env';
19
19
  import 'chai';
20
20
  import '../vendor/_commonjsHelpers.BFTU3MAI.js';
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createCLI } from './vendor/cac.C2zVnLp0.js';
1
+ import { c as createCLI } from './vendor/cac.DUiZvzF_.js';
2
2
  import 'pathe';
3
3
  import 'events';
4
4
  import 'tinyrainbow';
package/dist/node.js CHANGED
@@ -1,5 +1,5 @@
1
- export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, g as getFilePoolName, r as registerConsoleShortcuts, e as resolveApiServerConfig, f as resolveConfig, d as resolveFsAllow, s as startVitest } from './vendor/cli-api.FtQZKvQk.js';
2
- export { p as parseCLI } from './vendor/cac.C2zVnLp0.js';
1
+ export { G as GitNotFoundError, F as TestsNotFoundError, b as VitestPackageInstaller, V as VitestPlugin, a as createMethodsRPC, c as createVitest, g as getFilePoolName, r as registerConsoleShortcuts, e as resolveApiServerConfig, f as resolveConfig, d as resolveFsAllow, s as startVitest } from './vendor/cli-api.CsgSG1Ir.js';
2
+ export { p as parseCLI } from './vendor/cac.DUiZvzF_.js';
3
3
  import createDebug from 'debug';
4
4
  export { distDir, rootDir } from './path.js';
5
5
  export { e as BaseSequencer } from './vendor/index.BCwvoAaf.js';
@@ -26,7 +26,7 @@ async function runBaseTests(method, state) {
26
26
  ctx.files.forEach((i) => state.moduleCache.delete(i));
27
27
  const [executor, { run }] = await Promise.all([
28
28
  startViteNode({ state, requestStubs: getDefaultRequestStubs() }),
29
- import('../chunks/runtime-runBaseTests.DJ9UidQ0.js')
29
+ import('../chunks/runtime-runBaseTests.hkIOeriM.js')
30
30
  ]);
31
31
  await run(
32
32
  method,
@@ -618,7 +618,7 @@ class CAC extends EventEmitter {
618
618
 
619
619
  const cac = (name = "") => new CAC(name);
620
620
 
621
- var version = "2.0.2";
621
+ var version = "2.0.3";
622
622
 
623
623
  const apiConfig = (port) => ({
624
624
  port: {
@@ -1498,7 +1498,7 @@ async function start(mode, cliFilters, options) {
1498
1498
  } catch {
1499
1499
  }
1500
1500
  try {
1501
- const { startVitest } = await import('./cli-api.FtQZKvQk.js').then(function (n) { return n.h; });
1501
+ const { startVitest } = await import('./cli-api.CsgSG1Ir.js').then(function (n) { return n.h; });
1502
1502
  const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(options));
1503
1503
  if (!(ctx == null ? void 0 : ctx.shouldKeepServer())) {
1504
1504
  await (ctx == null ? void 0 : ctx.exit());
@@ -1529,7 +1529,7 @@ async function collect(mode, cliFilters, options) {
1529
1529
  } catch {
1530
1530
  }
1531
1531
  try {
1532
- const { prepareVitest, processCollected } = await import('./cli-api.FtQZKvQk.js').then(function (n) { return n.h; });
1532
+ const { prepareVitest, processCollected } = await import('./cli-api.CsgSG1Ir.js').then(function (n) { return n.h; });
1533
1533
  const ctx = await prepareVitest(mode, {
1534
1534
  ...normalizeCliOptions(options),
1535
1535
  watch: false,
@@ -17,7 +17,7 @@ import require$$0$3 from 'fs';
17
17
  import { ViteNodeRunner } from 'vite-node/client';
18
18
  import { SnapshotManager } from '@vitest/snapshot/manager';
19
19
  import { ViteNodeServer } from 'vite-node/server';
20
- import { v as version$1 } from './cac.C2zVnLp0.js';
20
+ import { v as version$1 } from './cac.DUiZvzF_.js';
21
21
  import { hasFailed, createFileTask, getTasks, getTests, getNames } from '@vitest/runner/utils';
22
22
  import { n as noop$1, b as isPrimitive, c as groupBy, A as AggregateErrorPonyfill, a as slash$1, t as toArray, d as deepMerge, e as nanoid, w as wildcardPatternToRegExp, f as stdout } from './base.CTYV4Gnz.js';
23
23
  import { createDefer, toArray as toArray$1, notNullish } from '@vitest/utils';
@@ -1,4 +1,5 @@
1
1
  import { createRequire } from 'node:module';
2
+ import { pathToFileURL } from 'node:url';
2
3
 
3
4
  const __require = createRequire(import.meta.url);
4
5
  let inspector;
@@ -23,7 +24,7 @@ function setupInspect(ctx) {
23
24
  session.post("Debugger.enable");
24
25
  session.post("Debugger.setBreakpointByUrl", {
25
26
  lineNumber: 0,
26
- url: new URL(firstTestFile, import.meta.url).href
27
+ url: pathToFileURL(firstTestFile)
27
28
  });
28
29
  }
29
30
  }
package/dist/worker.js CHANGED
@@ -5,7 +5,7 @@ import { readFileSync } from 'node:fs';
5
5
  import { resolve, normalize } from 'pathe';
6
6
  import { e as environments } from './vendor/index.D4nqnQWz.js';
7
7
  import { i as isChildProcess, s as setProcessTitle } from './vendor/base.CTYV4Gnz.js';
8
- import { s as setupInspect } from './vendor/inspector.hPQncR7V.js';
8
+ import { s as setupInspect } from './vendor/inspector.-FCQUzqR.js';
9
9
  import { c as createRuntimeRpc, a as rpcDone } from './vendor/rpc.BGx7q_k2.js';
10
10
  import 'node:console';
11
11
  import '@vitest/utils';
@@ -1,6 +1,6 @@
1
1
  import v8 from 'node:v8';
2
2
  import { c as createForksRpcOptions, u as unwrapSerializableConfig } from '../vendor/utils.DkxLWvS1.js';
3
- import { r as runBaseTests } from '../vendor/base.pB8aBRcE.js';
3
+ import { r as runBaseTests } from '../vendor/base.CC6UHsNs.js';
4
4
  import '@vitest/utils';
5
5
  import 'vite-node/client';
6
6
  import '../vendor/global.7bFbnyXl.js';
@@ -9,7 +9,7 @@ import { a as startCoverageInsideWorker, s as stopCoverageInsideWorker } from '.
9
9
  import { g as getWorkerState } from '../vendor/global.7bFbnyXl.js';
10
10
  import { V as VitestIndex } from '../vendor/index.Hqvcg1pf.js';
11
11
  import { s as setupCommonEnv } from '../vendor/setup-common.yHaxjRhz.js';
12
- import { c as closeInspector } from '../vendor/inspector.hPQncR7V.js';
12
+ import { c as closeInspector } from '../vendor/inspector.-FCQUzqR.js';
13
13
  import 'chai';
14
14
  import 'pathe';
15
15
  import '../path.js';
@@ -1,4 +1,4 @@
1
- import { r as runBaseTests } from '../vendor/base.pB8aBRcE.js';
1
+ import { r as runBaseTests } from '../vendor/base.CC6UHsNs.js';
2
2
  import { a as createThreadsRpcOptions } from '../vendor/utils.DkxLWvS1.js';
3
3
  import 'vite-node/client';
4
4
  import '../vendor/global.7bFbnyXl.js';
package/dist/workers.js CHANGED
@@ -2,7 +2,7 @@ export { c as createForksRpcOptions, a as createThreadsRpcOptions, u as unwrapSe
2
2
  export { p as provideWorkerState } from './vendor/global.7bFbnyXl.js';
3
3
  export { collect as collectVitestWorkerTests, run as runVitestWorker } from './worker.js';
4
4
  export { r as runVmTests } from './vendor/vm.D1T5Rxan.js';
5
- export { r as runBaseTests } from './vendor/base.pB8aBRcE.js';
5
+ export { r as runBaseTests } from './vendor/base.CC6UHsNs.js';
6
6
  import '@vitest/utils';
7
7
  import 'node:url';
8
8
  import 'tinypool';
@@ -12,7 +12,7 @@ import 'pathe';
12
12
  import './vendor/index.D4nqnQWz.js';
13
13
  import 'node:console';
14
14
  import './vendor/base.CTYV4Gnz.js';
15
- import './vendor/inspector.hPQncR7V.js';
15
+ import './vendor/inspector.-FCQUzqR.js';
16
16
  import 'node:module';
17
17
  import './vendor/rpc.BGx7q_k2.js';
18
18
  import './vendor/index.BpSiYbpB.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
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",
120
120
  "happy-dom": "*",
121
121
  "jsdom": "*",
122
- "@vitest/ui": "2.0.2",
123
- "@vitest/browser": "2.0.2"
122
+ "@vitest/browser": "2.0.3",
123
+ "@vitest/ui": "2.0.3"
124
124
  },
125
125
  "peerDependenciesMeta": {
126
126
  "@edge-runtime/vm": {
@@ -155,17 +155,17 @@
155
155
  "tinyrainbow": "^1.2.0",
156
156
  "vite": "^5.0.0",
157
157
  "why-is-node-running": "^2.2.2",
158
- "@vitest/expect": "2.0.2",
159
- "@vitest/pretty-format": "^2.0.2",
160
- "@vitest/runner": "2.0.2",
161
- "@vitest/spy": "2.0.2",
162
- "@vitest/snapshot": "2.0.2",
163
- "@vitest/utils": "2.0.2",
164
- "vite-node": "2.0.2"
158
+ "@vitest/expect": "2.0.3",
159
+ "@vitest/pretty-format": "^2.0.3",
160
+ "@vitest/snapshot": "2.0.3",
161
+ "@vitest/runner": "2.0.3",
162
+ "@vitest/utils": "2.0.3",
163
+ "@vitest/spy": "2.0.3",
164
+ "vite-node": "2.0.3"
165
165
  },
166
166
  "devDependencies": {
167
167
  "@antfu/install-pkg": "0.3.1",
168
- "@edge-runtime/vm": "^3.2.0",
168
+ "@edge-runtime/vm": "^4.0.1",
169
169
  "@sinonjs/fake-timers": "11.1.0",
170
170
  "@types/debug": "^4.1.12",
171
171
  "@types/estree": "^1.0.5",