1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', {
|
4 | value: true
|
5 | });
|
6 | exports.default = getNoTestFoundFailed;
|
7 | function _chalk() {
|
8 | const data = _interopRequireDefault(require('chalk'));
|
9 | _chalk = function () {
|
10 | return data;
|
11 | };
|
12 | return data;
|
13 | }
|
14 | function _jestUtil() {
|
15 | const data = require('jest-util');
|
16 | _jestUtil = function () {
|
17 | return data;
|
18 | };
|
19 | return data;
|
20 | }
|
21 | function _interopRequireDefault(obj) {
|
22 | return obj && obj.__esModule ? obj : {default: obj};
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | function getNoTestFoundFailed(globalConfig) {
|
32 | let msg = _chalk().default.bold('No failed test found.');
|
33 | if (_jestUtil().isInteractive) {
|
34 | msg += _chalk().default.dim(
|
35 | `\n${
|
36 | globalConfig.watch
|
37 | ? 'Press `f` to quit "only failed tests" mode.'
|
38 | : 'Run Jest without `--onlyFailures` or with `--all` to run all tests.'
|
39 | }`
|
40 | );
|
41 | }
|
42 | return msg;
|
43 | }
|