-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Custom reporter integration #3064
Closed
Closed
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
98d01b5
add custom reporters option in TestRunner
abdulhannanali 1215c0b
add reporters option in jest-cli config
abdulhannanali b3196ac
add flowtype for reporters option
abdulhannanali 44f6550
add key for reporters in validConfig
abdulhannanali aa548c9
add noDefaultReporters option
abdulhannanali 268a640
Lint
abdulhannanali e79ae0c
add unit tests for _addCustomReporters
abdulhannanali 2ee53ce
separate default reporters in method in TestRunner
abdulhannanali 073d6e9
add tests for errors which are thrown
abdulhannanali 6a430de
add tests for .noDefaultReporters
abdulhannanali 329df49
Merge branch 'master' into reporter-config
abdulhannanali 7cc7aea
modify Error thrown for _addCustomReporters
abdulhannanali 138bec3
remove superfluous comment from TestRunner.js
abdulhannanali 6da8dad
remove reporter tests from TestRunner-test.js
abdulhannanali 352380b
add new custom reporters format in TestRunner.js
abdulhannanali 1a5ac39
update the format for adding customReporter
abdulhannanali 124ee97
Merge branch 'master' into reporter-config
abdulhannanali d067e59
add descriptive validations for reporters
abdulhannanali 302b672
add reporters attibute in normalize.js
abdulhannanali a9e9fce
add prettier to types
abdulhannanali 31b51e3
Seperate out ReporterDispatcher in a file
abdulhannanali 75e39d1
add elaborate messages for errors
abdulhannanali 12e5382
add Facebook Copyright header to ReporterDispatcher.js
abdulhannanali 08bd0cf
typecheck and lint properly
abdulhannanali 8bf1bb8
correcting a condition in ReporterDispatcher
abdulhannanali 06e7103
rename method to `_shouldAddDefaultReporters`
abdulhannanali 32dcff4
add integration tests for custom_reporters
abdulhannanali 45656ad
add more complete integration tests for reporters
abdulhannanali 15abe4e
remove AggregatedResults.js
abdulhannanali 76ebadb
remove any methods to be validated
abdulhannanali e158496
correct _addDefaultReporters call
abdulhannanali 80c88db
remove "reporters" validations from TestRunner.js
abdulhannanali 4a33e50
add pretty validations for custom reporters
abdulhannanali 352f219
remove comment
abdulhannanali 03c2045
add reporter validation in normalize.js
abdulhannanali 8dd5ef3
keep comments precise remove unwanted
abdulhannanali 27c5533
check if reporters exist before validation
abdulhannanali cebb62e
pretty custom reporters
abdulhannanali e36d442
prettier integration_tests
abdulhannanali 593040c
prettier
abdulhannanali c94c993
yarn prettier
abdulhannanali fc8a4d3
prettier
abdulhannanali cfdcccf
Remove unnecessary comments from TestRunner.js
abdulhannanali 552d0e2
make ReporterConfig type in types/Config simpler
abdulhannanali 7d903c9
remove comments
abdulhannanali 1aa5d54
correct types and change method signatures
abdulhannanali 599c6ed
remove bug from reporterValidationErrors.js
abdulhannanali b5aa966
make custom_reporters tests more concise
abdulhannanali d1cf92e
fix lint error in website
abdulhannanali 23a7610
finalize types for reporters
abdulhannanali dd2d652
yarn prettier
abdulhannanali 33640be
remove .vscode folder
abdulhannanali 937a3c9
all integration_tests are prettier now
abdulhannanali 6dc65fb
Merge branch 'master' into reporter-config
abdulhannanali 492e0de
remove validateReporters call
abdulhannanali 8c486e7
remove usage of \t in reporter validation errors
abdulhannanali e328f93
change spread operator with usage of .apply
abdulhannanali bfad068
modify custom_reporters integration_tests to suit node 4
abdulhannanali f4ed436
prettier validations
abdulhannanali 3b154d2
Merge remote-tracking branch 'remotes/upstream/master' into reporter-…
abdulhannanali f6fa7bb
prettier :heart:
abdulhannanali 9ac6de0
pretty lint
abdulhannanali e093125
update lock file
abdulhannanali File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Lint
- Loading branch information
commit 268a64015be859ec09f3f12849d3a6c46242cc45
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@thymikee Would appreciate some feedback from you on this. There was
ValidationError
being thrown but after a certain number of tries when I added a sample reporters file here, it stopped throwing the error. Shouldn't adding it totypes/Config.js
be sufficeThere 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.
nope,
types/Config.js
holds types for Flow (which is stripped with babel for runtime).jest-validate
checks for actual valid JS object, which in our case isvalidConfig.js
.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.
Cool makes sense thanks