jest-standard-reporter
Version:
Jest reporter that uses stdout for messages and stderr for errors
13 lines (9 loc) • 362 B
JavaScript
const path = require('path');
const chalk = require('chalk');
const slash = require('slash');
const relativePath = require('./relativePath');
const formatTestPath = (config, testPath) => {
const { dirname, basename } = relativePath(config, testPath);
return slash(chalk.dim(dirname + path.sep) + chalk.bold(basename));
};
module.exports = formatTestPath;