Defaults.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. var _jestRegexUtil;
  6. function _load_jestRegexUtil() {
  7. return (_jestRegexUtil = require('jest-regex-util'));
  8. }
  9. var _constants;
  10. function _load_constants() {
  11. return (_constants = require('./constants'));
  12. }
  13. var _getCacheDirectory;
  14. function _load_getCacheDirectory() {
  15. return (_getCacheDirectory = _interopRequireDefault(
  16. require('./getCacheDirectory')
  17. ));
  18. }
  19. function _interopRequireDefault(obj) {
  20. return obj && obj.__esModule ? obj : {default: obj};
  21. }
  22. /**
  23. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  24. *
  25. * This source code is licensed under the MIT license found in the
  26. * LICENSE file in the root directory of this source tree.
  27. *
  28. *
  29. */
  30. const NODE_MODULES_REGEXP = (0,
  31. (_jestRegexUtil || _load_jestRegexUtil()).replacePathSepForRegex)(
  32. (_constants || _load_constants()).NODE_MODULES
  33. );
  34. exports.default = {
  35. automock: false,
  36. bail: false,
  37. browser: false,
  38. cache: true,
  39. cacheDirectory: (0,
  40. (_getCacheDirectory || _load_getCacheDirectory()).default)(),
  41. changedFilesWithAncestor: false,
  42. clearMocks: false,
  43. collectCoverage: false,
  44. collectCoverageFrom: null,
  45. coverageDirectory: null,
  46. coveragePathIgnorePatterns: [NODE_MODULES_REGEXP],
  47. coverageReporters: ['json', 'text', 'lcov', 'clover'],
  48. coverageThreshold: null,
  49. detectLeaks: false,
  50. detectOpenHandles: false,
  51. errorOnDeprecated: false,
  52. expand: false,
  53. filter: null,
  54. forceCoverageMatch: [],
  55. globalSetup: null,
  56. globalTeardown: null,
  57. globals: {},
  58. haste: {
  59. providesModuleNodeModules: []
  60. },
  61. moduleDirectories: ['node_modules'],
  62. moduleFileExtensions: ['js', 'json', 'jsx', 'node'],
  63. moduleNameMapper: {},
  64. modulePathIgnorePatterns: [],
  65. noStackTrace: false,
  66. notify: false,
  67. notifyMode: 'always',
  68. preset: null,
  69. prettierPath: 'prettier',
  70. projects: null,
  71. resetMocks: false,
  72. resetModules: false,
  73. resolver: null,
  74. restoreMocks: false,
  75. rootDir: null,
  76. roots: ['<rootDir>'],
  77. runTestsByPath: false,
  78. runner: 'jest-runner',
  79. setupFiles: [],
  80. setupTestFrameworkScriptFile: null,
  81. skipFilter: false,
  82. snapshotSerializers: [],
  83. testEnvironment: 'jest-environment-jsdom',
  84. testEnvironmentOptions: {},
  85. testFailureExitCode: 1,
  86. testLocationInResults: false,
  87. testMatch: ['**/__tests__/**/*.js?(x)', '**/?(*.)+(spec|test).js?(x)'],
  88. testPathIgnorePatterns: [NODE_MODULES_REGEXP],
  89. testRegex: '',
  90. testResultsProcessor: null,
  91. testRunner: 'jasmine2',
  92. testURL: 'http://localhost',
  93. timers: 'real',
  94. transform: null,
  95. transformIgnorePatterns: [NODE_MODULES_REGEXP],
  96. useStderr: false,
  97. verbose: null,
  98. watch: false,
  99. watchPathIgnorePatterns: [],
  100. watchman: true
  101. };