vitest 0.0.118 → 0.0.122

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,13 +1,13 @@
1
- import { g as globalApis } from './constants-56bfb5ab.js';
2
- import { i as index } from './index-be3cc31e.js';
1
+ import { g as globalApis } from './constants-22bbd600.js';
2
+ import { i as index } from './index-3cd686b2.js';
3
3
  import 'url';
4
- import './index-80671389.js';
4
+ import './index-090545ef.js';
5
5
  import 'tty';
6
6
  import 'local-pkg';
7
7
  import 'path';
8
- import './vi-85b65e90.js';
8
+ import './vi-c99184a5.js';
9
9
  import './_commonjsHelpers-c9e3b764.js';
10
- import './jest-mock-4a754991.js';
10
+ import './jest-mock-038a01b3.js';
11
11
  import 'chai';
12
12
  import 'tinyspy';
13
13
 
@@ -365,4 +365,4 @@ function toFilePath(id, root) {
365
365
  return isWindows && absolute.startsWith("/") ? fileURLToPath(pathToFileURL(absolute.slice(1)).href) : absolute;
366
366
  }
367
367
 
368
- export { isAbsolute as a, basename as b, c, dirname as d, ensurePackageInstalled as e, getSuites as f, getFullName as g, hasFailed as h, isObject as i, getTests as j, resolve as k, deepMerge as l, toFilePath as m, noop as n, notNullish as o, mergeSlashes as p, index as q, relative as r, slash as s, toArray as t, getNames as u, partitionSuiteChildren as v, hasTests as w, isWindows as x, getTasks as y };
368
+ export { isAbsolute as a, basename as b, c, dirname as d, ensurePackageInstalled as e, getSuites as f, getFullName as g, hasFailed as h, isObject as i, getTests as j, resolve as k, deepMerge as l, toFilePath as m, noop as n, notNullish as o, mergeSlashes as p, join as q, relative as r, slash as s, toArray as t, index as u, getNames as v, partitionSuiteChildren as w, hasTests as x, isWindows as y, getTasks as z };
@@ -1,4 +1,4 @@
1
- import { c, s as slash$1, a as isAbsolute, r as relative, d as dirname, b as basename, g as getFullName, h as hasFailed, f as getSuites, j as getTests, t as toArray, k as resolve, l as deepMerge, m as toFilePath, n as noop$1 } from './index-80671389.js';
1
+ import { c, s as slash$1, a as isAbsolute, r as relative, d as dirname, b as basename, g as getFullName, h as hasFailed, f as getSuites, j as getTests, t as toArray, k as resolve, l as deepMerge, m as toFilePath, n as noop$1 } from './index-090545ef.js';
2
2
  import { createServer, mergeConfig } from 'vite';
3
3
  import path$a from 'path';
4
4
  import process$1 from 'process';
@@ -7,10 +7,10 @@ import require$$0 from 'os';
7
7
  import require$$0$1 from 'util';
8
8
  import require$$0$2 from 'stream';
9
9
  import require$$2 from 'events';
10
- import { d as defaultInclude, a as defaultExclude, b as defaultPort, c as distDir, e as configFiles } from './constants-56bfb5ab.js';
10
+ import { d as defaultInclude, a as defaultExclude, b as defaultPort, c as distDir, e as configFiles } from './constants-22bbd600.js';
11
11
  import MagicString from './magic-string.es-94000aea.js';
12
12
  import { performance } from 'perf_hooks';
13
- import { F as F_POINTER, a as F_DOWN, s as stripAnsi, b as F_LONG_DASH, c as F_DOWN_RIGHT, d as F_DOT, e as F_CHECK, f as F_CROSS, g as F_RIGHT, p as printError, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as cliTruncate } from './diff-d87307c6.js';
13
+ import { F as F_POINTER, a as F_DOWN, s as stripAnsi, b as F_LONG_DASH, c as F_DOWN_RIGHT, d as F_DOT, e as F_CHECK, f as F_CROSS, g as F_RIGHT, p as printError, h as stringWidth, i as ansiStyles, j as sliceAnsi, k as cliTruncate } from './diff-a295cb37.js';
14
14
  import { o as onetime, s as signalExit } from './index-648e7ab2.js';
15
15
  import { createRequire } from 'module';
16
16
  import { pathToFileURL } from 'url';
@@ -6847,7 +6847,7 @@ const MocksPlugin = () => {
6847
6847
  };
6848
6848
  };
6849
6849
 
6850
- const spinnerMap = /* @__PURE__ */ new WeakMap();
6850
+ const spinnerMap = new WeakMap();
6851
6851
  const pointer = c.yellow(F_POINTER);
6852
6852
  const skipped = c.dim(c.gray(F_DOWN));
6853
6853
  function getCols(delta = 0) {
@@ -7598,7 +7598,7 @@ createLogUpdate(process$1.stderr);
7598
7598
 
7599
7599
  const DURATION_LONG = 300;
7600
7600
  const MAX_HEIGHT = 20;
7601
- const outputMap = /* @__PURE__ */ new WeakMap();
7601
+ const outputMap = new WeakMap();
7602
7602
  function formatFilepath(path) {
7603
7603
  const lastSlash = Math.max(path.lastIndexOf("/") + 1, 0);
7604
7604
  const basename = path.slice(lastSlash);
@@ -7873,7 +7873,7 @@ function resolveC8Options(options, root) {
7873
7873
  }
7874
7874
  async function cleanCoverage(options, clean = true) {
7875
7875
  if (clean && existsSync(options.reportsDirectory))
7876
- await promises.rmdir(options.reportsDirectory, { recursive: true });
7876
+ await promises.rm(options.reportsDirectory, { recursive: true, force: true });
7877
7877
  if (!existsSync(options.tempDirectory))
7878
7878
  await promises.mkdir(options.tempDirectory, { recursive: true });
7879
7879
  }
@@ -7881,13 +7881,11 @@ const require2 = createRequire(import.meta.url);
7881
7881
  async function reportCoverage(ctx) {
7882
7882
  const createReport = require2("c8/lib/report");
7883
7883
  const report = createReport(ctx.config.coverage);
7884
- await report.getCoverageMapFromAllCoverageFiles();
7885
7884
  Array.from(ctx.visitedFilesMap.entries()).filter((i) => !i[0].includes("/node_modules/")).forEach(([file, map]) => {
7886
7885
  const url = pathToFileURL(file).href;
7886
+ const sources = map.sources.length ? map.sources.map((i) => pathToFileURL(i).href) : [url];
7887
7887
  report.sourceMapCache[url] = {
7888
- data: __spreadProps$1(__spreadValues$1({}, map), {
7889
- sources: map.sources.map((i) => pathToFileURL(i).href) || [url]
7890
- })
7888
+ data: __spreadProps$1(__spreadValues$1({}, map), { sources })
7891
7889
  };
7892
7890
  });
7893
7891
  await report.run();
@@ -7895,9 +7893,9 @@ async function reportCoverage(ctx) {
7895
7893
 
7896
7894
  class StateManager {
7897
7895
  constructor() {
7898
- this.filesMap = /* @__PURE__ */ new Map();
7899
- this.idMap = /* @__PURE__ */ new Map();
7900
- this.taskFileMap = /* @__PURE__ */ new WeakMap();
7896
+ this.filesMap = new Map();
7897
+ this.idMap = new Map();
7898
+ this.taskFileMap = new WeakMap();
7901
7899
  }
7902
7900
  getFiles(keys) {
7903
7901
  if (keys)
@@ -7982,10 +7980,12 @@ function resolveConfig(options, viteConfig) {
7982
7980
  resolved.setupFiles = Array.from(resolved.setupFiles || []).map((i) => resolve(resolved.root, i));
7983
7981
  if (resolved.api === true)
7984
7982
  resolved.api = defaultPort;
7983
+ if (options.findRelatedTests)
7984
+ resolved.findRelatedTests = toArray(options.findRelatedTests).map((file) => resolve(resolved.root, file));
7985
7985
  return resolved;
7986
7986
  }
7987
7987
 
7988
- const promiseMap = /* @__PURE__ */ new Map();
7988
+ const promiseMap = new Map();
7989
7989
  async function transformRequest(ctx, id) {
7990
7990
  if (!promiseMap.has(id)) {
7991
7991
  promiseMap.set(id, _transformRequest(ctx, id).then((r) => {
@@ -8004,10 +8004,24 @@ async function _transformRequest(ctx, id) {
8004
8004
  if (result)
8005
8005
  result = await ctx.server.ssrTransform(result.code, result.map, id);
8006
8006
  }
8007
+ if (result)
8008
+ withInlineSourcemap(result);
8007
8009
  if ((result == null ? void 0 : result.map) && process.env.NODE_V8_COVERAGE)
8008
8010
  ctx.visitedFilesMap.set(toFilePath(id, ctx.config.root), result.map);
8009
8011
  return result;
8010
8012
  }
8013
+ let SOURCEMAPPING_URL = "sourceMa";
8014
+ SOURCEMAPPING_URL += "ppingURL";
8015
+ async function withInlineSourcemap(result) {
8016
+ const { code, map } = result;
8017
+ if (code.includes(`${SOURCEMAPPING_URL}=`))
8018
+ return result;
8019
+ if (map)
8020
+ result.code = `${code}
8021
+
8022
+ //# ${SOURCEMAPPING_URL}=data:application/json;charset=utf-8;base64,${Buffer.from(JSON.stringify(map), "utf-8").toString("base64")}`;
8023
+ return result;
8024
+ }
8011
8025
 
8012
8026
  function createPool(ctx) {
8013
8027
  if (ctx.config.threads)
@@ -8133,9 +8147,9 @@ class Vitest {
8133
8147
  this.reporters = void 0;
8134
8148
  this.outputStream = process.stdout;
8135
8149
  this.errorStream = process.stderr;
8136
- this.invalidates = /* @__PURE__ */ new Set();
8137
- this.changedTests = /* @__PURE__ */ new Set();
8138
- this.visitedFilesMap = /* @__PURE__ */ new Map();
8150
+ this.invalidates = new Set();
8151
+ this.changedTests = new Set();
8152
+ this.visitedFilesMap = new Map();
8139
8153
  this.isFirstRun = true;
8140
8154
  this.restartsCount = 0;
8141
8155
  this._onRestartListeners = [];
@@ -8289,8 +8303,17 @@ class Vitest {
8289
8303
  }
8290
8304
  async close() {
8291
8305
  var _a;
8292
- await ((_a = this.pool) == null ? void 0 : _a.close());
8293
- await this.server.close();
8306
+ if (!this.closingPromise) {
8307
+ this.closingPromise = Promise.allSettled([
8308
+ (_a = this.pool) == null ? void 0 : _a.close(),
8309
+ this.server.close()
8310
+ ].filter(Boolean)).then((results) => {
8311
+ results.filter((r) => r.status === "rejected").forEach((err) => {
8312
+ this.error("error during close", err.reason);
8313
+ });
8314
+ });
8315
+ }
8316
+ return this.closingPromise;
8294
8317
  }
8295
8318
  async report(name, ...args) {
8296
8319
  await Promise.all(this.reporters.map((r) => {
@@ -8336,7 +8359,7 @@ async function createVitest(options, viteOverrides = {}) {
8336
8359
  await ctx.setServer(options, server2);
8337
8360
  haveStarted = true;
8338
8361
  if (options.api)
8339
- (await import('./setup-b87afd31.js')).setup(ctx);
8362
+ (await import('./setup-c9c7cb5b.js')).setup(ctx);
8340
8363
  }
8341
8364
  },
8342
8365
  MocksPlugin()
@@ -1,6 +1,6 @@
1
- import { g as getCurrentSuite, w as withTimeout, a as getDefaultHookTimeout, b as getState, s as setState, c as suite, t as test, d as describe, i as it, v as vitest, e as vi } from './vi-85b65e90.js';
1
+ import { g as getCurrentSuite, w as withTimeout, a as getDefaultHookTimeout, b as getState, s as setState, c as suite, t as test, d as describe, i as it, v as vitest, e as vi } from './vi-c99184a5.js';
2
2
  import chai, { assert, should } from 'chai';
3
- import { s as spies, a as spyOn, f as fn } from './jest-mock-4a754991.js';
3
+ import { s as spies, a as spyOn, f as fn } from './jest-mock-038a01b3.js';
4
4
 
5
5
  const beforeAll = (fn, timeout) => getCurrentSuite().on("beforeAll", withTimeout(fn, timeout ?? getDefaultHookTimeout()));
6
6
  const afterAll = (fn, timeout) => getCurrentSuite().on("afterAll", withTimeout(fn, timeout ?? getDefaultHookTimeout()));
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { OptionsReceived, Plugin } from 'pretty-format';
1
2
  import { Formatter } from 'picocolors/types';
2
3
  import { ViteDevServer } from 'vite';
3
4
  import { RawSourceMap } from 'source-map-js';
4
- import { OptionsReceived } from 'pretty-format';
5
5
  import { MessagePort } from 'worker_threads';
6
+ import { SpyImpl } from 'tinyspy';
6
7
  export { Spy, SpyFn } from 'tinyspy';
7
8
  export { assert, default as chai, should } from 'chai';
8
9
 
@@ -85,9 +86,9 @@ declare type MatcherState = {
85
86
  equals: (a: unknown, b: unknown, customTesters?: Array<Tester>, strictCheck?: boolean) => boolean;
86
87
  expand?: boolean;
87
88
  expectedAssertionsNumber?: number | null;
88
- expectedAssertionsNumberError?: Error;
89
+ expectedAssertionsNumberError?: Error | null;
89
90
  isExpectingAssertions?: boolean;
90
- isExpectingAssertionsError?: Error;
91
+ isExpectingAssertionsError?: Error | null;
91
92
  isNot: boolean;
92
93
  promise: string;
93
94
  suppressedErrors: Array<Error>;
@@ -204,6 +205,7 @@ declare class Vitest {
204
205
  changedTests: Set<string>;
205
206
  visitedFilesMap: Map<string, RawSourceMap>;
206
207
  runningPromise?: Promise<void>;
208
+ closingPromise?: Promise<void>;
207
209
  isFirstRun: boolean;
208
210
  restartsCount: number;
209
211
  private _onRestartListeners;
@@ -676,11 +678,16 @@ interface UserConfig extends InlineConfig {
676
678
  * Pass with no tests
677
679
  */
678
680
  passWithNoTests?: boolean;
681
+ /**
682
+ * Run tests that cover a list of source files
683
+ */
684
+ findRelatedTests?: string[] | string;
679
685
  }
680
- interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'coverage' | 'testNamePattern'> {
686
+ interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'coverage' | 'testNamePattern' | 'findRelatedTests'> {
681
687
  config?: string;
682
688
  filters?: string[];
683
689
  testNamePattern?: RegExp;
690
+ findRelatedTests?: string[];
684
691
  depsInline: (string | RegExp)[];
685
692
  depsExternal: (string | RegExp)[];
686
693
  coverage: ResolvedC8Options;
@@ -781,6 +788,7 @@ declare type MockedObjectDeep<T> = MaybeMockedConstructor<T> & {
781
788
  };
782
789
  declare type MaybeMockedDeep<T> = T extends MockableFunction ? MockedFunctionDeep<T> : T extends object ? MockedObjectDeep<T> : T;
783
790
  declare type MaybeMocked<T> = T extends MockableFunction ? MockedFunction<T> : T extends object ? MockedObject<T> : T;
791
+ declare type EnhancedSpy<TArgs extends any[] = any[], TReturns = any> = JestMockCompat<TArgs, TReturns> & SpyImpl<TArgs, TReturns>;
784
792
  interface MockWithArgs<T extends MockableFunction> extends JestMockCompatFn<ArgumentsOf<T>, ReturnType<T>> {
785
793
  new (...args: ConstructorArgumentsOf<T>): T;
786
794
  (...args: ArgumentsOf<T>): ReturnType<T>;
@@ -890,23 +898,29 @@ declare module 'vite' {
890
898
  test?: VitestInlineConfig;
891
899
  }
892
900
  }
901
+ interface AsymmetricMatchersContaining {
902
+ stringContaining(expected: string): void;
903
+ objectContaining(expected: any): ObjectContaining;
904
+ arrayContaining(expected: unknown[]): ArrayContaining;
905
+ stringMatching(expected: string | RegExp): StringMatching;
906
+ }
893
907
  declare global {
894
908
  namespace Chai {
895
- interface ExpectStatic {
909
+ interface ExpectStatic extends AsymmetricMatchersContaining {
896
910
  extend(expects: MatchersObject): void;
897
- stringContaining(expected: string): void;
911
+ assertions(expected: number): void;
912
+ hasAssertions(): void;
898
913
  anything(): Anything;
899
- objectContaining(expected: any): ObjectContaining;
900
914
  any(constructor: unknown): Any;
901
- arrayContaining(expected: any): ArrayContaining;
902
- stringMatching(expected: RegExp): StringMatching;
903
- assertions(expected: number): void;
915
+ addSnapshotSerializer(plugin: Plugin): void;
916
+ not: AsymmetricMatchersContaining;
904
917
  }
905
- interface Assertion {
906
- chaiEqual(expected: any): void;
907
- toMatchSnapshot(message?: string): Assertion;
908
- toMatchInlineSnapshot(snapshot?: string, message?: string): Assertion;
909
- matchSnapshot(message?: string): Assertion;
918
+ interface JestAssertions {
919
+ toMatchSnapshot(message?: string): void;
920
+ toMatchInlineSnapshot(snapshot?: string, message?: string): void;
921
+ toThrowErrorMatchingSnapshot(message?: string): void;
922
+ toThrowErrorMatchingInlineSnapshot(snapshot?: string, message?: string): void;
923
+ matchSnapshot(message?: string): void;
910
924
  toEqual(expected: any): void;
911
925
  toStrictEqual(expected: any): void;
912
926
  toBe(expected: any): void;
@@ -952,7 +966,15 @@ declare global {
952
966
  toHaveNthReturnedWith(nthCall: number, value: any): void;
953
967
  nthReturnedWith(nthCall: number, value: any): void;
954
968
  }
969
+ type Promisify<O> = {
970
+ [K in keyof O]: O[K] extends (...args: infer A) => infer R ? O extends R ? Promisify<O[K]> : (...args: A) => Promise<R> : O[K];
971
+ };
972
+ interface Assertion extends JestAssertions {
973
+ resolves: Promisify<Assertion>;
974
+ rejects: Promisify<Assertion>;
975
+ chaiEqual(expected: any): void;
976
+ }
955
977
  }
956
978
  }
957
979
 
958
- export { ArgumentsOf, ArgumentsType, Arrayable, Awaitable, BuiltinEnvironment, ComputeMode, ConstructorArgumentsOf, DoneCallback, Environment, EnvironmentReturn, File, HookListener, InlineConfig, JestMockCompat, JestMockCompatContext, JestMockCompatFn, MaybeMocked, MaybeMockedConstructor, MaybeMockedDeep, MethodKeysOf, MockWithArgs, MockableFunction, MockedFunction, MockedFunctionDeep, MockedObject, MockedObjectDeep, ModuleCache, Nullable, ParsedStack, Position, PropertyKeysOf, Reporter, ResolvedConfig, RunMode, RuntimeContext, SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, Suite, SuiteCollector, SuiteHooks, Task, TaskBase, TaskResult, TaskResultPack, TaskState, Test, TestCollector, TestFactory, TestFunction, UncheckedSnapshot, UserConfig, UserConsoleLog, WebSocketEvents, WebSocketHandlers, WorkerContext, WorkerRPC, afterAll, afterEach, beforeAll, beforeEach, describe, expect, fn, it, spies, spyOn, suite, test, vi, vitest };
980
+ export { ArgumentsOf, ArgumentsType, Arrayable, Awaitable, BuiltinEnvironment, ComputeMode, ConstructorArgumentsOf, DoneCallback, EnhancedSpy, Environment, EnvironmentReturn, File, HookListener, InlineConfig, JestMockCompat, JestMockCompatContext, JestMockCompatFn, MaybeMocked, MaybeMockedConstructor, MaybeMockedDeep, MethodKeysOf, MockWithArgs, MockableFunction, MockedFunction, MockedFunctionDeep, MockedObject, MockedObjectDeep, ModuleCache, Nullable, ParsedStack, Position, PropertyKeysOf, Reporter, ResolvedConfig, RunMode, RuntimeContext, SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, Suite, SuiteCollector, SuiteHooks, Task, TaskBase, TaskResult, TaskResultPack, TaskState, Test, TestCollector, TestFactory, TestFunction, UncheckedSnapshot, UserConfig, UserConsoleLog, WebSocketEvents, WebSocketHandlers, WorkerContext, WorkerRPC, afterAll, afterEach, beforeAll, beforeEach, describe, expect, fn, it, spies, spyOn, suite, test, vi, vitest };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './vi-85b65e90.js';
2
- export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './index-be3cc31e.js';
3
- export { f as fn, s as spies, a as spyOn } from './jest-mock-4a754991.js';
1
+ export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './vi-c99184a5.js';
2
+ export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './index-3cd686b2.js';
3
+ export { f as fn, s as spies, a as spyOn } from './jest-mock-038a01b3.js';
4
4
  export { assert, default as chai, should } from 'chai';
5
- import './index-80671389.js';
5
+ import './index-090545ef.js';
6
6
  import 'url';
7
7
  import 'tty';
8
8
  import 'local-pkg';
@@ -1,7 +1,7 @@
1
1
  import { util } from 'chai';
2
2
  import * as tinyspy from 'tinyspy';
3
3
 
4
- const spies = /* @__PURE__ */ new Set();
4
+ const spies = new Set();
5
5
  function spyOn(obj, method, accessType) {
6
6
  const dictionary = {
7
7
  get: "getter",
package/dist/node.d.ts CHANGED
@@ -386,11 +386,16 @@ interface UserConfig extends InlineConfig {
386
386
  * Pass with no tests
387
387
  */
388
388
  passWithNoTests?: boolean;
389
+ /**
390
+ * Run tests that cover a list of source files
391
+ */
392
+ findRelatedTests?: string[] | string;
389
393
  }
390
- interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'coverage' | 'testNamePattern'> {
394
+ interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'coverage' | 'testNamePattern' | 'findRelatedTests'> {
391
395
  config?: string;
392
396
  filters?: string[];
393
397
  testNamePattern?: RegExp;
398
+ findRelatedTests?: string[];
394
399
  depsInline: (string | RegExp)[];
395
400
  depsExternal: (string | RegExp)[];
396
401
  coverage: ResolvedC8Options;
@@ -440,6 +445,7 @@ declare class Vitest {
440
445
  changedTests: Set<string>;
441
446
  visitedFilesMap: Map<string, RawSourceMap>;
442
447
  runningPromise?: Promise<void>;
448
+ closingPromise?: Promise<void>;
443
449
  isFirstRun: boolean;
444
450
  restartsCount: number;
445
451
  private _onRestartListeners;
package/dist/node.js CHANGED
@@ -1,5 +1,5 @@
1
- export { c as createVitest } from './index-62869b66.js';
2
- import './index-80671389.js';
1
+ export { c as createVitest } from './index-123a18df.js';
2
+ import './index-090545ef.js';
3
3
  import 'url';
4
4
  import 'tty';
5
5
  import 'local-pkg';
@@ -11,10 +11,10 @@ import 'os';
11
11
  import 'util';
12
12
  import 'stream';
13
13
  import 'events';
14
- import './constants-56bfb5ab.js';
14
+ import './constants-22bbd600.js';
15
15
  import './magic-string.es-94000aea.js';
16
16
  import 'perf_hooks';
17
- import './diff-d87307c6.js';
17
+ import './diff-a295cb37.js';
18
18
  import './index-648e7ab2.js';
19
19
  import './_commonjsHelpers-c9e3b764.js';
20
20
  import 'assert';
@@ -9,8 +9,8 @@ import require$$2 from 'events';
9
9
  import require$$1 from 'https';
10
10
  import require$$2$1 from 'http';
11
11
  import require$$7 from 'url';
12
- import { A as API_PATH } from './constants-56bfb5ab.js';
13
- import './index-80671389.js';
12
+ import { A as API_PATH } from './constants-22bbd600.js';
13
+ import './index-090545ef.js';
14
14
  import 'tty';
15
15
  import 'local-pkg';
16
16
  import 'path';
@@ -4248,7 +4248,7 @@ function abortHandshake(socket, code, message, headers) {
4248
4248
  function setup(ctx) {
4249
4249
  var _a;
4250
4250
  const wss = new websocketServer({ noServer: true });
4251
- const clients = /* @__PURE__ */ new Map();
4251
+ const clients = new Map();
4252
4252
  (_a = ctx.server.httpServer) == null ? void 0 : _a.on("upgrade", (request, socket, head) => {
4253
4253
  if (!request.url)
4254
4254
  return;
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- export { l as deepMerge, e as ensurePackageInstalled, g as getFullName, u as getNames, f as getSuites, y as getTasks, j as getTests, h as hasFailed, w as hasTests, i as isObject, x as isWindows, p as mergeSlashes, n as noop, o as notNullish, v as partitionSuiteChildren, k as resolvePath, s as slash, t as toArray, m as toFilePath } from './index-80671389.js';
1
+ export { l as deepMerge, e as ensurePackageInstalled, g as getFullName, v as getNames, f as getSuites, z as getTasks, j as getTests, h as hasFailed, x as hasTests, i as isObject, y as isWindows, p as mergeSlashes, n as noop, o as notNullish, w as partitionSuiteChildren, k as resolvePath, s as slash, t as toArray, m as toFilePath } from './index-090545ef.js';
2
2
  import 'url';
3
3
  import 'tty';
4
4
  import 'local-pkg';