UNPKG

1.37 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', {
4 value: true
5});
6exports.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 */
15const usage = 'Usage: $0 [--config=<pathToConfigFile>]';
16exports.usage = usage;
17const runtimeCLIOptions = {
18 cache: {
19 default: true,
20 description:
21 'Whether to use the preprocessor cache. Disable ' +
22 'the cache using --no-cache.',
23 type: 'boolean'
24 },
25 config: {
26 alias: 'c',
27 description: 'The path to a Jest config file.',
28 type: 'string'
29 },
30 debug: {
31 description: 'Print debugging info about your jest config.',
32 type: 'boolean'
33 },
34 version: {
35 alias: 'v',
36 description: 'Print the version and exit',
37 type: 'boolean'
38 },
39 watchman: {
40 default: true,
41 description:
42 'Whether to use watchman for file crawling. Disable using ' +
43 '--no-watchman.',
44 type: 'boolean'
45 }
46};
47const options = {
48 ...runtimeCLIOptions,
49 replname: {
50 alias: 'r',
51 description:
52 'The "name" of the file given to transformers to be ' +
53 'transformed. For example, "repl.ts" if using a TypeScript transformer.',
54 type: 'string'
55 }
56};
57exports.options = options;