{"version":3,"sources":["jsdelivr-header.js","/npm/jest-runner@30.2.0/build/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;GCES,MACC,aACA,IAAI,EAAsB,CAE9B,mBACA,CAAE,EAAyB,KAQjC,SAAS,IACP,MAAM,EAAO,QAAQ,WAIrB,OAHA,EAAU,WACR,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,EAAuB,QAAQ,UAI5C,OAHA,EAAS,WACP,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,EAAwB,QAAQ,gBAI7C,OAHA,EAAK,WACH,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,EAAwB,QAAQ,uBAI7C,OAHA,EAAmB,WACjB,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,QAAQ,iBAIrB,OAHA,EAAW,WACT,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,QAAQ,mBAIrB,OAHA,EAAa,WACX,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,EAAwB,QAAQ,kBAI7C,OAHA,EAAW,WACT,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,EAAuB,QAAQ,uBAI5C,OAHA,EAAoB,WAClB,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,QAAQ,qBAIrB,OAHA,EAAmB,WACjB,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,QAAQ,gBAIrB,OAHA,EAAe,WACb,OAAO,CACT,EACO,CACT,CACA,SAAS,IACP,MAAM,EAAO,QAAQ,aAIrB,OAHA,EAAY,WACV,OAAO,CACT,EACO,CACT,CACA,SAAS,EAAwB,EAAG,GAAK,GAAI,mBAAqB,QAAS,IAAI,EAAI,IAAI,QAAW,EAAI,IAAI,QAAW,OAAQ,EAA0B,SAAU,EAAG,GAAK,IAAK,GAAK,GA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AAc,KAAK,kBAAmB,CAAC,IAClD,MAAM,EAAU,EAAO,OAAO,CAC5B,OAAQ,EAAK,QAAQ,OACrB,QAAS,IACJ,KAAK,SACR,aAAc,KAAK,SAAS,cAAgB,IAAI,KAAK,SAAS,cAC9D,oCAAqC,KAAK,SAAS,qCAAuC,IAAI,KAAK,SAAS,sCAE9G,aAAc,KAAK,cACnB,KAAM,EAAK,OAMb,OAJI,EAAQ,0BAEV,EAAQ,0BAAyB,EAAE,EAAO,KAAa,MAAK,EAAc,KAAK,EAAO,KAEjF,CAAO,IAEV,EAAc,IAAI,SAAQ,CAAC,EAAU,KACzC,EAAQ,GAAG,UAAU,IACf,EAAM,aACR,EAAO,IAAI,EACb,GACA,IAEE,EAAc,QAAQ,IAAI,EAAM,KAAI,GAAQ,EAAgB,GAAM,MAAK,GAAU,MAAK,EAAc,KAAK,oBAAqB,CAAC,EAAM,MAAU,GAAS,MAAK,EAAc,KAAK,oBAAqB,CAAC,EAAM,SAC5M,EAAU,UACd,MAAM,YACJ,SACQ,EAAO,MACb,GACF,QAAQ,MAAM,IAAS,QAAQ,OAAO,8QACxC,EAEF,OAAO,QAAQ,KAAK,CAAC,EAAa,IAAc,KAAK,EAAS,EAChE,CACA,EAAA,CAAG,EAAW,GACZ,OAAO,MAAK,EAAc,GAAG,EAAW,EAC1C,CACA,GAAqB,MAAO,EAAW,WAC/B,MAAK,EAAc,KAAK,GAE9B,EAAI,IAAY,gBAAgB,EAAM,CACpC,eAAe,IACd,EAGP,EAAiB,QAAI,EACrB,MAAM,UAAkB,MACtB,WAAA,CAAY,GACV,MAAM,GACN,KAAK,KAAO,WACd,EAED,EA3KD,GA6KA,OAAO,QAAU,CACP,EA1kBD","file":"/npm/jest-runner@30.2.0/build/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/jest-runner@30.2.0/build/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*!\n * /**\n *  * Copyright (c) Meta Platforms, Inc. and affiliates.\n *  *\n *  * This source code is licensed under the MIT license found in the\n *  * LICENSE file in the root directory of this source tree.\n *  * /\n */\n/******/ (() => { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ \"./src/runTest.ts\":\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = runTest;\nfunction _nodeVm() {\n  const data = require(\"node:vm\");\n  _nodeVm = function () {\n    return data;\n  };\n  return data;\n}\nfunction _chalk() {\n  const data = _interopRequireDefault(require(\"chalk\"));\n  _chalk = function () {\n    return data;\n  };\n  return data;\n}\nfunction fs() {\n  const data = _interopRequireWildcard(require(\"graceful-fs\"));\n  fs = function () {\n    return data;\n  };\n  return data;\n}\nfunction sourcemapSupport() {\n  const data = _interopRequireWildcard(require(\"source-map-support\"));\n  sourcemapSupport = function () {\n    return data;\n  };\n  return data;\n}\nfunction _console() {\n  const data = require(\"@jest/console\");\n  _console = function () {\n    return data;\n  };\n  return data;\n}\nfunction _transform() {\n  const data = require(\"@jest/transform\");\n  _transform = function () {\n    return data;\n  };\n  return data;\n}\nfunction docblock() {\n  const data = _interopRequireWildcard(require(\"jest-docblock\"));\n  docblock = function () {\n    return data;\n  };\n  return data;\n}\nfunction _jestLeakDetector() {\n  const data = _interopRequireDefault(require(\"jest-leak-detector\"));\n  _jestLeakDetector = function () {\n    return data;\n  };\n  return data;\n}\nfunction _jestMessageUtil() {\n  const data = require(\"jest-message-util\");\n  _jestMessageUtil = function () {\n    return data;\n  };\n  return data;\n}\nfunction _jestResolve() {\n  const data = require(\"jest-resolve\");\n  _jestResolve = function () {\n    return data;\n  };\n  return data;\n}\nfunction _jestUtil() {\n  const data = require(\"jest-util\");\n  _jestUtil = function () {\n    return data;\n  };\n  return data;\n}\nfunction _interopRequireWildcard(e, t) { if (\"function\" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) \"default\" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\n\nfunction freezeConsole(testConsole, config) {\n  // @ts-expect-error: `_log` is `private` - we should figure out some proper API here\n  testConsole._log = function fakeConsolePush(_type, message) {\n    const error = new (_jestUtil().ErrorWithStack)(`${_chalk().default.red(`${_chalk().default.bold('Cannot log after tests are done.')} Did you forget to wait for something async in your test?`)}\\nAttempted to log \"${message}\".`, fakeConsolePush);\n    const formattedError = (0, _jestMessageUtil().formatExecError)(error, config, {\n      noStackTrace: false\n    }, undefined, true);\n    process.stderr.write(`\\n${formattedError}\\n`);\n    process.exitCode = 1;\n  };\n}\n\n// Keeping the core of \"runTest\" as a separate function (as \"runTestInternal\")\n// is key to be able to detect memory leaks. Since all variables are local to\n// the function, when \"runTestInternal\" finishes its execution, they can all be\n// freed, UNLESS something else is leaking them (and that's why we can detect\n// the leak!).\n//\n// If we had all the code in a single function, we should manually nullify all\n// references to verify if there is a leak, which is not maintainable and error\n// prone. That's why \"runTestInternal\" CANNOT be inlined inside \"runTest\".\nasync function runTestInternal(path, globalConfig, projectConfig, resolver, context, sendMessageToJest) {\n  const testSource = fs().readFileSync(path, 'utf8');\n  const docblockPragmas = docblock().parse(docblock().extract(testSource));\n  const customEnvironment = docblockPragmas['jest-environment'];\n  const loadTestEnvironmentStart = Date.now();\n  let testEnvironment = projectConfig.testEnvironment;\n  if (customEnvironment) {\n    if (Array.isArray(customEnvironment)) {\n      throw new TypeError(`You can only define a single test environment through docblocks, got \"${customEnvironment.join(', ')}\"`);\n    }\n    testEnvironment = (0, _jestResolve().resolveTestEnvironment)({\n      ...projectConfig,\n      // we wanna avoid webpack trying to be clever\n      requireResolveFunction: module => require.resolve(module),\n      testEnvironment: customEnvironment\n    });\n  }\n  const cacheFS = new Map([[path, testSource]]);\n  const transformer = await (0, _transform().createScriptTransformer)(projectConfig, cacheFS);\n  const TestEnvironment = await transformer.requireAndTranspileModule(testEnvironment);\n  const testFramework = await transformer.requireAndTranspileModule(process.env.JEST_JASMINE === '1' ? require.resolve('jest-jasmine2') : projectConfig.testRunner);\n  const Runtime = (0, _jestUtil().interopRequireDefault)(projectConfig.runtime ? require(projectConfig.runtime) : require('jest-runtime')).default;\n  const consoleOut = globalConfig.useStderr ? process.stderr : process.stdout;\n  const consoleFormatter = (type, message) => (0, _console().getConsoleOutput)(\n  // 4 = the console call is buried 4 stack frames deep\n  _console().BufferedConsole.write([], type, message, 4), projectConfig, globalConfig);\n  let testConsole;\n  if (globalConfig.silent) {\n    testConsole = new (_console().NullConsole)(consoleOut, consoleOut, consoleFormatter);\n  } else if (globalConfig.verbose) {\n    testConsole = new (_console().CustomConsole)(consoleOut, consoleOut, consoleFormatter);\n  } else {\n    testConsole = new (_console().BufferedConsole)();\n  }\n  let extraTestEnvironmentOptions;\n  const docblockEnvironmentOptions = docblockPragmas['jest-environment-options'];\n  if (typeof docblockEnvironmentOptions === 'string') {\n    extraTestEnvironmentOptions = JSON.parse(docblockEnvironmentOptions);\n  }\n  const environment = new TestEnvironment({\n    globalConfig,\n    projectConfig: extraTestEnvironmentOptions ? {\n      ...projectConfig,\n      testEnvironmentOptions: {\n        ...projectConfig.testEnvironmentOptions,\n        ...extraTestEnvironmentOptions\n      }\n    } : projectConfig\n  }, {\n    console: testConsole,\n    docblockPragmas,\n    testPath: path\n  });\n  const loadTestEnvironmentEnd = Date.now();\n  if (typeof environment.getVmContext !== 'function') {\n    console.error(`Test environment found at \"${testEnvironment}\" does not export a \"getVmContext\" method, which is mandatory from Jest 27. This method is a replacement for \"runScript\".`);\n    process.exit(1);\n  }\n  const leakDetector = projectConfig.detectLeaks ? new (_jestLeakDetector().default)(environment) : null;\n  (0, _jestUtil().setGlobal)(environment.global, 'console', testConsole, 'retain');\n  const runtime = new Runtime(projectConfig, environment, resolver, transformer, cacheFS, {\n    changedFiles: context.changedFiles,\n    collectCoverage: globalConfig.collectCoverage,\n    collectCoverageFrom: globalConfig.collectCoverageFrom,\n    coverageProvider: globalConfig.coverageProvider,\n    sourcesRelatedToTestsInChangedFiles: context.sourcesRelatedToTestsInChangedFiles\n  }, path, globalConfig);\n  let isTornDown = false;\n  const tearDownEnv = async () => {\n    if (!isTornDown) {\n      runtime.teardown();\n\n      // source-map-support keeps memory leftovers in `Error.prepareStackTrace`\n      (0, _nodeVm().runInContext)(\"Error.prepareStackTrace = () => '';\", environment.getVmContext());\n      sourcemapSupport().resetRetrieveHandlers();\n      try {\n        await environment.teardown();\n      } finally {\n        isTornDown = true;\n      }\n    }\n  };\n  const start = Date.now();\n  const setupFilesStart = Date.now();\n  for (const path of projectConfig.setupFiles) {\n    const esm = runtime.unstable_shouldLoadAsEsm(path);\n    if (esm) {\n      await runtime.unstable_importModule(path);\n    } else {\n      const setupFile = runtime.requireModule(path);\n      if (typeof setupFile === 'function') {\n        await setupFile();\n      }\n    }\n  }\n  const setupFilesEnd = Date.now();\n  const sourcemapOptions = {\n    environment: 'node',\n    handleUncaughtExceptions: false,\n    retrieveSourceMap: source => {\n      const sourceMapSource = runtime.getSourceMaps()?.get(source);\n      if (sourceMapSource) {\n        try {\n          return {\n            map: JSON.parse(fs().readFileSync(sourceMapSource, 'utf8')),\n            url: source\n          };\n        } catch {}\n      }\n      return null;\n    }\n  };\n\n  // For tests\n  runtime.requireInternalModule(require.resolve('source-map-support')).install(sourcemapOptions);\n\n  // For runtime errors\n  sourcemapSupport().install(sourcemapOptions);\n  if (environment.global && environment.global.process && environment.global.process.exit) {\n    const realExit = environment.global.process.exit;\n    environment.global.process.exit = function exit(...args) {\n      const error = new (_jestUtil().ErrorWithStack)(`process.exit called with \"${args.join(', ')}\"`, exit);\n      const formattedError = (0, _jestMessageUtil().formatExecError)(error, projectConfig, {\n        noStackTrace: false\n      }, undefined, true);\n      process.stderr.write(formattedError);\n      return realExit(...args);\n    };\n  }\n\n  // if we don't have `getVmContext` on the env skip coverage\n  const collectV8Coverage = globalConfig.collectCoverage && globalConfig.coverageProvider === 'v8' && typeof environment.getVmContext === 'function';\n\n  // Node's error-message stack size is limited at 10, but it's pretty useful\n  // to see more than that when a test fails.\n  Error.stackTraceLimit = 100;\n  try {\n    await environment.setup();\n    let result;\n    try {\n      if (collectV8Coverage) {\n        await runtime.collectV8Coverage();\n      }\n      result = await testFramework(globalConfig, projectConfig, environment, runtime, path, sendMessageToJest);\n    } catch (error) {\n      // Access all stacks before uninstalling sourcemaps\n      let e = error;\n      while (typeof e === 'object' && e !== null && 'stack' in e) {\n        // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n        e.stack;\n        e = e?.cause;\n      }\n      throw error;\n    } finally {\n      if (collectV8Coverage) {\n        await runtime.stopCollectingV8Coverage();\n      }\n    }\n    freezeConsole(testConsole, projectConfig);\n    const testCount = result.numPassingTests + result.numFailingTests + result.numPendingTests + result.numTodoTests;\n    const end = Date.now();\n    const testRuntime = end - start;\n    result.perfStats = {\n      ...result.perfStats,\n      end,\n      loadTestEnvironmentEnd,\n      loadTestEnvironmentStart,\n      runtime: testRuntime,\n      setupFilesEnd,\n      setupFilesStart,\n      slow: testRuntime / 1000 > projectConfig.slowTestThreshold,\n      start\n    };\n    result.testFilePath = path;\n    result.console = testConsole.getBuffer();\n    result.skipped = testCount === result.numPendingTests;\n    result.displayName = projectConfig.displayName;\n    const coverage = runtime.getAllCoverageInfoCopy();\n    if (coverage) {\n      const coverageKeys = Object.keys(coverage);\n      if (coverageKeys.length > 0) {\n        result.coverage = coverage;\n      }\n    }\n    if (collectV8Coverage) {\n      const v8Coverage = runtime.getAllV8CoverageInfoCopy();\n      if (v8Coverage && v8Coverage.length > 0) {\n        result.v8Coverage = v8Coverage;\n      }\n    }\n    if (globalConfig.logHeapUsage) {\n      globalThis.gc?.();\n      result.memoryUsage = process.memoryUsage().heapUsed;\n    }\n    await tearDownEnv();\n\n    // Delay the resolution to allow log messages to be output.\n    return await new Promise(resolve => {\n      setImmediate(() => resolve({\n        leakDetector,\n        result\n      }));\n    });\n  } finally {\n    await tearDownEnv();\n  }\n}\nasync function runTest(path, globalConfig, config, resolver, context, sendMessageToJest) {\n  const {\n    leakDetector,\n    result\n  } = await runTestInternal(path, globalConfig, config, resolver, context, sendMessageToJest);\n  if (leakDetector) {\n    // We wanna allow a tiny but time to pass to allow last-minute cleanup\n    await new Promise(resolve => setTimeout(resolve, 100));\n\n    // Resolve leak detector, outside the \"runTestInternal\" closure.\n    result.leaks = await leakDetector.isLeaking();\n  } else {\n    result.leaks = false;\n  }\n  return result;\n}\n\n/***/ }),\n\n/***/ \"./src/types.ts\":\n/***/ ((__unused_webpack_module, exports) => {\n\n\n\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.EmittingTestRunner = exports.CallbackTestRunner = void 0;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nclass BaseTestRunner {\n  isSerial;\n  constructor(_globalConfig, _context) {\n    this._globalConfig = _globalConfig;\n    this._context = _context;\n  }\n}\nclass CallbackTestRunner extends BaseTestRunner {\n  supportsEventEmitters = false;\n}\nexports.CallbackTestRunner = CallbackTestRunner;\nclass EmittingTestRunner extends BaseTestRunner {\n  supportsEventEmitters = true;\n}\nexports.EmittingTestRunner = EmittingTestRunner;\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).\n(() => {\nvar exports = __webpack_exports__;\n\n\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"CallbackTestRunner\", ({\n  enumerable: true,\n  get: function () {\n    return _types.CallbackTestRunner;\n  }\n}));\nObject.defineProperty(exports, \"EmittingTestRunner\", ({\n  enumerable: true,\n  get: function () {\n    return _types.EmittingTestRunner;\n  }\n}));\nexports[\"default\"] = void 0;\nfunction _chalk() {\n  const data = _interopRequireDefault(require(\"chalk\"));\n  _chalk = function () {\n    return data;\n  };\n  return data;\n}\nfunction _emittery() {\n  const data = _interopRequireDefault(require(\"emittery\"));\n  _emittery = function () {\n    return data;\n  };\n  return data;\n}\nfunction _pLimit() {\n  const data = _interopRequireDefault(require(\"p-limit\"));\n  _pLimit = function () {\n    return data;\n  };\n  return data;\n}\nfunction _jestUtil() {\n  const data = require(\"jest-util\");\n  _jestUtil = function () {\n    return data;\n  };\n  return data;\n}\nfunction _jestWorker() {\n  const data = require(\"jest-worker\");\n  _jestWorker = function () {\n    return data;\n  };\n  return data;\n}\nvar _runTest = _interopRequireDefault(__webpack_require__(\"./src/runTest.ts\"));\nvar _types = __webpack_require__(\"./src/types.ts\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nclass TestRunner extends _types.EmittingTestRunner {\n  #eventEmitter = new (_emittery().default)();\n  async runTests(tests, watcher, options) {\n    return options.serial ? this.#createInBandTestRun(tests, watcher) : this.#createParallelTestRun(tests, watcher);\n  }\n  async #createInBandTestRun(tests, watcher) {\n    process.env.JEST_WORKER_ID = '1';\n    const mutex = (0, _pLimit().default)(1);\n    return tests.reduce((promise, test) => mutex(() => promise.then(async () => {\n      if (watcher.isInterrupted()) {\n        throw new CancelRun();\n      }\n      await this.#eventEmitter.emit('test-file-start', [test]);\n      return (0, _runTest.default)(test.path, this._globalConfig, test.context.config, test.context.resolver, this._context, this.#sendMessageToJest);\n    }).then(result => this.#eventEmitter.emit('test-file-success', [test, result]), error => this.#eventEmitter.emit('test-file-failure', [test, error]))), Promise.resolve());\n  }\n  async #createParallelTestRun(tests, watcher) {\n    const resolvers = new Map();\n    for (const test of tests) {\n      if (!resolvers.has(test.context.config.id)) {\n        resolvers.set(test.context.config.id, {\n          config: test.context.config,\n          serializableModuleMap: test.context.moduleMap.toJSON()\n        });\n      }\n    }\n    const worker = new (_jestWorker().Worker)(require.resolve('./testWorker'), {\n      enableWorkerThreads: this._globalConfig.workerThreads,\n      exposedMethods: ['worker'],\n      forkOptions: {\n        serialization: 'json',\n        stdio: 'pipe'\n      },\n      // The workerIdleMemoryLimit should've been converted to a number during\n      // the normalization phase.\n      idleMemoryLimit: typeof this._globalConfig.workerIdleMemoryLimit === 'number' ? this._globalConfig.workerIdleMemoryLimit : undefined,\n      maxRetries: 3,\n      numWorkers: this._globalConfig.maxWorkers,\n      setupArgs: [{\n        serializableResolvers: [...resolvers.values()]\n      }]\n    });\n    if (worker.getStdout()) worker.getStdout().pipe(process.stdout);\n    if (worker.getStderr()) worker.getStderr().pipe(process.stderr);\n    const mutex = (0, _pLimit().default)(this._globalConfig.maxWorkers);\n\n    // Send test suites to workers continuously instead of all at once to track\n    // the start time of individual tests.\n    const runTestInWorker = test => mutex(async () => {\n      if (watcher.isInterrupted()) {\n        // eslint-disable-next-line unicorn/error-message\n        throw new Error();\n      }\n      await this.#eventEmitter.emit('test-file-start', [test]);\n      const promise = worker.worker({\n        config: test.context.config,\n        context: {\n          ...this._context,\n          changedFiles: this._context.changedFiles && [...this._context.changedFiles],\n          sourcesRelatedToTestsInChangedFiles: this._context.sourcesRelatedToTestsInChangedFiles && [...this._context.sourcesRelatedToTestsInChangedFiles]\n        },\n        globalConfig: this._globalConfig,\n        path: test.path\n      });\n      if (promise.UNSTABLE_onCustomMessage) {\n        // TODO: Get appropriate type for `onCustomMessage`\n        promise.UNSTABLE_onCustomMessage(([event, payload]) => this.#eventEmitter.emit(event, payload));\n      }\n      return promise;\n    });\n    const onInterrupt = new Promise((_resolve, reject) => {\n      watcher.on('change', state => {\n        if (state.interrupted) {\n          reject(new CancelRun());\n        }\n      });\n    });\n    const runAllTests = Promise.all(tests.map(test => runTestInWorker(test).then(result => this.#eventEmitter.emit('test-file-success', [test, result]), error => this.#eventEmitter.emit('test-file-failure', [test, error]))));\n    const cleanup = async () => {\n      const {\n        forceExited\n      } = await worker.end();\n      if (forceExited) {\n        console.error(_chalk().default.yellow('A worker process has failed to exit gracefully and has been force exited. ' + 'This is likely caused by tests leaking due to improper teardown. ' + 'Try running with --detectOpenHandles to find leaks. ' + 'Active timers can also cause this, ensure that .unref() was called on them.'));\n      }\n    };\n    return Promise.race([runAllTests, onInterrupt]).then(cleanup, cleanup);\n  }\n  on(eventName, listener) {\n    return this.#eventEmitter.on(eventName, listener);\n  }\n  #sendMessageToJest = async (eventName, args) => {\n    await this.#eventEmitter.emit(eventName,\n    // `deepCyclicCopy` used here to avoid mem-leak\n    (0, _jestUtil().deepCyclicCopy)(args, {\n      keepPrototype: false\n    }));\n  };\n}\nexports[\"default\"] = TestRunner;\nclass CancelRun extends Error {\n  constructor(message) {\n    super(message);\n    this.name = 'CancelRun';\n  }\n}\n})();\n\nmodule.exports = __webpack_exports__;\n/******/ })()\n;"]}