How to use the @jest/reporters.DefaultReporter function in @jest/reporters

To help you get started, we’ve selected a few @jest/reporters examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / just / scripts / jest-reporter.js View on Github external
const DefaultReporter = require('@jest/reporters').DefaultReporter;

/**
 * The purpose of this custom reporter is to prevent Jest from logging to stderr
 * when there are no errors.
 */
class JestReporter extends DefaultReporter {
  log(message) {
    process.stdout.write(message + '\n');
  }
}

module.exports = JestReporter;

@jest/reporters

Jest's reporters

MIT
Latest version published 8 months ago

Package Health Score

87 / 100
Full package analysis

Similar packages