Repository navigation
jest: Fix coverage for wp-build stuff - #50782
Conversation
When people added the various wp-build `routes/`, `packages/`, and such, they didn't notice that the tests weren't recording coverage for them. Add these dirs to `tools/js-tools/jest/config.coverage.js`, since wp-build usage is spreading quickly in the monorepo. Also, update `tools/cli/skeletons/packages/.gitattributes` with the correct set of dirs.
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage Summary46 files are newly checked for coverage. Only the first 5 are listed here.
Full summary · PHP report · JS report If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
Closes MONOREP-890
Proposed changes
When people added the various wp-build
routes/,packages/, and such, they didn't notice that the tests weren't recording coverage for them.Add these dirs to
tools/js-tools/jest/config.coverage.js, since wp-build usage is spreading quickly in the monorepo.Also, update
tools/cli/skeletons/packages/.gitattributeswith the correct set of dirs.Related product discussion/links
#50770 (comment)
Does this pull request change what data or activity we track or use?
No
Testing instructions