vitest 0.9.0 → 0.9.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.
@@ -1,8 +1,8 @@
1
- import { n as normalizeRequestId, i as isNodeBuiltin, t as toFilePath, V as ViteNodeRunner } from './chunk-vite-node-utils.5fa30ee7.js';
1
+ import { n as normalizeRequestId, i as isNodeBuiltin, t as toFilePath, V as ViteNodeRunner } from './chunk-vite-node-utils.3400d522.js';
2
2
  import { normalizePath } from 'vite';
3
- import { g as getWorkerState, B as isWindows, C as mergeSlashes, k as dirname, h as basename, w as resolve } from './chunk-utils-global.35d3b35d.js';
3
+ import { g as getWorkerState, B as isWindows, C as mergeSlashes, k as dirname, h as basename, w as resolve, s as slash } from './chunk-utils-global.46331799.js';
4
4
  import { existsSync, readdirSync } from 'fs';
5
- import { d as distDir } from './chunk-constants.596ee4d5.js';
5
+ import { d as distDir } from './chunk-constants.a6ce1057.js';
6
6
 
7
7
  var __defProp = Object.defineProperty;
8
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -30,7 +30,9 @@ function getAllProperties(obj) {
30
30
  if (curr === Object.prototype || curr === Function.prototype || curr === RegExp.prototype)
31
31
  break;
32
32
  const props = Object.getOwnPropertyNames(curr);
33
+ const symbs = Object.getOwnPropertySymbols(curr);
33
34
  props.forEach((prop) => allProps.add(prop));
35
+ symbs.forEach((symb) => allProps.add(symb));
34
36
  } while (curr = Object.getPrototypeOf(curr));
35
37
  return Array.from(allProps);
36
38
  }
@@ -184,7 +186,7 @@ const _VitestMocker = class {
184
186
  async ensureSpy() {
185
187
  if (_VitestMocker.spyModule)
186
188
  return;
187
- _VitestMocker.spyModule = await this.request(resolve(distDir, "spy.js"));
189
+ _VitestMocker.spyModule = await this.request(`/@fs/${slash(resolve(distDir, "spy.js"))}`);
188
190
  }
189
191
  async requestWithMock(dep) {
190
192
  var _a;
@@ -1,4 +1,4 @@
1
- import { g as getWorkerState } from './chunk-utils-global.35d3b35d.js';
1
+ import { g as getWorkerState } from './chunk-utils-global.46331799.js';
2
2
 
3
3
  const rpc = () => {
4
4
  return getWorkerState().rpc;
@@ -377,7 +377,7 @@ async function ensurePackageInstalled(dependency, promptInstall = !process.env.C
377
377
  `));
378
378
  if (!promptInstall)
379
379
  return false;
380
- const prompts = await import('./vendor-index.ee829ed6.js').then(function (n) { return n.i; });
380
+ const prompts = await import('./vendor-index.13468339.js').then(function (n) { return n.i; });
381
381
  const { install } = await prompts.prompt({
382
382
  type: "confirm",
383
383
  name: "install",
@@ -422,4 +422,4 @@ function getCallLastIndex(code) {
422
422
  return null;
423
423
  }
424
424
 
425
- export { extname as A, isWindows as B, mergeSlashes as C, partitionSuiteChildren as D, hasTests as E, index as a, getCallLastIndex as b, getNames as c, c as d, assertTypes as e, notNullish as f, getWorkerState as g, basename as h, isObject as i, join as j, dirname as k, isAbsolute as l, relative as m, noop as n, getTests as o, getFullName as p, hasFailed as q, resetModules as r, slash as s, toArray as t, hasFailedSnapshot as u, getSuites as v, resolve as w, deepMerge as x, toNamespacedPath as y, ensurePackageInstalled as z };
425
+ export { extname as A, isWindows as B, mergeSlashes as C, partitionSuiteChildren as D, hasTests as E, index as a, getCallLastIndex as b, getNames as c, assertTypes as d, c as e, notNullish as f, getWorkerState as g, basename as h, isObject as i, join as j, dirname as k, isAbsolute as l, relative as m, noop as n, getTests as o, getFullName as p, hasFailed as q, resetModules as r, slash as s, toArray as t, hasFailedSnapshot as u, getSuites as v, resolve as w, deepMerge as x, toNamespacedPath as y, ensurePackageInstalled as z };