Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

args.js 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.check = check;
  6. exports.options = exports.docs = exports.usage = void 0;
  7. function _jestConfig() {
  8. const data = require('jest-config');
  9. _jestConfig = function () {
  10. return data;
  11. };
  12. return data;
  13. }
  14. /**
  15. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  16. *
  17. * This source code is licensed under the MIT license found in the
  18. * LICENSE file in the root directory of this source tree.
  19. */
  20. function check(argv) {
  21. if (argv.runInBand && argv.hasOwnProperty('maxWorkers')) {
  22. throw new Error(
  23. 'Both --runInBand and --maxWorkers were specified, but these two ' +
  24. 'options do not make sense together. Which is it?'
  25. );
  26. }
  27. for (const key of [
  28. 'onlyChanged',
  29. 'lastCommit',
  30. 'changedFilesWithAncestor',
  31. 'changedSince'
  32. ]) {
  33. if (argv[key] && argv.watchAll) {
  34. throw new Error(
  35. `Both --${key} and --watchAll were specified, but these two ` +
  36. 'options do not make sense together. Try the --watch option which ' +
  37. 'reruns only tests related to changed files.'
  38. );
  39. }
  40. }
  41. if (argv.onlyFailures && argv.watchAll) {
  42. throw new Error(
  43. `Both --onlyFailures and --watchAll were specified, but these two ` +
  44. 'options do not make sense together.'
  45. );
  46. }
  47. if (argv.findRelatedTests && argv._.length === 0) {
  48. throw new Error(
  49. 'The --findRelatedTests option requires file paths to be specified.\n' +
  50. 'Example usage: jest --findRelatedTests ./src/source.js ' +
  51. './src/index.js.'
  52. );
  53. }
  54. if (argv.hasOwnProperty('maxWorkers') && argv.maxWorkers === undefined) {
  55. throw new Error(
  56. 'The --maxWorkers (-w) option requires a number or string to be specified.\n' +
  57. 'Example usage: jest --maxWorkers 2\n' +
  58. 'Example usage: jest --maxWorkers 50%\n' +
  59. 'Or did you mean --watch?'
  60. );
  61. }
  62. if (argv.selectProjects && argv.selectProjects.length === 0) {
  63. throw new Error(
  64. 'The --selectProjects option requires the name of at least one project to be specified.\n' +
  65. 'Example usage: jest --selectProjects my-first-project my-second-project'
  66. );
  67. }
  68. if (
  69. argv.config &&
  70. !(0, _jestConfig().isJSONString)(argv.config) &&
  71. !argv.config.match(
  72. new RegExp(
  73. `\\.(${_jestConfig()
  74. .constants.JEST_CONFIG_EXT_ORDER.map(e => e.substring(1))
  75. .join('|')})$`,
  76. 'i'
  77. )
  78. )
  79. ) {
  80. throw new Error(
  81. `The --config option requires a JSON string literal, or a file path with one of these extensions: ${_jestConfig().constants.JEST_CONFIG_EXT_ORDER.join(
  82. ', '
  83. )}.\nExample usage: jest --config ./jest.config.js`
  84. );
  85. }
  86. return true;
  87. }
  88. const usage = 'Usage: $0 [--config=<pathToConfigFile>] [TestPathPattern]';
  89. exports.usage = usage;
  90. const docs = 'Documentation: https://jestjs.io/'; // The default values are all set in jest-config
  91. exports.docs = docs;
  92. const options = {
  93. all: {
  94. description:
  95. 'The opposite of `onlyChanged`. If `onlyChanged` is set by ' +
  96. 'default, running jest with `--all` will force Jest to run all tests ' +
  97. 'instead of running only tests related to changed files.',
  98. type: 'boolean'
  99. },
  100. automock: {
  101. description: 'Automock all files by default.',
  102. type: 'boolean'
  103. },
  104. bail: {
  105. alias: 'b',
  106. description:
  107. 'Exit the test suite immediately after `n` number of failing tests.',
  108. type: 'boolean'
  109. },
  110. browser: {
  111. description:
  112. 'Respect the "browser" field in package.json ' +
  113. 'when resolving modules. Some packages export different versions ' +
  114. 'based on whether they are operating in node.js or a browser.',
  115. type: 'boolean'
  116. },
  117. cache: {
  118. description:
  119. 'Whether to use the transform cache. Disable the cache ' +
  120. 'using --no-cache.',
  121. type: 'boolean'
  122. },
  123. cacheDirectory: {
  124. description:
  125. 'The directory where Jest should store its cached ' +
  126. ' dependency information.',
  127. type: 'string'
  128. },
  129. changedFilesWithAncestor: {
  130. description:
  131. 'Runs tests related to the current changes and the changes made in the ' +
  132. 'last commit. Behaves similarly to `--onlyChanged`.',
  133. type: 'boolean'
  134. },
  135. changedSince: {
  136. description:
  137. 'Runs tests related to the changes since the provided branch. If the ' +
  138. 'current branch has diverged from the given branch, then only changes ' +
  139. 'made locally will be tested. Behaves similarly to `--onlyChanged`.',
  140. nargs: 1,
  141. type: 'string'
  142. },
  143. ci: {
  144. description:
  145. 'Whether to run Jest in continuous integration (CI) mode. ' +
  146. 'This option is on by default in most popular CI environments. It will ' +
  147. 'prevent snapshots from being written unless explicitly requested.',
  148. type: 'boolean'
  149. },
  150. clearCache: {
  151. description:
  152. 'Clears the configured Jest cache directory and then exits. ' +
  153. 'Default directory can be found by calling jest --showConfig',
  154. type: 'boolean'
  155. },
  156. clearMocks: {
  157. description:
  158. 'Automatically clear mock calls and instances between every ' +
  159. 'test. Equivalent to calling jest.clearAllMocks() between each test.',
  160. type: 'boolean'
  161. },
  162. collectCoverage: {
  163. description: 'Alias for --coverage.',
  164. type: 'boolean'
  165. },
  166. collectCoverageFrom: {
  167. description:
  168. 'A glob pattern relative to <rootDir> matching the files that coverage ' +
  169. 'info needs to be collected from.',
  170. type: 'string'
  171. },
  172. collectCoverageOnlyFrom: {
  173. description: 'Explicit list of paths coverage will be restricted to.',
  174. string: true,
  175. type: 'array'
  176. },
  177. color: {
  178. description:
  179. 'Forces test results output color highlighting (even if ' +
  180. 'stdout is not a TTY). Set to false if you would like to have no colors.',
  181. type: 'boolean'
  182. },
  183. colors: {
  184. description: 'Alias for `--color`.',
  185. type: 'boolean'
  186. },
  187. config: {
  188. alias: 'c',
  189. description:
  190. 'The path to a jest config file specifying how to find ' +
  191. 'and execute tests. If no rootDir is set in the config, the directory ' +
  192. 'containing the config file is assumed to be the rootDir for the project.' +
  193. 'This can also be a JSON encoded value which Jest will use as configuration.',
  194. type: 'string'
  195. },
  196. coverage: {
  197. description:
  198. 'Indicates that test coverage information should be ' +
  199. 'collected and reported in the output.',
  200. type: 'boolean'
  201. },
  202. coverageDirectory: {
  203. description: 'The directory where Jest should output its coverage files.',
  204. type: 'string'
  205. },
  206. coveragePathIgnorePatterns: {
  207. description:
  208. 'An array of regexp pattern strings that are matched ' +
  209. 'against all file paths before executing the test. If the file path' +
  210. 'matches any of the patterns, coverage information will be skipped.',
  211. string: true,
  212. type: 'array'
  213. },
  214. coverageProvider: {
  215. choices: ['babel', 'v8'],
  216. description: 'Select between Babel and V8 to collect coverage'
  217. },
  218. coverageReporters: {
  219. description:
  220. 'A list of reporter names that Jest uses when writing ' +
  221. 'coverage reports. Any istanbul reporter can be used.',
  222. string: true,
  223. type: 'array'
  224. },
  225. coverageThreshold: {
  226. description:
  227. 'A JSON string with which will be used to configure ' +
  228. 'minimum threshold enforcement for coverage results',
  229. type: 'string'
  230. },
  231. debug: {
  232. description: 'Print debugging info about your jest config.',
  233. type: 'boolean'
  234. },
  235. detectLeaks: {
  236. description:
  237. '**EXPERIMENTAL**: Detect memory leaks in tests. After executing a ' +
  238. 'test, it will try to garbage collect the global object used, and fail ' +
  239. 'if it was leaked',
  240. type: 'boolean'
  241. },
  242. detectOpenHandles: {
  243. description:
  244. 'Print out remaining open handles preventing Jest from exiting at the ' +
  245. 'end of a test run. Implies `runInBand`.',
  246. type: 'boolean'
  247. },
  248. env: {
  249. description:
  250. 'The test environment used for all tests. This can point to ' +
  251. 'any file or node module. Examples: `jsdom`, `node` or ' +
  252. '`path/to/my-environment.js`',
  253. type: 'string'
  254. },
  255. errorOnDeprecated: {
  256. description: 'Make calling deprecated APIs throw helpful error messages.',
  257. type: 'boolean'
  258. },
  259. expand: {
  260. alias: 'e',
  261. description: 'Use this flag to show full diffs instead of a patch.',
  262. type: 'boolean'
  263. },
  264. filter: {
  265. description:
  266. 'Path to a module exporting a filtering function. This method receives ' +
  267. 'a list of tests which can be manipulated to exclude tests from ' +
  268. 'running. Especially useful when used in conjunction with a testing ' +
  269. 'infrastructure to filter known broken tests.',
  270. type: 'string'
  271. },
  272. findRelatedTests: {
  273. description:
  274. 'Find related tests for a list of source files that were ' +
  275. 'passed in as arguments. Useful for pre-commit hook integration to run ' +
  276. 'the minimal amount of tests necessary.',
  277. type: 'boolean'
  278. },
  279. forceExit: {
  280. description:
  281. 'Force Jest to exit after all tests have completed running. ' +
  282. 'This is useful when resources set up by test code cannot be ' +
  283. 'adequately cleaned up.',
  284. type: 'boolean'
  285. },
  286. globalSetup: {
  287. description: 'The path to a module that runs before All Tests.',
  288. type: 'string'
  289. },
  290. globalTeardown: {
  291. description: 'The path to a module that runs after All Tests.',
  292. type: 'string'
  293. },
  294. globals: {
  295. description:
  296. 'A JSON string with map of global variables that need ' +
  297. 'to be available in all test environments.',
  298. type: 'string'
  299. },
  300. haste: {
  301. description:
  302. 'A JSON string with map of variables for the haste module system',
  303. type: 'string'
  304. },
  305. init: {
  306. description: 'Generate a basic configuration file',
  307. type: 'boolean'
  308. },
  309. injectGlobals: {
  310. description: 'Should Jest inject global variables or not',
  311. type: 'boolean'
  312. },
  313. json: {
  314. description:
  315. 'Prints the test results in JSON. This mode will send all ' +
  316. 'other test output and user messages to stderr.',
  317. type: 'boolean'
  318. },
  319. lastCommit: {
  320. description:
  321. 'Run all tests affected by file changes in the last commit made. ' +
  322. 'Behaves similarly to `--onlyChanged`.',
  323. type: 'boolean'
  324. },
  325. listTests: {
  326. description:
  327. 'Lists all tests Jest will run given the arguments and ' +
  328. 'exits. Most useful in a CI system together with `--findRelatedTests` ' +
  329. 'to determine the tests Jest will run based on specific files',
  330. type: 'boolean'
  331. },
  332. logHeapUsage: {
  333. description:
  334. 'Logs the heap usage after every test. Useful to debug ' +
  335. 'memory leaks. Use together with `--runInBand` and `--expose-gc` in ' +
  336. 'node.',
  337. type: 'boolean'
  338. },
  339. maxConcurrency: {
  340. description:
  341. 'Specifies the maximum number of tests that are allowed to run' +
  342. 'concurrently. This only affects tests using `test.concurrent`.',
  343. type: 'number'
  344. },
  345. maxWorkers: {
  346. alias: 'w',
  347. description:
  348. 'Specifies the maximum number of workers the worker-pool ' +
  349. 'will spawn for running tests. This defaults to the number of the ' +
  350. 'cores available on your machine. (its usually best not to override ' +
  351. 'this default)',
  352. type: 'string'
  353. },
  354. moduleDirectories: {
  355. description:
  356. 'An array of directory names to be searched recursively ' +
  357. "up from the requiring module's location.",
  358. string: true,
  359. type: 'array'
  360. },
  361. moduleFileExtensions: {
  362. description:
  363. 'An array of file extensions your modules use. If you ' +
  364. 'require modules without specifying a file extension, these are the ' +
  365. 'extensions Jest will look for. ',
  366. string: true,
  367. type: 'array'
  368. },
  369. moduleNameMapper: {
  370. description:
  371. 'A JSON string with a map from regular expressions to ' +
  372. 'module names or to arrays of module names that allow to stub ' +
  373. 'out resources, like images or styles with a single module',
  374. type: 'string'
  375. },
  376. modulePathIgnorePatterns: {
  377. description:
  378. 'An array of regexp pattern strings that are matched ' +
  379. 'against all module paths before those paths are to be considered ' +
  380. '"visible" to the module loader.',
  381. string: true,
  382. type: 'array'
  383. },
  384. modulePaths: {
  385. description:
  386. 'An alternative API to setting the NODE_PATH env variable, ' +
  387. 'modulePaths is an array of absolute paths to additional locations to ' +
  388. 'search when resolving modules.',
  389. string: true,
  390. type: 'array'
  391. },
  392. noStackTrace: {
  393. description: 'Disables stack trace in test results output',
  394. type: 'boolean'
  395. },
  396. notify: {
  397. description: 'Activates notifications for test results.',
  398. type: 'boolean'
  399. },
  400. notifyMode: {
  401. description: 'Specifies when notifications will appear for test results.',
  402. type: 'string'
  403. },
  404. onlyChanged: {
  405. alias: 'o',
  406. description:
  407. 'Attempts to identify which tests to run based on which ' +
  408. "files have changed in the current repository. Only works if you're " +
  409. 'running tests in a git or hg repository at the moment.',
  410. type: 'boolean'
  411. },
  412. onlyFailures: {
  413. alias: 'f',
  414. description: 'Run tests that failed in the previous execution.',
  415. type: 'boolean'
  416. },
  417. outputFile: {
  418. description:
  419. 'Write test results to a file when the --json option is ' +
  420. 'also specified.',
  421. type: 'string'
  422. },
  423. passWithNoTests: {
  424. description:
  425. 'Will not fail if no tests are found (for example while using `--testPathPattern`.)',
  426. type: 'boolean'
  427. },
  428. preset: {
  429. description: "A preset that is used as a base for Jest's configuration.",
  430. type: 'string'
  431. },
  432. prettierPath: {
  433. description: 'The path to the "prettier" module used for inline snapshots.',
  434. type: 'string'
  435. },
  436. projects: {
  437. description:
  438. 'A list of projects that use Jest to run all tests of all ' +
  439. 'projects in a single instance of Jest.',
  440. string: true,
  441. type: 'array'
  442. },
  443. reporters: {
  444. description: 'A list of custom reporters for the test suite.',
  445. string: true,
  446. type: 'array'
  447. },
  448. resetMocks: {
  449. description:
  450. 'Automatically reset mock state between every test. ' +
  451. 'Equivalent to calling jest.resetAllMocks() between each test.',
  452. type: 'boolean'
  453. },
  454. resetModules: {
  455. description:
  456. 'If enabled, the module registry for every test file will ' +
  457. 'be reset before running each individual test.',
  458. type: 'boolean'
  459. },
  460. resolver: {
  461. description: 'A JSON string which allows the use of a custom resolver.',
  462. type: 'string'
  463. },
  464. restoreMocks: {
  465. description:
  466. 'Automatically restore mock state and implementation between every test. ' +
  467. 'Equivalent to calling jest.restoreAllMocks() between each test.',
  468. type: 'boolean'
  469. },
  470. rootDir: {
  471. description:
  472. 'The root directory that Jest should scan for tests and ' +
  473. 'modules within.',
  474. type: 'string'
  475. },
  476. roots: {
  477. description:
  478. 'A list of paths to directories that Jest should use to ' +
  479. 'search for files in.',
  480. string: true,
  481. type: 'array'
  482. },
  483. runInBand: {
  484. alias: 'i',
  485. description:
  486. 'Run all tests serially in the current process (rather than ' +
  487. 'creating a worker pool of child processes that run tests). This ' +
  488. 'is sometimes useful for debugging, but such use cases are pretty ' +
  489. 'rare.',
  490. type: 'boolean'
  491. },
  492. runTestsByPath: {
  493. description:
  494. 'Used when provided patterns are exact file paths. This avoids ' +
  495. 'converting them into a regular expression and matching it against ' +
  496. 'every single file.',
  497. type: 'boolean'
  498. },
  499. runner: {
  500. description:
  501. "Allows to use a custom runner instead of Jest's default test runner.",
  502. type: 'string'
  503. },
  504. selectProjects: {
  505. description:
  506. 'Run only the tests of the specified projects.' +
  507. 'Jest uses the attribute `displayName` in the configuration to identify each project.',
  508. string: true,
  509. type: 'array'
  510. },
  511. setupFiles: {
  512. description:
  513. 'A list of paths to modules that run some code to configure or ' +
  514. 'set up the testing environment before each test. ',
  515. string: true,
  516. type: 'array'
  517. },
  518. setupFilesAfterEnv: {
  519. description:
  520. 'A list of paths to modules that run some code to configure or ' +
  521. 'set up the testing framework before each test ',
  522. string: true,
  523. type: 'array'
  524. },
  525. showConfig: {
  526. description: 'Print your jest config and then exits.',
  527. type: 'boolean'
  528. },
  529. silent: {
  530. description: 'Prevent tests from printing messages through the console.',
  531. type: 'boolean'
  532. },
  533. skipFilter: {
  534. description:
  535. 'Disables the filter provided by --filter. Useful for CI jobs, or ' +
  536. 'local enforcement when fixing tests.',
  537. type: 'boolean'
  538. },
  539. snapshotSerializers: {
  540. description:
  541. 'A list of paths to snapshot serializer modules Jest should ' +
  542. 'use for snapshot testing.',
  543. string: true,
  544. type: 'array'
  545. },
  546. testEnvironment: {
  547. description: 'Alias for --env',
  548. type: 'string'
  549. },
  550. testEnvironmentOptions: {
  551. description:
  552. 'Test environment options that will be passed to the testEnvironment. ' +
  553. 'The relevant options depend on the environment.',
  554. type: 'string' // Object
  555. },
  556. testFailureExitCode: {
  557. description: 'Exit code of `jest` command if the test run failed',
  558. type: 'string' // number
  559. },
  560. testLocationInResults: {
  561. description: 'Add `location` information to the test results',
  562. type: 'boolean'
  563. },
  564. testMatch: {
  565. description: 'The glob patterns Jest uses to detect test files.',
  566. string: true,
  567. type: 'array'
  568. },
  569. testNamePattern: {
  570. alias: 't',
  571. description: 'Run only tests with a name that matches the regex pattern.',
  572. type: 'string'
  573. },
  574. testPathIgnorePatterns: {
  575. description:
  576. 'An array of regexp pattern strings that are matched ' +
  577. 'against all test paths before executing the test. If the test path ' +
  578. 'matches any of the patterns, it will be skipped.',
  579. string: true,
  580. type: 'array'
  581. },
  582. testPathPattern: {
  583. description:
  584. 'A regexp pattern string that is matched against all tests ' +
  585. 'paths before executing the test.',
  586. string: true,
  587. type: 'array'
  588. },
  589. testRegex: {
  590. description:
  591. 'A string or array of string regexp patterns that Jest uses to detect test files.',
  592. string: true,
  593. type: 'array'
  594. },
  595. testResultsProcessor: {
  596. description:
  597. 'Allows the use of a custom results processor. ' +
  598. 'This processor must be a node module that exports ' +
  599. 'a function expecting as the first argument the result object.',
  600. type: 'string'
  601. },
  602. testRunner: {
  603. description:
  604. 'Allows to specify a custom test runner. The default is' +
  605. ' `jest-circus/runner`. A path to a custom test runner can be provided:' +
  606. ' `<rootDir>/path/to/testRunner.js`.',
  607. type: 'string'
  608. },
  609. testSequencer: {
  610. description:
  611. 'Allows to specify a custom test sequencer. The default is ' +
  612. '`@jest/test-sequencer`. A path to a custom test sequencer can be ' +
  613. 'provided: `<rootDir>/path/to/testSequencer.js`',
  614. type: 'string'
  615. },
  616. testTimeout: {
  617. description: 'This option sets the default timeouts of test cases.',
  618. type: 'number'
  619. },
  620. testURL: {
  621. description: 'This option sets the URL for the jsdom environment.',
  622. type: 'string'
  623. },
  624. timers: {
  625. description:
  626. 'Setting this value to fake allows the use of fake timers ' +
  627. 'for functions such as setTimeout.',
  628. type: 'string'
  629. },
  630. transform: {
  631. description:
  632. 'A JSON string which maps from regular expressions to paths ' +
  633. 'to transformers.',
  634. type: 'string'
  635. },
  636. transformIgnorePatterns: {
  637. description:
  638. 'An array of regexp pattern strings that are matched ' +
  639. 'against all source file paths before transformation.',
  640. string: true,
  641. type: 'array'
  642. },
  643. unmockedModulePathPatterns: {
  644. description:
  645. 'An array of regexp pattern strings that are matched ' +
  646. 'against all modules before the module loader will automatically ' +
  647. 'return a mock for them.',
  648. string: true,
  649. type: 'array'
  650. },
  651. updateSnapshot: {
  652. alias: 'u',
  653. description:
  654. 'Use this flag to re-record snapshots. ' +
  655. 'Can be used together with a test suite pattern or with ' +
  656. '`--testNamePattern` to re-record snapshot for test matching ' +
  657. 'the pattern',
  658. type: 'boolean'
  659. },
  660. useStderr: {
  661. description: 'Divert all output to stderr.',
  662. type: 'boolean'
  663. },
  664. verbose: {
  665. description:
  666. 'Display individual test results with the test suite hierarchy.',
  667. type: 'boolean'
  668. },
  669. version: {
  670. alias: 'v',
  671. description: 'Print the version and exit',
  672. type: 'boolean'
  673. },
  674. watch: {
  675. description:
  676. 'Watch files for changes and rerun tests related to ' +
  677. 'changed files. If you want to re-run all tests when a file has ' +
  678. 'changed, use the `--watchAll` option.',
  679. type: 'boolean'
  680. },
  681. watchAll: {
  682. description:
  683. 'Watch files for changes and rerun all tests. If you want ' +
  684. 'to re-run only the tests related to the changed files, use the ' +
  685. '`--watch` option.',
  686. type: 'boolean'
  687. },
  688. watchPathIgnorePatterns: {
  689. description:
  690. 'An array of regexp pattern strings that are matched ' +
  691. 'against all paths before trigger test re-run in watch mode. ' +
  692. 'If the test path matches any of the patterns, it will be skipped.',
  693. string: true,
  694. type: 'array'
  695. },
  696. watchman: {
  697. description:
  698. 'Whether to use watchman for file crawling. Disable using ' +
  699. '--no-watchman.',
  700. type: 'boolean'
  701. }
  702. };
  703. exports.options = options;