-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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', |
There was a problem hiding this comment.
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 :/
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. |
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.