args.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.options = exports.usage = 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 usage = 'Usage: $0 [--config=<pathToConfigFile>] <file>';
  13. exports.usage = usage;
  14. const options = {
  15. cache: {
  16. default: true,
  17. description:
  18. 'Whether to use the preprocessor cache. Disable ' +
  19. 'the cache using --no-cache.',
  20. type: 'boolean'
  21. },
  22. config: {
  23. alias: 'c',
  24. description: 'The path to a Jest config file.',
  25. type: 'string'
  26. },
  27. debug: {
  28. description: 'Print debugging info about your jest config.',
  29. type: 'boolean'
  30. },
  31. version: {
  32. alias: 'v',
  33. description: 'Print the version and exit',
  34. type: 'boolean'
  35. },
  36. watchman: {
  37. default: true,
  38. description:
  39. 'Whether to use watchman for file crawling. Disable using ' +
  40. '--no-watchman.',
  41. type: 'boolean'
  42. }
  43. };
  44. exports.options = options;