Defaults.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _jestRegexUtil() {
  7. const data = require('jest-regex-util');
  8. _jestRegexUtil = function _jestRegexUtil() {
  9. return data;
  10. };
  11. return data;
  12. }
  13. var _constants = require('./constants');
  14. var _getCacheDirectory = _interopRequireDefault(require('./getCacheDirectory'));
  15. function _interopRequireDefault(obj) {
  16. return obj && obj.__esModule ? obj : {default: obj};
  17. }
  18. /**
  19. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  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. const NODE_MODULES_REGEXP = (0, _jestRegexUtil().replacePathSepForRegex)(
  25. _constants.NODE_MODULES
  26. );
  27. const defaultOptions = {
  28. automock: false,
  29. bail: 0,
  30. browser: false,
  31. cache: true,
  32. cacheDirectory: (0, _getCacheDirectory.default)(),
  33. changedFilesWithAncestor: false,
  34. clearMocks: false,
  35. collectCoverage: false,
  36. collectCoverageFrom: null,
  37. coverageDirectory: null,
  38. coveragePathIgnorePatterns: [NODE_MODULES_REGEXP],
  39. coverageReporters: ['json', 'text', 'lcov', 'clover'],
  40. coverageThreshold: null,
  41. dependencyExtractor: null,
  42. errorOnDeprecated: false,
  43. expand: false,
  44. filter: null,
  45. forceCoverageMatch: [],
  46. globalSetup: null,
  47. globalTeardown: null,
  48. globals: {},
  49. haste: {
  50. computeSha1: false,
  51. providesModuleNodeModules: [],
  52. throwOnModuleCollision: false
  53. },
  54. maxConcurrency: 5,
  55. maxWorkers: '50%',
  56. moduleDirectories: ['node_modules'],
  57. moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
  58. moduleNameMapper: {},
  59. modulePathIgnorePatterns: [],
  60. noStackTrace: false,
  61. notify: false,
  62. notifyMode: 'failure-change',
  63. preset: null,
  64. prettierPath: 'prettier',
  65. projects: null,
  66. resetMocks: false,
  67. resetModules: false,
  68. resolver: null,
  69. restoreMocks: false,
  70. rootDir: null,
  71. roots: ['<rootDir>'],
  72. runTestsByPath: false,
  73. runner: 'jest-runner',
  74. setupFiles: [],
  75. setupFilesAfterEnv: [],
  76. skipFilter: false,
  77. snapshotSerializers: [],
  78. testEnvironment: 'jest-environment-jsdom',
  79. testEnvironmentOptions: {},
  80. testFailureExitCode: 1,
  81. testLocationInResults: false,
  82. testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
  83. testPathIgnorePatterns: [NODE_MODULES_REGEXP],
  84. testRegex: [],
  85. testResultsProcessor: null,
  86. testRunner: 'jasmine2',
  87. testSequencer: '@jest/test-sequencer',
  88. testURL: 'http://localhost',
  89. timers: 'real',
  90. transform: null,
  91. transformIgnorePatterns: [NODE_MODULES_REGEXP],
  92. useStderr: false,
  93. verbose: null,
  94. watch: false,
  95. watchPathIgnorePatterns: [],
  96. watchman: true
  97. };
  98. var _default = defaultOptions;
  99. exports.default = _default;