Descriptions.js 5.6 KB

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