Skip to content

Commit

Permalink
js-test-runner: Add WorDBless dir to jest collectCoverageFrom (#22472)
Browse files Browse the repository at this point in the history
The coverage report started taking an extra 10 minutes after
packages/my-jetpack added JS tests because it was reporting coverage for
all of WordPress that was brought in via WorDBless. Exclude that by
default.

Also exclude the `jetpack_vendor/` directory from
packages/composer-plugin for good measure.
  • Loading branch information
anomiex authored Jan 24, 2022
1 parent 0e0bfe1 commit eee7003
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/js-test-runner/jest-config/default.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const defaultConfig = {
'**/*.{js,jsx}',
'!**/node_modules/**',
'!**/vendor/**',
'!**/jetpack_vendor/**',
'!**/wordpress/**', // WorDBless.
'!**/__tests__/**',
'!**/coverage/**',
'!test-main.{js,jsx}',
Expand Down

0 comments on commit eee7003

Please sign in to comment.