1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', {
|
4 | value: true
|
5 | });
|
6 | exports.options = exports.usage = void 0;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | const usage = 'Usage: $0 [--config=<pathToConfigFile>]';
|
16 | exports.usage = usage;
|
17 | const 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 | };
|
47 | const 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 | };
|
57 | exports.options = options;
|