UNPKG

1.25 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', {
4 value: true
5});
6exports.testScriptQuestion = exports.default = 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 */
14const 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];
44var _default = defaultQuestions;
45exports.default = _default;
46const 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};
53exports.testScriptQuestion = testScriptQuestion;