How to use the @jest/reporters/build/get_result_header.default 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 mozilla / addons-frontend / tests / jest-reporters / fingers-crossed.js View on Github external
printTestFileHeader(testPath, config, result) {
    this.log(getResultHeader(result, this._globalConfig, config));

    const consoleBuffer = result.console;
    const testFailed = result.numFailingTests > 0;

    if (testFailed && consoleBuffer && consoleBuffer.length) {
      // prettier-ignore
      this.log(
        `  ${TITLE_BULLET}Console\n\n${getConsoleOutput(
          config.cwd,
          !!this._globalConfig.verbose,
          consoleBuffer
        )}`
      );
    }
  }
}
github Khan / wonder-blocks / config / jest / log-on-fail-reporter.js View on Github external
printTestFileHeader(testPath, config, result) {
        this.log(getResultHeader(result, this._globalConfig, config));

        const consoleBuffer = result.console;
        const testFailed = result.numFailingTests > 0;

        if (testFailed && consoleBuffer && consoleBuffer.length) {
            // prettier-ignore
            this.log(
        `  ${TITLE_BULLET}Console\n\n${getConsoleOutput(
          config.cwd,
          !!this._globalConfig.verbose,
          consoleBuffer
        )}`
      );
        }
    }
}

@jest/reporters

Jest's reporters

MIT
Latest version published 1 year ago

Package Health Score

82 / 100
Full package analysis

Similar packages