getNoTestFoundFailed.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = getNoTestFoundFailed;
  6. function _chalk() {
  7. const data = _interopRequireDefault(require('chalk'));
  8. _chalk = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _jestUtil() {
  14. const data = require('jest-util');
  15. _jestUtil = function () {
  16. return data;
  17. };
  18. return data;
  19. }
  20. function _interopRequireDefault(obj) {
  21. return obj && obj.__esModule ? obj : {default: obj};
  22. }
  23. /**
  24. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  25. *
  26. * This source code is licensed under the MIT license found in the
  27. * LICENSE file in the root directory of this source tree.
  28. */
  29. function getNoTestFoundFailed(globalConfig) {
  30. let msg = _chalk().default.bold('No failed test found.');
  31. if (_jestUtil().isInteractive) {
  32. msg += _chalk().default.dim(
  33. '\n' +
  34. (globalConfig.watch
  35. ? 'Press `f` to quit "only failed tests" mode.'
  36. : 'Run Jest without `--onlyFailures` or with `--all` to run all tests.')
  37. );
  38. }
  39. return msg;
  40. }