1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', {
|
4 | value: true
|
5 | });
|
6 | exports.testScriptQuestion = exports.default = void 0;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | const defaultQuestions = [
|
15 | {
|
16 | choices: [
|
17 | {
|
18 | title: 'node',
|
19 | value: 'node'
|
20 | },
|
21 | {
|
22 | title: 'jsdom (browser-like)',
|
23 | value: 'jsdom'
|
24 | }
|
25 | ],
|
26 | initial: 0,
|
27 | message: 'Choose the test environment that will be used for testing',
|
28 | name: 'environment',
|
29 | type: 'select'
|
30 | },
|
31 | {
|
32 | initial: false,
|
33 | message: 'Do you want Jest to add coverage reports?',
|
34 | name: 'coverage',
|
35 | type: 'confirm'
|
36 | },
|
37 | {
|
38 | initial: false,
|
39 | message: 'Automatically clear mock calls and instances between every test?',
|
40 | name: 'clearMocks',
|
41 | type: 'confirm'
|
42 | }
|
43 | ];
|
44 | var _default = defaultQuestions;
|
45 | exports.default = _default;
|
46 | const testScriptQuestion = {
|
47 | initial: true,
|
48 | message:
|
49 | 'Would you like to use Jest when running "test" script in "package.json"?',
|
50 | name: 'scripts',
|
51 | type: 'confirm'
|
52 | };
|
53 | exports.testScriptQuestion = testScriptQuestion;
|