Defaults.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _path() {
  7. const data = require('path');
  8. _path = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _ciInfo() {
  14. const data = require('ci-info');
  15. _ciInfo = function () {
  16. return data;
  17. };
  18. return data;
  19. }
  20. function _jestRegexUtil() {
  21. const data = require('jest-regex-util');
  22. _jestRegexUtil = function () {
  23. return data;
  24. };
  25. return data;
  26. }
  27. var _constants = require('./constants');
  28. var _getCacheDirectory = _interopRequireDefault(require('./getCacheDirectory'));
  29. function _interopRequireDefault(obj) {
  30. return obj && obj.__esModule ? obj : {default: obj};
  31. }
  32. /**
  33. * Copyright (c) Meta Platforms, Inc. and affiliates.
  34. *
  35. * This source code is licensed under the MIT license found in the
  36. * LICENSE file in the root directory of this source tree.
  37. */
  38. const NODE_MODULES_REGEXP = (0, _jestRegexUtil().replacePathSepForRegex)(
  39. _constants.NODE_MODULES
  40. );
  41. const defaultOptions = {
  42. automock: false,
  43. bail: 0,
  44. cache: true,
  45. cacheDirectory: (0, _getCacheDirectory.default)(),
  46. changedFilesWithAncestor: false,
  47. ci: _ciInfo().isCI,
  48. clearMocks: false,
  49. collectCoverage: false,
  50. coveragePathIgnorePatterns: [NODE_MODULES_REGEXP],
  51. coverageProvider: 'babel',
  52. coverageReporters: ['json', 'text', 'lcov', 'clover'],
  53. detectLeaks: false,
  54. detectOpenHandles: false,
  55. errorOnDeprecated: false,
  56. expand: false,
  57. extensionsToTreatAsEsm: [],
  58. fakeTimers: {
  59. enableGlobally: false
  60. },
  61. forceCoverageMatch: [],
  62. globals: {},
  63. haste: {
  64. computeSha1: false,
  65. enableSymlinks: false,
  66. forceNodeFilesystemAPI: true,
  67. throwOnModuleCollision: false
  68. },
  69. injectGlobals: true,
  70. listTests: false,
  71. maxConcurrency: 5,
  72. maxWorkers: '50%',
  73. moduleDirectories: ['node_modules'],
  74. moduleFileExtensions: [
  75. 'js',
  76. 'mjs',
  77. 'cjs',
  78. 'jsx',
  79. 'ts',
  80. 'tsx',
  81. 'json',
  82. 'node'
  83. ],
  84. moduleNameMapper: {},
  85. modulePathIgnorePatterns: [],
  86. noStackTrace: false,
  87. notify: false,
  88. notifyMode: 'failure-change',
  89. openHandlesTimeout: 1000,
  90. passWithNoTests: false,
  91. prettierPath: 'prettier',
  92. resetMocks: false,
  93. resetModules: false,
  94. restoreMocks: false,
  95. roots: ['<rootDir>'],
  96. runTestsByPath: false,
  97. runner: 'jest-runner',
  98. setupFiles: [],
  99. setupFilesAfterEnv: [],
  100. skipFilter: false,
  101. slowTestThreshold: 5,
  102. snapshotFormat: {
  103. escapeString: false,
  104. printBasicPrototype: false
  105. },
  106. snapshotSerializers: [],
  107. testEnvironment: 'jest-environment-node',
  108. testEnvironmentOptions: {},
  109. testFailureExitCode: 1,
  110. testLocationInResults: false,
  111. testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
  112. testPathIgnorePatterns: [NODE_MODULES_REGEXP],
  113. testRegex: [],
  114. testRunner: 'jest-circus/runner',
  115. testSequencer: '@jest/test-sequencer',
  116. transformIgnorePatterns: [
  117. NODE_MODULES_REGEXP,
  118. `\\.pnp\\.[^\\${_path().sep}]+$`
  119. ],
  120. useStderr: false,
  121. watch: false,
  122. watchPathIgnorePatterns: [],
  123. watchman: true,
  124. workerThreads: false
  125. };
  126. var _default = defaultOptions;
  127. exports.default = _default;