index.js 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315
  1. /*!
  2. * /**
  3. * * Copyright (c) Meta Platforms, Inc. and affiliates.
  4. * *
  5. * * This source code is licensed under the MIT license found in the
  6. * * LICENSE file in the root directory of this source tree.
  7. * * /
  8. */
  9. /******/ (() => { // webpackBootstrap
  10. /******/ "use strict";
  11. /******/ var __webpack_modules__ = ({
  12. /***/ "./src/ErrorWithStack.ts":
  13. /***/ ((__unused_webpack_module, exports) => {
  14. Object.defineProperty(exports, "__esModule", ({
  15. value: true
  16. }));
  17. exports["default"] = void 0;
  18. /**
  19. * Copyright (c) Meta Platforms, Inc. and affiliates.
  20. *
  21. * This source code is licensed under the MIT license found in the
  22. * LICENSE file in the root directory of this source tree.
  23. */
  24. class ErrorWithStack extends Error {
  25. constructor(message, callsite, stackLimit) {
  26. // Ensure we have a large stack length so we get full details.
  27. const originalStackLimit = Error.stackTraceLimit;
  28. if (stackLimit) {
  29. Error.stackTraceLimit = Math.max(stackLimit, originalStackLimit || 10);
  30. }
  31. super(message);
  32. if (Error.captureStackTrace) {
  33. Error.captureStackTrace(this, callsite);
  34. }
  35. Error.stackTraceLimit = originalStackLimit;
  36. }
  37. }
  38. exports["default"] = ErrorWithStack;
  39. /***/ }),
  40. /***/ "./src/clearLine.ts":
  41. /***/ ((__unused_webpack_module, exports) => {
  42. Object.defineProperty(exports, "__esModule", ({
  43. value: true
  44. }));
  45. exports["default"] = clearLine;
  46. /**
  47. * Copyright (c) Meta Platforms, Inc. and affiliates.
  48. *
  49. * This source code is licensed under the MIT license found in the
  50. * LICENSE file in the root directory of this source tree.
  51. */
  52. function clearLine(stream) {
  53. if (stream.isTTY) {
  54. stream.write('\u001B[999D\u001B[K');
  55. }
  56. }
  57. /***/ }),
  58. /***/ "./src/convertDescriptorToString.ts":
  59. /***/ ((__unused_webpack_module, exports) => {
  60. Object.defineProperty(exports, "__esModule", ({
  61. value: true
  62. }));
  63. exports["default"] = convertDescriptorToString;
  64. /**
  65. * Copyright (c) Meta Platforms, Inc. and affiliates.
  66. *
  67. * This source code is licensed under the MIT license found in the
  68. * LICENSE file in the root directory of this source tree.
  69. */
  70. function convertDescriptorToString(descriptor) {
  71. switch (typeof descriptor) {
  72. case 'function':
  73. if (descriptor.name) {
  74. return descriptor.name;
  75. }
  76. break;
  77. case 'number':
  78. case 'undefined':
  79. return `${descriptor}`;
  80. case 'string':
  81. return descriptor;
  82. }
  83. throw new Error(`Invalid first argument, ${descriptor}. It must be a named class, named function, number, or string.`);
  84. }
  85. /***/ }),
  86. /***/ "./src/createDirectory.ts":
  87. /***/ ((__unused_webpack_module, exports) => {
  88. Object.defineProperty(exports, "__esModule", ({
  89. value: true
  90. }));
  91. exports["default"] = createDirectory;
  92. function fs() {
  93. const data = _interopRequireWildcard(require("graceful-fs"));
  94. fs = function () {
  95. return data;
  96. };
  97. return data;
  98. }
  99. function _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); }
  100. /**
  101. * Copyright (c) Meta Platforms, Inc. and affiliates.
  102. *
  103. * This source code is licensed under the MIT license found in the
  104. * LICENSE file in the root directory of this source tree.
  105. */
  106. function createDirectory(path) {
  107. try {
  108. fs().mkdirSync(path, {
  109. recursive: true
  110. });
  111. } catch (error) {
  112. if (error.code !== 'EEXIST') {
  113. throw error;
  114. }
  115. }
  116. }
  117. /***/ }),
  118. /***/ "./src/createProcessObject.ts":
  119. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  120. Object.defineProperty(exports, "__esModule", ({
  121. value: true
  122. }));
  123. exports["default"] = createProcessObject;
  124. var _deepCyclicCopy = _interopRequireDefault(__webpack_require__("./src/deepCyclicCopy.ts"));
  125. function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
  126. /**
  127. * Copyright (c) Meta Platforms, Inc. and affiliates.
  128. *
  129. * This source code is licensed under the MIT license found in the
  130. * LICENSE file in the root directory of this source tree.
  131. */
  132. const BLACKLIST = new Set(['env', 'mainModule', '_events']);
  133. const isWin32 = process.platform === 'win32';
  134. const proto = Object.getPrototypeOf(process.env);
  135. // The "process.env" object has a bunch of particularities: first, it does not
  136. // directly extend from Object; second, it converts any assigned value to a
  137. // string; and third, it is case-insensitive in Windows. We use a proxy here to
  138. // mimic it (see https://nodejs.org/api/process.html#process_process_env).
  139. function createProcessEnv() {
  140. const real = Object.create(proto);
  141. const lookup = {};
  142. function deletePropertyWin32(_target, key) {
  143. for (const name in real) {
  144. if (Object.prototype.hasOwnProperty.call(real, name)) {
  145. if (typeof key === 'string') {
  146. if (name.toLowerCase() === key.toLowerCase()) {
  147. delete real[name];
  148. delete lookup[name.toLowerCase()];
  149. }
  150. } else {
  151. if (key === name) {
  152. delete real[name];
  153. delete lookup[name];
  154. }
  155. }
  156. }
  157. }
  158. return true;
  159. }
  160. function deleteProperty(_target, key) {
  161. delete real[key];
  162. delete lookup[key];
  163. return true;
  164. }
  165. function getProperty(_target, key) {
  166. return real[key];
  167. }
  168. function getPropertyWin32(_target, key) {
  169. if (typeof key === 'string') {
  170. return lookup[key in proto ? key : key.toLowerCase()];
  171. } else {
  172. return real[key];
  173. }
  174. }
  175. const proxy = new Proxy(real, {
  176. deleteProperty: isWin32 ? deletePropertyWin32 : deleteProperty,
  177. get: isWin32 ? getPropertyWin32 : getProperty,
  178. set(_target, key, value) {
  179. const strValue = `${value}`;
  180. if (typeof key === 'string') {
  181. lookup[key.toLowerCase()] = strValue;
  182. }
  183. real[key] = strValue;
  184. return true;
  185. }
  186. });
  187. return Object.assign(proxy, process.env);
  188. }
  189. function createProcessObject() {
  190. const process = require('process');
  191. const newProcess = (0, _deepCyclicCopy.default)(process, {
  192. blacklist: BLACKLIST,
  193. keepPrototype: true
  194. });
  195. try {
  196. // This fails on Node 12, but it's already set to 'process'
  197. newProcess[Symbol.toStringTag] = 'process';
  198. } catch (error) {
  199. // Make sure it's actually set instead of potentially ignoring errors
  200. if (newProcess[Symbol.toStringTag] !== 'process') {
  201. error.message = `Unable to set toStringTag on process. Please open up an issue at https://github.com/jestjs/jest\n\n${error.message}`;
  202. throw error;
  203. }
  204. }
  205. // Sequentially execute all constructors over the object.
  206. let proto = process;
  207. while (proto = Object.getPrototypeOf(proto)) {
  208. if (typeof proto.constructor === 'function') {
  209. proto.constructor.call(newProcess);
  210. }
  211. }
  212. newProcess.env = createProcessEnv();
  213. newProcess.send = () => true;
  214. Object.defineProperty(newProcess, 'domain', {
  215. get() {
  216. return process.domain;
  217. }
  218. });
  219. return newProcess;
  220. }
  221. /***/ }),
  222. /***/ "./src/deepCyclicCopy.ts":
  223. /***/ ((__unused_webpack_module, exports) => {
  224. Object.defineProperty(exports, "__esModule", ({
  225. value: true
  226. }));
  227. exports["default"] = deepCyclicCopy;
  228. /**
  229. * Copyright (c) Meta Platforms, Inc. and affiliates.
  230. *
  231. * This source code is licensed under the MIT license found in the
  232. * LICENSE file in the root directory of this source tree.
  233. */
  234. const EMPTY = new Set();
  235. function deepCyclicCopy(value, options, cycles = new WeakMap()) {
  236. options = {
  237. blacklist: EMPTY,
  238. keepPrototype: false,
  239. ...options
  240. };
  241. if (typeof value !== 'object' || value === null || Buffer.isBuffer(value)) {
  242. return value;
  243. } else if (cycles.has(value)) {
  244. return cycles.get(value);
  245. } else if (Array.isArray(value)) {
  246. return deepCyclicCopyArray(value, options, cycles);
  247. } else {
  248. return deepCyclicCopyObject(value, options, cycles);
  249. }
  250. }
  251. function deepCyclicCopyObject(object, options, cycles) {
  252. const newObject = options.keepPrototype ? Object.create(Object.getPrototypeOf(object)) : {};
  253. const descriptors = Object.getOwnPropertyDescriptors(object);
  254. cycles.set(object, newObject);
  255. for (const key of Object.keys(descriptors)) {
  256. if (options.blacklist && options.blacklist.has(key)) {
  257. delete descriptors[key];
  258. continue;
  259. }
  260. const descriptor = descriptors[key];
  261. if (descriptor.value !== undefined) {
  262. descriptor.value = deepCyclicCopy(descriptor.value, {
  263. blacklist: EMPTY,
  264. keepPrototype: options.keepPrototype
  265. }, cycles);
  266. }
  267. descriptor.configurable = true;
  268. }
  269. return Object.defineProperties(newObject, descriptors);
  270. }
  271. function deepCyclicCopyArray(array, options, cycles) {
  272. const newArray = options.keepPrototype ? new (Object.getPrototypeOf(array).constructor)(array.length) : [];
  273. const length = array.length;
  274. cycles.set(array, newArray);
  275. for (let i = 0; i < length; i++) {
  276. newArray[i] = deepCyclicCopy(array[i], {
  277. blacklist: EMPTY,
  278. keepPrototype: options.keepPrototype
  279. }, cycles);
  280. }
  281. return newArray;
  282. }
  283. /***/ }),
  284. /***/ "./src/formatTime.ts":
  285. /***/ ((__unused_webpack_module, exports) => {
  286. Object.defineProperty(exports, "__esModule", ({
  287. value: true
  288. }));
  289. exports["default"] = formatTime;
  290. /**
  291. * Copyright (c) Meta Platforms, Inc. and affiliates.
  292. *
  293. * This source code is licensed under the MIT license found in the
  294. * LICENSE file in the root directory of this source tree.
  295. */
  296. function formatTime(time, prefixPower = -3, padLeftLength = 0) {
  297. const prefixes = ['n', 'μ', 'm', ''];
  298. const prefixIndex = Math.max(0, Math.min(Math.trunc(prefixPower / 3) + prefixes.length - 1, prefixes.length - 1));
  299. return `${String(time).padStart(padLeftLength)} ${prefixes[prefixIndex]}s`;
  300. }
  301. /***/ }),
  302. /***/ "./src/garbage-collection-utils.ts":
  303. /***/ ((__unused_webpack_module, exports) => {
  304. Object.defineProperty(exports, "__esModule", ({
  305. value: true
  306. }));
  307. exports.canDeleteProperties = canDeleteProperties;
  308. exports.deleteProperties = deleteProperties;
  309. exports.initializeGarbageCollectionUtils = initializeGarbageCollectionUtils;
  310. exports.protectProperties = protectProperties;
  311. function _chalk() {
  312. const data = _interopRequireDefault(require("chalk"));
  313. _chalk = function () {
  314. return data;
  315. };
  316. return data;
  317. }
  318. function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
  319. /**
  320. * Copyright (c) Meta Platforms, Inc. and affiliates.
  321. *
  322. * This source code is licensed under the MIT license found in the
  323. * LICENSE file in the root directory of this source tree.
  324. */
  325. /**
  326. * The symbol that is set on the global object to store the deletion mode.
  327. */
  328. const DELETION_MODE_SYMBOL = Symbol.for('$$jest-deletion-mode');
  329. /**
  330. * The symbol that is set on objects to protect them from deletion.
  331. *
  332. * If the value is an empty array, then all properties will be protected.
  333. * If the value is an array of strings or symbols, then only those properties will be protected.
  334. */
  335. const PROTECT_SYMBOL = Symbol.for('$$jest-protect-from-deletion');
  336. /**
  337. * - <b>off</b>: deletion is completely turned off.
  338. * - <b>soft</b>: doesn't delete objects, but instead wraps their getter/setter with a deprecation warning.
  339. * - <b>on</b>: actually delete objects (using `delete`).
  340. */
  341. /**
  342. * Initializes the garbage collection utils with the given deletion mode.
  343. *
  344. * @param globalObject the global object on which to store the deletion mode.
  345. * @param deletionMode the deletion mode to use.
  346. */
  347. function initializeGarbageCollectionUtils(globalObject, deletionMode) {
  348. const currentMode = Reflect.get(globalObject, DELETION_MODE_SYMBOL);
  349. if (currentMode && currentMode !== deletionMode) {
  350. console.warn(_chalk().default.yellow(['[jest-util] garbage collection deletion mode already initialized, ignoring new mode', ` Current: '${currentMode}'`, ` Given: '${deletionMode}'`].join('\n')));
  351. return;
  352. }
  353. Reflect.set(globalObject, DELETION_MODE_SYMBOL, deletionMode);
  354. }
  355. /**
  356. * Deletes all the properties from the given value (if it's an object),
  357. * unless the value was protected via {@link #protectProperties}.
  358. *
  359. * @param value the given value.
  360. */
  361. function deleteProperties(value) {
  362. if (getDeletionMode() !== 'off' && canDeleteProperties(value)) {
  363. const protectedKeys = getProtectedKeys(value, Reflect.get(value, PROTECT_SYMBOL));
  364. for (const key of Reflect.ownKeys(value)) {
  365. if (!protectedKeys.includes(key) && key !== PROTECT_SYMBOL) {
  366. deleteProperty(value, key);
  367. }
  368. }
  369. }
  370. }
  371. /**
  372. * Protects the given value from being deleted by {@link #deleteProperties}.
  373. *
  374. * @param value The given value.
  375. * @param properties If the array contains any property,
  376. * then only these properties will be protected; otherwise if the array is empty,
  377. * all properties will be protected.
  378. * @param depth Determines how "deep" the protection should be.
  379. * A value of 0 means that only the top-most properties will be protected,
  380. * while a value larger than 0 means that deeper levels of nesting will be protected as well.
  381. */
  382. function protectProperties(value, properties = [], depth = 2) {
  383. if (getDeletionMode() === 'off') {
  384. return false;
  385. }
  386. // Reflect.get may cause deprecation warnings, so we disable them temporarily
  387. const originalEmitWarning = process.emitWarning;
  388. try {
  389. // eslint-disable-next-line @typescript-eslint/no-empty-function
  390. process.emitWarning = () => {};
  391. if (depth >= 0 && canDeleteProperties(value) && !Reflect.has(value, PROTECT_SYMBOL)) {
  392. const result = Reflect.defineProperty(value, PROTECT_SYMBOL, {
  393. configurable: true,
  394. enumerable: false,
  395. value: properties,
  396. writable: true
  397. });
  398. for (const key of getProtectedKeys(value, properties)) {
  399. try {
  400. const nested = Reflect.get(value, key);
  401. protectProperties(nested, [], depth - 1);
  402. } catch {
  403. // Reflect.get might fail in certain edge-cases
  404. // Instead of failing the entire process, we will skip the property.
  405. }
  406. }
  407. return result;
  408. }
  409. return false;
  410. } finally {
  411. process.emitWarning = originalEmitWarning;
  412. }
  413. }
  414. /**
  415. * Whether the given value has properties that can be deleted (regardless of protection).
  416. *
  417. * @param value The given value.
  418. */
  419. function canDeleteProperties(value) {
  420. if (value !== null) {
  421. const type = typeof value;
  422. return type === 'object' || type === 'function';
  423. }
  424. return false;
  425. }
  426. /**
  427. * Deletes the property of the given key from the given object.
  428. *
  429. * @param obj the given object.
  430. * @param key the given key.
  431. * @param mode there are two possible modes of deletion:
  432. * - <b>soft</b>: doesn't delete the object, but instead wraps its getter/setter with a deprecation warning.
  433. * - <b>hard</b>: actually deletes the object (`delete`).
  434. *
  435. * @returns whether the deletion was successful or not.
  436. */
  437. function deleteProperty(obj, key) {
  438. const descriptor = Reflect.getOwnPropertyDescriptor(obj, key);
  439. if (!descriptor?.configurable) {
  440. return false;
  441. }
  442. if (getDeletionMode() === 'on') {
  443. return Reflect.deleteProperty(obj, key);
  444. }
  445. const originalGetter = descriptor.get ?? (() => descriptor.value);
  446. const originalSetter = descriptor.set ?? (value => Reflect.set(obj, key, value));
  447. return Reflect.defineProperty(obj, key, {
  448. configurable: true,
  449. enumerable: descriptor.enumerable,
  450. get() {
  451. emitAccessWarning(obj, key);
  452. return originalGetter();
  453. },
  454. set(value) {
  455. emitAccessWarning(obj, key);
  456. return originalSetter(value);
  457. }
  458. });
  459. }
  460. function getDeletionMode() {
  461. return Reflect.get(globalThis, DELETION_MODE_SYMBOL) ?? 'off';
  462. }
  463. const warningCache = new WeakSet();
  464. function emitAccessWarning(obj, key) {
  465. if (warningCache.has(obj)) {
  466. return;
  467. }
  468. const objName = obj?.constructor?.name ?? 'unknown';
  469. const propertyName = typeof key === 'symbol' ? key.description : key;
  470. process.emitWarning(`'${propertyName}' property was accessed on [${objName}] after it was soft deleted`, {
  471. code: 'JEST-01',
  472. detail: ['Jest deletes objects that were set on the global scope between test files to reduce memory leaks.', 'Currently it only "soft" deletes them and emits this warning if those objects were accessed after their deletion.', 'In future versions of Jest, this behavior will change to "on", which will likely fail tests.', 'You can change the behavior in your test configuration now to reduce memory usage.'].map(s => ` ${s}`).join('\n'),
  473. type: 'DeprecationWarning'
  474. });
  475. warningCache.add(obj);
  476. }
  477. function getProtectedKeys(value, properties) {
  478. if (properties === undefined) {
  479. return [];
  480. }
  481. const protectedKeys = properties.length > 0 ? properties : Reflect.ownKeys(value);
  482. return protectedKeys.filter(key => PROTECT_SYMBOL !== key);
  483. }
  484. /***/ }),
  485. /***/ "./src/globsToMatcher.ts":
  486. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  487. Object.defineProperty(exports, "__esModule", ({
  488. value: true
  489. }));
  490. exports["default"] = globsToMatcher;
  491. function _picomatch() {
  492. const data = _interopRequireDefault(require("picomatch"));
  493. _picomatch = function () {
  494. return data;
  495. };
  496. return data;
  497. }
  498. var _replacePathSepForGlob = _interopRequireDefault(__webpack_require__("./src/replacePathSepForGlob.ts"));
  499. function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
  500. /**
  501. * Copyright (c) Meta Platforms, Inc. and affiliates.
  502. *
  503. * This source code is licensed under the MIT license found in the
  504. * LICENSE file in the root directory of this source tree.
  505. */
  506. const globsToMatchersMap = new Map();
  507. const picomatchOptions = {
  508. dot: true
  509. };
  510. /**
  511. * Converts a list of globs into a function that matches a path against the
  512. * globs.
  513. *
  514. * Every time picomatch is called, it will parse the glob strings and turn
  515. * them into regexp instances. Instead of calling picomatch repeatedly with
  516. * the same globs, we can use this function which will build the picomatch
  517. * matchers ahead of time and then have an optimized path for determining
  518. * whether an individual path matches.
  519. *
  520. * This function is intended to match the behavior of `micromatch()`.
  521. *
  522. * @example
  523. * const isMatch = globsToMatcher(['*.js', '!*.test.js']);
  524. * isMatch('pizza.js'); // true
  525. * isMatch('pizza.test.js'); // false
  526. */
  527. function globsToMatcher(globs) {
  528. if (globs.length === 0) {
  529. // Since there were no globs given, we can simply have a fast path here and
  530. // return with a very simple function.
  531. return () => false;
  532. }
  533. const matchers = globs.map(glob => {
  534. if (!globsToMatchersMap.has(glob)) {
  535. const isMatch = (0, _picomatch().default)(glob, picomatchOptions, true);
  536. const matcher = {
  537. isMatch,
  538. // Matchers that are negated have different behavior than matchers that
  539. // are not negated, so we need to store this information ahead of time.
  540. negated: isMatch.state.negated || !!isMatch.state.negatedExtglob
  541. };
  542. globsToMatchersMap.set(glob, matcher);
  543. }
  544. return globsToMatchersMap.get(glob);
  545. });
  546. return path => {
  547. const replacedPath = (0, _replacePathSepForGlob.default)(path);
  548. let kept = undefined;
  549. let negatives = 0;
  550. for (const matcher of matchers) {
  551. const {
  552. isMatch,
  553. negated
  554. } = matcher;
  555. if (negated) {
  556. negatives++;
  557. }
  558. const matched = isMatch(replacedPath);
  559. if (!matched && negated) {
  560. // The path was not matched, and the matcher is a negated matcher, so we
  561. // want to omit the path. This means that the negative matcher is
  562. // filtering the path out.
  563. kept = false;
  564. } else if (matched && !negated) {
  565. // The path was matched, and the matcher is not a negated matcher, so we
  566. // want to keep the path.
  567. kept = true;
  568. }
  569. }
  570. // If all of the globs were negative globs, then we want to include the path
  571. // as long as it was not explicitly not kept. Otherwise only include
  572. // the path if it was kept. This allows sets of globs that are all negated
  573. // to allow some paths to be matched, while sets of globs that are mixed
  574. // negated and non-negated to cause the negated matchers to only omit paths
  575. // and not keep them.
  576. return negatives === matchers.length ? kept !== false : !!kept;
  577. };
  578. }
  579. /***/ }),
  580. /***/ "./src/installCommonGlobals.ts":
  581. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  582. Object.defineProperty(exports, "__esModule", ({
  583. value: true
  584. }));
  585. exports["default"] = installCommonGlobals;
  586. function fs() {
  587. const data = _interopRequireWildcard(require("graceful-fs"));
  588. fs = function () {
  589. return data;
  590. };
  591. return data;
  592. }
  593. var _createProcessObject = _interopRequireDefault(__webpack_require__("./src/createProcessObject.ts"));
  594. var _deepCyclicCopy = _interopRequireDefault(__webpack_require__("./src/deepCyclicCopy.ts"));
  595. var _garbageCollectionUtils = __webpack_require__("./src/garbage-collection-utils.ts");
  596. function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
  597. function _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); }
  598. /**
  599. * Copyright (c) Meta Platforms, Inc. and affiliates.
  600. *
  601. * This source code is licensed under the MIT license found in the
  602. * LICENSE file in the root directory of this source tree.
  603. */
  604. const DTRACE = Object.keys(globalThis).filter(key => key.startsWith('DTRACE'));
  605. function installCommonGlobals(globalObject, globals, garbageCollectionDeletionMode) {
  606. globalObject.process = (0, _createProcessObject.default)();
  607. const symbol = globalObject.Symbol;
  608. // Keep a reference to some globals that Jest needs
  609. Object.defineProperties(globalObject, {
  610. [symbol.for('jest-native-promise')]: {
  611. enumerable: false,
  612. value: Promise,
  613. writable: false
  614. },
  615. [symbol.for('jest-native-now')]: {
  616. enumerable: false,
  617. value: globalObject.Date.now.bind(globalObject.Date),
  618. writable: false
  619. },
  620. [symbol.for('jest-native-read-file')]: {
  621. enumerable: false,
  622. value: fs().readFileSync.bind(fs()),
  623. writable: false
  624. },
  625. [symbol.for('jest-native-write-file')]: {
  626. enumerable: false,
  627. value: fs().writeFileSync.bind(fs()),
  628. writable: false
  629. },
  630. [symbol.for('jest-native-exists-file')]: {
  631. enumerable: false,
  632. value: fs().existsSync.bind(fs()),
  633. writable: false
  634. },
  635. 'jest-symbol-do-not-touch': {
  636. enumerable: false,
  637. value: symbol,
  638. writable: false
  639. }
  640. });
  641. // Forward some APIs.
  642. for (const dtrace of DTRACE) {
  643. // @ts-expect-error: no index
  644. globalObject[dtrace] = function (...args) {
  645. // @ts-expect-error: no index
  646. return globalThis[dtrace].apply(this, args);
  647. };
  648. }
  649. if (garbageCollectionDeletionMode) {
  650. (0, _garbageCollectionUtils.initializeGarbageCollectionUtils)(globalObject, garbageCollectionDeletionMode);
  651. }
  652. return Object.assign(globalObject, (0, _deepCyclicCopy.default)(globals));
  653. }
  654. /***/ }),
  655. /***/ "./src/interopRequireDefault.ts":
  656. /***/ ((__unused_webpack_module, exports) => {
  657. Object.defineProperty(exports, "__esModule", ({
  658. value: true
  659. }));
  660. exports["default"] = interopRequireDefault;
  661. /**
  662. * Copyright (c) Meta Platforms, Inc. and affiliates.
  663. *
  664. * This source code is licensed under the MIT license found in the
  665. * LICENSE file in the root directory of this source tree.
  666. */
  667. // copied from https://github.com/babel/babel/blob/56044c7851d583d498f919e9546caddf8f80a72f/packages/babel-helpers/src/helpers.js#L558-L562
  668. // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  669. function interopRequireDefault(obj) {
  670. return obj && obj.__esModule ? obj : {
  671. default: obj
  672. };
  673. }
  674. /***/ }),
  675. /***/ "./src/invariant.ts":
  676. /***/ ((__unused_webpack_module, exports) => {
  677. Object.defineProperty(exports, "__esModule", ({
  678. value: true
  679. }));
  680. exports["default"] = invariant;
  681. /**
  682. * Copyright (c) Meta Platforms, Inc. and affiliates.
  683. *
  684. * This source code is licensed under the MIT license found in the
  685. * LICENSE file in the root directory of this source tree.
  686. */
  687. function invariant(condition, message = '') {
  688. if (!condition) {
  689. throw new Error(message);
  690. }
  691. }
  692. /***/ }),
  693. /***/ "./src/isInteractive.ts":
  694. /***/ ((__unused_webpack_module, exports) => {
  695. Object.defineProperty(exports, "__esModule", ({
  696. value: true
  697. }));
  698. exports["default"] = void 0;
  699. function _ciInfo() {
  700. const data = require("ci-info");
  701. _ciInfo = function () {
  702. return data;
  703. };
  704. return data;
  705. }
  706. /**
  707. * Copyright (c) Meta Platforms, Inc. and affiliates.
  708. *
  709. * This source code is licensed under the MIT license found in the
  710. * LICENSE file in the root directory of this source tree.
  711. */
  712. function checkIsInteractive() {
  713. if (_ciInfo().isCI) {
  714. return false;
  715. }
  716. // this can happen in a browser with polyfills: https://github.com/defunctzombie/node-process/issues/41
  717. if (process.stdout == null) {
  718. return false;
  719. }
  720. if (process.stdout.isTTY) {
  721. return process.env.TERM !== 'dumb';
  722. }
  723. return false;
  724. }
  725. const isInteractive = checkIsInteractive();
  726. var _default = exports["default"] = isInteractive;
  727. /***/ }),
  728. /***/ "./src/isNonNullable.ts":
  729. /***/ ((__unused_webpack_module, exports) => {
  730. Object.defineProperty(exports, "__esModule", ({
  731. value: true
  732. }));
  733. exports["default"] = isNonNullable;
  734. /**
  735. * Copyright (c) Meta Platforms, Inc. and affiliates.
  736. *
  737. * This source code is licensed under the MIT license found in the
  738. * LICENSE file in the root directory of this source tree.
  739. */
  740. function isNonNullable(value) {
  741. return value != null;
  742. }
  743. /***/ }),
  744. /***/ "./src/isPromise.ts":
  745. /***/ ((__unused_webpack_module, exports) => {
  746. Object.defineProperty(exports, "__esModule", ({
  747. value: true
  748. }));
  749. exports["default"] = isPromise;
  750. /**
  751. * Copyright (c) Meta Platforms, Inc. and affiliates.
  752. *
  753. * This source code is licensed under the MIT license found in the
  754. * LICENSE file in the root directory of this source tree.
  755. */
  756. function isPromise(candidate) {
  757. return candidate != null && (typeof candidate === 'object' || typeof candidate === 'function') && typeof candidate.then === 'function';
  758. }
  759. /***/ }),
  760. /***/ "./src/pluralize.ts":
  761. /***/ ((__unused_webpack_module, exports) => {
  762. Object.defineProperty(exports, "__esModule", ({
  763. value: true
  764. }));
  765. exports["default"] = pluralize;
  766. /**
  767. * Copyright (c) Meta Platforms, Inc. and affiliates.
  768. *
  769. * This source code is licensed under the MIT license found in the
  770. * LICENSE file in the root directory of this source tree.
  771. */
  772. function pluralize(word, count, ending = 's') {
  773. return `${count} ${word}${count === 1 ? '' : ending}`;
  774. }
  775. /***/ }),
  776. /***/ "./src/preRunMessage.ts":
  777. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  778. Object.defineProperty(exports, "__esModule", ({
  779. value: true
  780. }));
  781. exports.print = print;
  782. exports.remove = remove;
  783. function _chalk() {
  784. const data = _interopRequireDefault(require("chalk"));
  785. _chalk = function () {
  786. return data;
  787. };
  788. return data;
  789. }
  790. var _clearLine = _interopRequireDefault(__webpack_require__("./src/clearLine.ts"));
  791. var _isInteractive = _interopRequireDefault(__webpack_require__("./src/isInteractive.ts"));
  792. function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
  793. /**
  794. * Copyright (c) Meta Platforms, Inc. and affiliates.
  795. *
  796. * This source code is licensed under the MIT license found in the
  797. * LICENSE file in the root directory of this source tree.
  798. */
  799. function print(stream) {
  800. if (_isInteractive.default) {
  801. stream.write(_chalk().default.bold.dim('Determining test suites to run...'));
  802. }
  803. }
  804. function remove(stream) {
  805. if (_isInteractive.default) {
  806. (0, _clearLine.default)(stream);
  807. }
  808. }
  809. /***/ }),
  810. /***/ "./src/replacePathSepForGlob.ts":
  811. /***/ ((__unused_webpack_module, exports) => {
  812. Object.defineProperty(exports, "__esModule", ({
  813. value: true
  814. }));
  815. exports["default"] = replacePathSepForGlob;
  816. /**
  817. * Copyright (c) Meta Platforms, Inc. and affiliates.
  818. *
  819. * This source code is licensed under the MIT license found in the
  820. * LICENSE file in the root directory of this source tree.
  821. */
  822. function replacePathSepForGlob(path) {
  823. return path.replaceAll(/\\(?![$()+.?^{}])/g, '/');
  824. }
  825. /***/ }),
  826. /***/ "./src/requireOrImportModule.ts":
  827. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  828. Object.defineProperty(exports, "__esModule", ({
  829. value: true
  830. }));
  831. exports["default"] = requireOrImportModule;
  832. function _path() {
  833. const data = require("path");
  834. _path = function () {
  835. return data;
  836. };
  837. return data;
  838. }
  839. function _url() {
  840. const data = require("url");
  841. _url = function () {
  842. return data;
  843. };
  844. return data;
  845. }
  846. var _interopRequireDefault = _interopRequireDefault2(__webpack_require__("./src/interopRequireDefault.ts"));
  847. function _interopRequireDefault2(e) { return e && e.__esModule ? e : { default: e }; }
  848. /**
  849. * Copyright (c) Meta Platforms, Inc. and affiliates.
  850. *
  851. * This source code is licensed under the MIT license found in the
  852. * LICENSE file in the root directory of this source tree.
  853. */
  854. async function importModule(filePath, applyInteropRequireDefault) {
  855. try {
  856. const moduleUrl = (0, _url().pathToFileURL)(filePath);
  857. // node `import()` supports URL, but TypeScript doesn't know that
  858. const importedModule = await import(/* webpackIgnore: true */moduleUrl.href);
  859. if (!applyInteropRequireDefault) {
  860. return importedModule;
  861. }
  862. if (!importedModule.default) {
  863. throw new Error(`Jest: Failed to load ESM at ${filePath} - did you use a default export?`);
  864. }
  865. return importedModule.default;
  866. } catch (error) {
  867. if (error.message === 'Not supported') {
  868. throw new Error(`Jest: Your version of Node does not support dynamic import - please enable it or use a .cjs file extension for file ${filePath}`);
  869. }
  870. throw error;
  871. }
  872. }
  873. async function requireOrImportModule(filePath, applyInteropRequireDefault = true) {
  874. if (!(0, _path().isAbsolute)(filePath) && filePath[0] === '.') {
  875. throw new Error(`Jest: requireOrImportModule path must be absolute, was "${filePath}"`);
  876. }
  877. try {
  878. if (filePath.endsWith('.mjs')) {
  879. return importModule(filePath, applyInteropRequireDefault);
  880. }
  881. const requiredModule = require(filePath);
  882. if (!applyInteropRequireDefault) {
  883. return requiredModule;
  884. }
  885. return (0, _interopRequireDefault.default)(requiredModule).default;
  886. } catch (error) {
  887. if (error.code === 'ERR_REQUIRE_ESM' || error.code === 'ERR_REQUIRE_ASYNC_MODULE') {
  888. return importModule(filePath, applyInteropRequireDefault);
  889. } else {
  890. throw error;
  891. }
  892. }
  893. }
  894. /***/ }),
  895. /***/ "./src/setGlobal.ts":
  896. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  897. Object.defineProperty(exports, "__esModule", ({
  898. value: true
  899. }));
  900. exports["default"] = setGlobal;
  901. var _garbageCollectionUtils = __webpack_require__("./src/garbage-collection-utils.ts");
  902. /**
  903. * Copyright (c) Meta Platforms, Inc. and affiliates.
  904. *
  905. * This source code is licensed under the MIT license found in the
  906. * LICENSE file in the root directory of this source tree.
  907. */
  908. function setGlobal(globalToMutate, key, value, afterTeardown = 'clean') {
  909. Reflect.set(globalToMutate, key, value);
  910. if (afterTeardown === 'retain' && (0, _garbageCollectionUtils.canDeleteProperties)(value)) {
  911. (0, _garbageCollectionUtils.protectProperties)(value);
  912. }
  913. }
  914. /***/ }),
  915. /***/ "./src/specialChars.ts":
  916. /***/ ((__unused_webpack_module, exports) => {
  917. Object.defineProperty(exports, "__esModule", ({
  918. value: true
  919. }));
  920. exports.ICONS = exports.CLEAR = exports.ARROW = void 0;
  921. /**
  922. * Copyright (c) Meta Platforms, Inc. and affiliates.
  923. *
  924. * This source code is licensed under the MIT license found in the
  925. * LICENSE file in the root directory of this source tree.
  926. */
  927. const isWindows = process.platform === 'win32';
  928. const ARROW = exports.ARROW = ' \u203A ';
  929. const ICONS = exports.ICONS = {
  930. failed: isWindows ? '\u00D7' : '\u2715',
  931. pending: '\u25CB',
  932. success: isWindows ? '\u221A' : '\u2713',
  933. todo: '\u270E'
  934. };
  935. const CLEAR = exports.CLEAR = isWindows ? '\u001B[2J\u001B[0f' : '\u001B[2J\u001B[3J\u001B[H';
  936. /***/ }),
  937. /***/ "./src/tryRealpath.ts":
  938. /***/ ((__unused_webpack_module, exports) => {
  939. Object.defineProperty(exports, "__esModule", ({
  940. value: true
  941. }));
  942. exports["default"] = tryRealpath;
  943. function _gracefulFs() {
  944. const data = require("graceful-fs");
  945. _gracefulFs = function () {
  946. return data;
  947. };
  948. return data;
  949. }
  950. /**
  951. * Copyright (c) Meta Platforms, Inc. and affiliates.
  952. *
  953. * This source code is licensed under the MIT license found in the
  954. * LICENSE file in the root directory of this source tree.
  955. */
  956. function tryRealpath(path) {
  957. try {
  958. path = _gracefulFs().realpathSync.native(path);
  959. } catch (error) {
  960. if (error.code !== 'ENOENT' && error.code !== 'EISDIR') {
  961. throw error;
  962. }
  963. }
  964. return path;
  965. }
  966. /***/ })
  967. /******/ });
  968. /************************************************************************/
  969. /******/ // The module cache
  970. /******/ var __webpack_module_cache__ = {};
  971. /******/
  972. /******/ // The require function
  973. /******/ function __webpack_require__(moduleId) {
  974. /******/ // Check if module is in cache
  975. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  976. /******/ if (cachedModule !== undefined) {
  977. /******/ return cachedModule.exports;
  978. /******/ }
  979. /******/ // Create a new module (and put it into the cache)
  980. /******/ var module = __webpack_module_cache__[moduleId] = {
  981. /******/ // no module.id needed
  982. /******/ // no module.loaded needed
  983. /******/ exports: {}
  984. /******/ };
  985. /******/
  986. /******/ // Execute the module function
  987. /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
  988. /******/
  989. /******/ // Return the exports of the module
  990. /******/ return module.exports;
  991. /******/ }
  992. /******/
  993. /************************************************************************/
  994. var __webpack_exports__ = {};
  995. // This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
  996. (() => {
  997. var exports = __webpack_exports__;
  998. Object.defineProperty(exports, "__esModule", ({
  999. value: true
  1000. }));
  1001. Object.defineProperty(exports, "ErrorWithStack", ({
  1002. enumerable: true,
  1003. get: function () {
  1004. return _ErrorWithStack.default;
  1005. }
  1006. }));
  1007. Object.defineProperty(exports, "canDeleteProperties", ({
  1008. enumerable: true,
  1009. get: function () {
  1010. return _garbageCollectionUtils.canDeleteProperties;
  1011. }
  1012. }));
  1013. Object.defineProperty(exports, "clearLine", ({
  1014. enumerable: true,
  1015. get: function () {
  1016. return _clearLine.default;
  1017. }
  1018. }));
  1019. Object.defineProperty(exports, "convertDescriptorToString", ({
  1020. enumerable: true,
  1021. get: function () {
  1022. return _convertDescriptorToString.default;
  1023. }
  1024. }));
  1025. Object.defineProperty(exports, "createDirectory", ({
  1026. enumerable: true,
  1027. get: function () {
  1028. return _createDirectory.default;
  1029. }
  1030. }));
  1031. Object.defineProperty(exports, "deepCyclicCopy", ({
  1032. enumerable: true,
  1033. get: function () {
  1034. return _deepCyclicCopy.default;
  1035. }
  1036. }));
  1037. Object.defineProperty(exports, "deleteProperties", ({
  1038. enumerable: true,
  1039. get: function () {
  1040. return _garbageCollectionUtils.deleteProperties;
  1041. }
  1042. }));
  1043. Object.defineProperty(exports, "formatTime", ({
  1044. enumerable: true,
  1045. get: function () {
  1046. return _formatTime.default;
  1047. }
  1048. }));
  1049. Object.defineProperty(exports, "globsToMatcher", ({
  1050. enumerable: true,
  1051. get: function () {
  1052. return _globsToMatcher.default;
  1053. }
  1054. }));
  1055. Object.defineProperty(exports, "initializeGarbageCollectionUtils", ({
  1056. enumerable: true,
  1057. get: function () {
  1058. return _garbageCollectionUtils.initializeGarbageCollectionUtils;
  1059. }
  1060. }));
  1061. Object.defineProperty(exports, "installCommonGlobals", ({
  1062. enumerable: true,
  1063. get: function () {
  1064. return _installCommonGlobals.default;
  1065. }
  1066. }));
  1067. Object.defineProperty(exports, "interopRequireDefault", ({
  1068. enumerable: true,
  1069. get: function () {
  1070. return _interopRequireDefault.default;
  1071. }
  1072. }));
  1073. Object.defineProperty(exports, "invariant", ({
  1074. enumerable: true,
  1075. get: function () {
  1076. return _invariant.default;
  1077. }
  1078. }));
  1079. Object.defineProperty(exports, "isInteractive", ({
  1080. enumerable: true,
  1081. get: function () {
  1082. return _isInteractive.default;
  1083. }
  1084. }));
  1085. Object.defineProperty(exports, "isNonNullable", ({
  1086. enumerable: true,
  1087. get: function () {
  1088. return _isNonNullable.default;
  1089. }
  1090. }));
  1091. Object.defineProperty(exports, "isPromise", ({
  1092. enumerable: true,
  1093. get: function () {
  1094. return _isPromise.default;
  1095. }
  1096. }));
  1097. Object.defineProperty(exports, "pluralize", ({
  1098. enumerable: true,
  1099. get: function () {
  1100. return _pluralize.default;
  1101. }
  1102. }));
  1103. exports.preRunMessage = void 0;
  1104. Object.defineProperty(exports, "protectProperties", ({
  1105. enumerable: true,
  1106. get: function () {
  1107. return _garbageCollectionUtils.protectProperties;
  1108. }
  1109. }));
  1110. Object.defineProperty(exports, "replacePathSepForGlob", ({
  1111. enumerable: true,
  1112. get: function () {
  1113. return _replacePathSepForGlob.default;
  1114. }
  1115. }));
  1116. Object.defineProperty(exports, "requireOrImportModule", ({
  1117. enumerable: true,
  1118. get: function () {
  1119. return _requireOrImportModule.default;
  1120. }
  1121. }));
  1122. Object.defineProperty(exports, "setGlobal", ({
  1123. enumerable: true,
  1124. get: function () {
  1125. return _setGlobal.default;
  1126. }
  1127. }));
  1128. exports.specialChars = void 0;
  1129. Object.defineProperty(exports, "tryRealpath", ({
  1130. enumerable: true,
  1131. get: function () {
  1132. return _tryRealpath.default;
  1133. }
  1134. }));
  1135. var preRunMessage = _interopRequireWildcard(__webpack_require__("./src/preRunMessage.ts"));
  1136. exports.preRunMessage = preRunMessage;
  1137. var specialChars = _interopRequireWildcard(__webpack_require__("./src/specialChars.ts"));
  1138. exports.specialChars = specialChars;
  1139. var _clearLine = _interopRequireDefault2(__webpack_require__("./src/clearLine.ts"));
  1140. var _createDirectory = _interopRequireDefault2(__webpack_require__("./src/createDirectory.ts"));
  1141. var _ErrorWithStack = _interopRequireDefault2(__webpack_require__("./src/ErrorWithStack.ts"));
  1142. var _installCommonGlobals = _interopRequireDefault2(__webpack_require__("./src/installCommonGlobals.ts"));
  1143. var _interopRequireDefault = _interopRequireDefault2(__webpack_require__("./src/interopRequireDefault.ts"));
  1144. var _isInteractive = _interopRequireDefault2(__webpack_require__("./src/isInteractive.ts"));
  1145. var _isPromise = _interopRequireDefault2(__webpack_require__("./src/isPromise.ts"));
  1146. var _setGlobal = _interopRequireDefault2(__webpack_require__("./src/setGlobal.ts"));
  1147. var _deepCyclicCopy = _interopRequireDefault2(__webpack_require__("./src/deepCyclicCopy.ts"));
  1148. var _convertDescriptorToString = _interopRequireDefault2(__webpack_require__("./src/convertDescriptorToString.ts"));
  1149. var _replacePathSepForGlob = _interopRequireDefault2(__webpack_require__("./src/replacePathSepForGlob.ts"));
  1150. var _globsToMatcher = _interopRequireDefault2(__webpack_require__("./src/globsToMatcher.ts"));
  1151. var _pluralize = _interopRequireDefault2(__webpack_require__("./src/pluralize.ts"));
  1152. var _formatTime = _interopRequireDefault2(__webpack_require__("./src/formatTime.ts"));
  1153. var _tryRealpath = _interopRequireDefault2(__webpack_require__("./src/tryRealpath.ts"));
  1154. var _requireOrImportModule = _interopRequireDefault2(__webpack_require__("./src/requireOrImportModule.ts"));
  1155. var _invariant = _interopRequireDefault2(__webpack_require__("./src/invariant.ts"));
  1156. var _isNonNullable = _interopRequireDefault2(__webpack_require__("./src/isNonNullable.ts"));
  1157. var _garbageCollectionUtils = __webpack_require__("./src/garbage-collection-utils.ts");
  1158. function _interopRequireDefault2(e) { return e && e.__esModule ? e : { default: e }; }
  1159. function _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); }
  1160. })();
  1161. module.exports = __webpack_exports__;
  1162. /******/ })()
  1163. ;