Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const showTestPathPatternError = (testPathPattern: string) => {
clearLine(process.stdout);
console.log(
chalk.red(
` Invalid testPattern ${testPathPattern} supplied. ` +
`Running all tests instead.`,
),
);
};
onRunStart() {
if (jestUtils.isInteractive) {
jestUtils.clearLine(process.stderr);
}
}
private _log(type: LogType, message: string) {
clearLine(this._stdout);
super.log(
this._formatBuffer(type, ' '.repeat(this._groupDepth) + message),
);
}
private _logError(type: LogType, message: string) {
clearLine(this._stderr);
super.error(
this._formatBuffer(type, ' '.repeat(this._groupDepth) + message),
);
}