args.js 1.0 KB

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