aboutsummaryrefslogtreecommitdiff
path: root/node_modules/jest-cli/build/init/questions.js
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.h.kronqvist@gmail.com>2022-03-05 19:02:27 +0200
committerJoel Kronqvist <joel.h.kronqvist@gmail.com>2022-03-05 19:02:27 +0200
commit5d309ff52cd399a6b71968a6b9a70c8ac0b98981 (patch)
tree360f7eb50f956e2367ef38fa1fc6ac7ac5258042 /node_modules/jest-cli/build/init/questions.js
parentb500a50f1b97d93c98b36ed9a980f8188d648147 (diff)
downloadLYLLRuoka-5d309ff52cd399a6b71968a6b9a70c8ac0b98981.tar.gz
LYLLRuoka-5d309ff52cd399a6b71968a6b9a70c8ac0b98981.zip
Added node_modules for the updating to work properly.
Diffstat (limited to 'node_modules/jest-cli/build/init/questions.js')
-rw-r--r--node_modules/jest-cli/build/init/questions.js76
1 files changed, 76 insertions, 0 deletions
diff --git a/node_modules/jest-cli/build/init/questions.js b/node_modules/jest-cli/build/init/questions.js
new file mode 100644
index 0000000..42fc582
--- /dev/null
+++ b/node_modules/jest-cli/build/init/questions.js
@@ -0,0 +1,76 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', {
+ value: true
+});
+exports.testScriptQuestion = exports.default = void 0;
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+const defaultQuestions = [
+ {
+ initial: false,
+ message: 'Would you like to use Typescript for the configuration file?',
+ name: 'useTypescript',
+ type: 'confirm'
+ },
+ {
+ choices: [
+ {
+ title: 'node',
+ value: 'node'
+ },
+ {
+ title: 'jsdom (browser-like)',
+ value: 'jsdom'
+ }
+ ],
+ initial: 0,
+ message: 'Choose the test environment that will be used for testing',
+ name: 'environment',
+ type: 'select'
+ },
+ {
+ initial: false,
+ message: 'Do you want Jest to add coverage reports?',
+ name: 'coverage',
+ type: 'confirm'
+ },
+ {
+ choices: [
+ {
+ title: 'v8',
+ value: 'v8'
+ },
+ {
+ title: 'babel',
+ value: 'babel'
+ }
+ ],
+ initial: 0,
+ message: 'Which provider should be used to instrument code for coverage?',
+ name: 'coverageProvider',
+ type: 'select'
+ },
+ {
+ initial: false,
+ message:
+ 'Automatically clear mock calls, instances and results before every test?',
+ name: 'clearMocks',
+ type: 'confirm'
+ }
+];
+var _default = defaultQuestions;
+exports.default = _default;
+const testScriptQuestion = {
+ initial: true,
+ message:
+ 'Would you like to use Jest when running "test" script in "package.json"?',
+ name: 'scripts',
+ type: 'confirm'
+};
+exports.testScriptQuestion = testScriptQuestion;