UNPKG

1.06 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', {
4 value: true
5});
6exports.default = getNoTestFoundFailed;
7function _chalk() {
8 const data = _interopRequireDefault(require('chalk'));
9 _chalk = function () {
10 return data;
11 };
12 return data;
13}
14function _jestUtil() {
15 const data = require('jest-util');
16 _jestUtil = function () {
17 return data;
18 };
19 return data;
20}
21function _interopRequireDefault(obj) {
22 return obj && obj.__esModule ? obj : {default: obj};
23}
24/**
25 * Copyright (c) Meta Platforms, Inc. and affiliates.
26 *
27 * This source code is licensed under the MIT license found in the
28 * LICENSE file in the root directory of this source tree.
29 */
30
31function 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}