Descriptions.js 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. /**
  6. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  7. *
  8. * This source code is licensed under the MIT license found in the
  9. * LICENSE file in the root directory of this source tree.
  10. *
  11. *
  12. */
  13. exports.default = {
  14. automock: 'All imported modules in your tests should be mocked automatically',
  15. bail: 'Stop running tests after the first failure',
  16. browser: 'Respect "browser" field in package.json when resolving modules',
  17. cacheDirectory:
  18. 'The directory where Jest should store its cached dependency information',
  19. clearMocks: 'Automatically clear mock calls and instances between every test',
  20. collectCoverage:
  21. 'Indicates whether the coverage information should be collected while executing the test',
  22. collectCoverageFrom:
  23. 'An array of glob patterns indicating a set of files for which coverage information should be collected',
  24. coverageDirectory:
  25. 'The directory where Jest should output its coverage files',
  26. coveragePathIgnorePatterns:
  27. 'An array of regexp pattern strings used to skip coverage collection',
  28. coverageReporters:
  29. 'A list of reporter names that Jest uses when writing coverage reports',
  30. coverageThreshold:
  31. 'An object that configures minimum threshold enforcement for coverage results',
  32. errorOnDeprecated:
  33. 'Make calling deprecated APIs throw helpful error messages',
  34. forceCoverageMatch:
  35. 'Force coverage collection from ignored files usin a array of glob patterns',
  36. globalSetup:
  37. 'A path to a module which exports an async function that is triggered once before all test suites',
  38. globalTeardown:
  39. 'A path to a module which exports an async function that is triggered once after all test suites',
  40. globals:
  41. 'A set of global variables that need to be available in all test environments',
  42. moduleDirectories:
  43. "An array of directory names to be searched recursively up from the requiring module's location",
  44. moduleFileExtensions: 'An array of file extensions your modules use',
  45. moduleNameMapper:
  46. 'A map from regular expressions to module names that allow to stub out resources with a single module',
  47. modulePathIgnorePatterns:
  48. "An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader",
  49. notify: 'Activates notifications for test results',
  50. notifyMode:
  51. 'An enum that specifies notification mode. Requires { notify: true }',
  52. preset: "A preset that is used as a base for Jest's configuration",
  53. projects: 'Run tests from one or more projects',
  54. reporters: 'Use this configuration option to add custom reporters to Jest',
  55. resetMocks: 'Automatically reset mock state between every test',
  56. resetModules: 'Reset the module registry before running each individual test',
  57. resolver: 'A path to a custom resolver',
  58. restoreMocks: 'Automatically restore mock state between every test',
  59. rootDir:
  60. 'The root directory that Jest should scan for tests and modules within',
  61. roots:
  62. 'A list of paths to directories that Jest should use to search for files in',
  63. runner:
  64. "Allows you to use a custom runner instead of Jest's default test runner",
  65. setupFiles:
  66. 'The paths to modules that run some code to configure or set up the testing environment before each test',
  67. setupTestFrameworkScriptFile:
  68. 'The path to a module that runs some code to configure or set up the testing framework before each test',
  69. snapshotSerializers:
  70. 'A list of paths to snapshot serializer modules Jest should use for snapshot testing',
  71. testEnvironment: 'The test environment that will be used for testing',
  72. testEnvironmentOptions: 'Options that will be passed to the testEnvironment',
  73. testLocationInResults: 'Adds a location field to test results',
  74. testMatch: 'The glob patterns Jest uses to detect test files',
  75. testPathIgnorePatterns:
  76. 'An array of regexp pattern strings that are matched against all test paths, matched tests are skipped',
  77. testRegex: 'The regexp pattern Jest uses to detect test files',
  78. testResultsProcessor:
  79. 'This option allows the use of a custom results processor',
  80. testRunner: 'This option allows use of a custom test runner',
  81. testURL:
  82. 'This option sets the URL for the jsdom environment. It is reflected in properties such as location.href',
  83. timers:
  84. 'Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"',
  85. transform: 'A map from regular expressions to paths to transformers',
  86. transformIgnorePatterns:
  87. 'An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation',
  88. unmockedModulePathPatterns:
  89. 'An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them',
  90. verbose:
  91. 'Indicates whether each individual test should be reported during the run',
  92. watchPathIgnorePatterns:
  93. 'An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode',
  94. watchman: 'Whether to use watchman for file crawling'
  95. };