args.js 1.0 KB

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