Descriptions.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. browser: 'Respect "browser" field in package.json when resolving modules',
  16. cacheDirectory:
  17. 'The directory where Jest should store its cached dependency information',
  18. clearMocks: 'Automatically clear mock calls and instances between every test',
  19. collectCoverage:
  20. 'Indicates whether the coverage information should be collected while executing the test',
  21. collectCoverageFrom:
  22. 'An array of glob patterns indicating a set of files for which coverage information should be collected',
  23. coverageDirectory:
  24. 'The directory where Jest should output its coverage files',
  25. coveragePathIgnorePatterns:
  26. 'An array of regexp pattern strings used to skip coverage collection',
  27. coverageReporters:
  28. 'A list of reporter names that Jest uses when writing coverage reports',
  29. coverageThreshold:
  30. 'An object that configures minimum threshold enforcement for coverage results',
  31. dependencyExtractor: 'A path to a custom dependency extractor',
  32. errorOnDeprecated:
  33. 'Make calling deprecated APIs throw helpful error messages',
  34. forceCoverageMatch:
  35. 'Force coverage collection from ignored files using an 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. maxWorkers:
  43. '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.',
  44. moduleDirectories:
  45. "An array of directory names to be searched recursively up from the requiring module's location",
  46. moduleFileExtensions: 'An array of file extensions your modules use',
  47. moduleNameMapper:
  48. 'A map from regular expressions to module names that allow to stub out resources with a single module',
  49. modulePathIgnorePatterns:
  50. "An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader",
  51. notify: 'Activates notifications for test results',
  52. notifyMode:
  53. 'An enum that specifies notification mode. Requires { notify: true }',
  54. preset: "A preset that is used as a base for Jest's configuration",
  55. projects: 'Run tests from one or more projects',
  56. reporters: 'Use this configuration option to add custom reporters to Jest',
  57. resetMocks: 'Automatically reset mock state between every test',
  58. resetModules: 'Reset the module registry before running each individual test',
  59. resolver: 'A path to a custom resolver',
  60. restoreMocks: 'Automatically restore mock state between every test',
  61. rootDir:
  62. 'The root directory that Jest should scan for tests and modules within',
  63. roots:
  64. 'A list of paths to directories that Jest should use to search for files in',
  65. runner:
  66. "Allows you to use a custom runner instead of Jest's default test runner",
  67. setupFiles:
  68. 'The paths to modules that run some code to configure or set up the testing environment before each test',
  69. setupFilesAfterEnv:
  70. 'A list of paths to modules that run some code to configure or set up the testing framework before each test',
  71. snapshotSerializers:
  72. 'A list of paths to snapshot serializer modules Jest should use for snapshot testing',
  73. testEnvironment: 'The test environment that will be used for testing',
  74. testEnvironmentOptions: 'Options that will be passed to the testEnvironment',
  75. testLocationInResults: 'Adds a location field to test results',
  76. testMatch: 'The glob patterns Jest uses to detect test files',
  77. testPathIgnorePatterns:
  78. 'An array of regexp pattern strings that are matched against all test paths, matched tests are skipped',
  79. testRegex:
  80. 'The regexp pattern or array of patterns that Jest uses to detect test files',
  81. testResultsProcessor:
  82. 'This option allows the use of a custom results processor',
  83. testRunner: 'This option allows use of a custom test runner',
  84. testURL:
  85. 'This option sets the URL for the jsdom environment. It is reflected in properties such as location.href',
  86. timers:
  87. 'Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"',
  88. transform: 'A map from regular expressions to paths to transformers',
  89. transformIgnorePatterns:
  90. 'An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation',
  91. unmockedModulePathPatterns:
  92. 'An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them',
  93. verbose:
  94. 'Indicates whether each individual test should be reported during the run',
  95. watchPathIgnorePatterns:
  96. 'An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode',
  97. watchman: 'Whether to use watchman for file crawling'
  98. };
  99. var _default = descriptions;
  100. exports.default = _default;