Defaults.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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) Facebook, Inc. and its affiliates. All Rights Reserved.
  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. forceCoverageMatch: [],
  59. globals: {},
  60. haste: {
  61. computeSha1: false,
  62. enableSymlinks: false,
  63. forceNodeFilesystemAPI: false,
  64. throwOnModuleCollision: false
  65. },
  66. injectGlobals: true,
  67. listTests: false,
  68. maxConcurrency: 5,
  69. maxWorkers: '50%',
  70. moduleDirectories: ['node_modules'],
  71. moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
  72. moduleNameMapper: {},
  73. modulePathIgnorePatterns: [],
  74. noStackTrace: false,
  75. notify: false,
  76. notifyMode: 'failure-change',
  77. passWithNoTests: false,
  78. prettierPath: 'prettier',
  79. resetMocks: false,
  80. resetModules: false,
  81. restoreMocks: false,
  82. roots: ['<rootDir>'],
  83. runTestsByPath: false,
  84. runner: 'jest-runner',
  85. setupFiles: [],
  86. setupFilesAfterEnv: [],
  87. skipFilter: false,
  88. slowTestThreshold: 5,
  89. snapshotSerializers: [],
  90. testEnvironment: 'jest-environment-node',
  91. testEnvironmentOptions: {},
  92. testFailureExitCode: 1,
  93. testLocationInResults: false,
  94. testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
  95. testPathIgnorePatterns: [NODE_MODULES_REGEXP],
  96. testRegex: [],
  97. testRunner: 'jest-circus/runner',
  98. testSequencer: '@jest/test-sequencer',
  99. testURL: 'http://localhost',
  100. timers: 'real',
  101. transformIgnorePatterns: [
  102. NODE_MODULES_REGEXP,
  103. `\\.pnp\\.[^\\${_path().sep}]+$`
  104. ],
  105. useStderr: false,
  106. watch: false,
  107. watchPathIgnorePatterns: [],
  108. watchman: true
  109. };
  110. var _default = defaultOptions;
  111. exports.default = _default;