Defaults.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 _jestRegexUtil() {
  14. const data = require('jest-regex-util');
  15. _jestRegexUtil = function () {
  16. return data;
  17. };
  18. return data;
  19. }
  20. var _constants = require('./constants');
  21. var _getCacheDirectory = _interopRequireDefault(require('./getCacheDirectory'));
  22. function _interopRequireDefault(obj) {
  23. return obj && obj.__esModule ? obj : {default: obj};
  24. }
  25. /**
  26. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  27. *
  28. * This source code is licensed under the MIT license found in the
  29. * LICENSE file in the root directory of this source tree.
  30. */
  31. const NODE_MODULES_REGEXP = (0, _jestRegexUtil().replacePathSepForRegex)(
  32. _constants.NODE_MODULES
  33. );
  34. const defaultOptions = {
  35. automock: false,
  36. bail: 0,
  37. cache: true,
  38. cacheDirectory: (0, _getCacheDirectory.default)(),
  39. changedFilesWithAncestor: false,
  40. clearMocks: false,
  41. collectCoverage: false,
  42. coveragePathIgnorePatterns: [NODE_MODULES_REGEXP],
  43. coverageProvider: 'babel',
  44. coverageReporters: ['json', 'text', 'lcov', 'clover'],
  45. errorOnDeprecated: false,
  46. expand: false,
  47. forceCoverageMatch: [],
  48. globals: {},
  49. haste: {
  50. computeSha1: false,
  51. throwOnModuleCollision: false
  52. },
  53. injectGlobals: true,
  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. prettierPath: 'prettier',
  64. resetMocks: false,
  65. resetModules: false,
  66. restoreMocks: false,
  67. roots: ['<rootDir>'],
  68. runTestsByPath: false,
  69. runner: 'jest-runner',
  70. setupFiles: [],
  71. setupFilesAfterEnv: [],
  72. skipFilter: false,
  73. slowTestThreshold: 5,
  74. snapshotSerializers: [],
  75. testEnvironment: 'jest-environment-jsdom',
  76. testEnvironmentOptions: {},
  77. testFailureExitCode: 1,
  78. testLocationInResults: false,
  79. testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
  80. testPathIgnorePatterns: [NODE_MODULES_REGEXP],
  81. testRegex: [],
  82. testRunner: 'jasmine2',
  83. testSequencer: '@jest/test-sequencer',
  84. testURL: 'http://localhost',
  85. timers: 'real',
  86. transformIgnorePatterns: [
  87. NODE_MODULES_REGEXP,
  88. `\\.pnp\\.[^\\${_path().sep}]+$`
  89. ],
  90. useStderr: false,
  91. watch: false,
  92. watchPathIgnorePatterns: [],
  93. watchman: true
  94. };
  95. var _default = defaultOptions;
  96. exports.default = _default;