Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "reporters: ['default']" config #3562

Merged
merged 1 commit into from
May 16, 2017
Merged

Conversation

Met48
Copy link
Contributor

@Met48 Met48 commented May 12, 2017

Summary

Fixes a "cannot find module" error when the reporters config includes the string "default" (the documented way to keep the default reporters enabled).

Test plan

Added new test.

@codecov-io
Copy link

Codecov Report

Merging #3562 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3562   +/-   ##
=======================================
  Coverage   62.39%   62.39%           
=======================================
  Files         181      181           
  Lines        6646     6646           
  Branches        6        6           
=======================================
  Hits         4147     4147           
  Misses       2496     2496           
  Partials        3        3
Impacted Files Coverage Δ
packages/jest-cli/src/TestRunner.js 30.28% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b157c3...23e3687. Read the comment docs.

Copy link
Collaborator

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DmitriiAbramov anything to add?

@@ -329,7 +329,7 @@ class TestRunner {

_addCustomReporters(reporters: Array<ReporterConfig>) {
const customReporters = reporters.filter(
reporter => reporter !== 'default',
reporterConfig => reporterConfig[0] !== 'default',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uuu, too bad Flow can't catch comparisons like that :/

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants