only-changed-jest-watch-plugin
Version:
Jest watch plugin for running either only the modified test (for TDD), or tests of dependant modules
48 lines (38 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.remove = exports.print = undefined;
var _jestUtil;
function _load_jestUtil() {
return (_jestUtil = require('jest-util'));
}
var _chalk;
function _load_chalk() {
return (_chalk = _interopRequireDefault(require('chalk')));
}
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
/**
* 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.
*
*
*/
const print = (exports.print = stream => {
if ((_jestUtil || _load_jestUtil()).isInteractive) {
stream.write(
(_chalk || _load_chalk()).default.bold.dim(
'Determining test suites to run...'
)
);
}
});
const remove = (exports.remove = stream => {
if ((_jestUtil || _load_jestUtil()).isInteractive) {
(0, (_jestUtil || _load_jestUtil()).clearLine)(stream);
}
});