only-changed-jest-watch-plugin
Version:
Jest watch plugin for running either only the modified test (for TDD), or tests of dependant modules
55 lines (50 loc) • 1.31 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', {
value: true
});
const defaultQuestions = [
{
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'
},
{
initial: false,
message: 'Automatically clear mock calls and instances between every test?',
name: 'clearMocks',
type: 'confirm'
}
];
/**
* Copyright (c) 2014-present, Facebook, Inc. 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.
*
*
*/
exports.default = defaultQuestions;
const testScriptQuestion = (exports.testScriptQuestion = {
initial: true,
message:
'Would you like to use Jest when running "test" script in "package.json"?',
name: 'scripts',
type: 'confirm'
});
const typescriptQuestion = (exports.typescriptQuestion = {
initial: true,
message: 'Typescript detected, would you like to setup Jest for Typescript?',
name: 'typescript',
type: 'confirm'
});