-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix `reporters` to handle string params Documentation shows reporters as `reporters [array<moduleName | [moduleName, options]>]`, the code was incorrectly handling the following cases: ``` // no `string` moduleName // _addCustomReporters(reporters: Array<ReporterConfig>) reporters: ['default', 'someother'] // _shouldAddDefaultReporters(reporters?: Array<ReporterConfig>): boolean { reporters: [['default', {}], 'someother'] ``` This fix, use the already existing `_getReporterProps` to compare `{path} === 'default'`. * Update CHANGELOG.md * Update Config.js * prettier code * prettier code * regression test - config for reporters supports `default` * Update CHANGELOG.md
- Loading branch information
1 parent
2736b9b
commit 9737621
Showing
4 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters