args.js
1 'use strict'; 2 3 Object.defineProperty(exports, '__esModule', { 4 value: true 5 }); 6 exports.options = exports.usage = void 0; 7 8 /** 9 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. 10 * 11 * This source code is licensed under the MIT license found in the 12 * LICENSE file in the root directory of this source tree. 13 */ 14 const usage = 'Usage: $0 [--config=<pathToConfigFile>] <file>'; 15 exports.usage = usage; 16 const options = { 17 cache: { 18 default: true, 19 description: 20 'Whether to use the preprocessor cache. Disable ' + 21 'the cache using --no-cache.', 22 type: 'boolean' 23 }, 24 config: { 25 alias: 'c', 26 description: 'The path to a Jest config file.', 27 type: 'string' 28 }, 29 debug: { 30 description: 'Print debugging info about your jest config.', 31 type: 'boolean' 32 }, 33 version: { 34 alias: 'v', 35 description: 'Print the version and exit', 36 type: 'boolean' 37 }, 38 watchman: { 39 default: true, 40 description: 41 'Whether to use watchman for file crawling. Disable using ' + 42 '--no-watchman.', 43 type: 'boolean' 44 } 45 }; 46 exports.options = options;