From f2535d120dc6b94022224e17d92faf1a6b5d529c Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 24 Jan 2022 13:18:54 -0500 Subject: [PATCH] [not verified] js-test-runner: Add WorDBless dir to jest collectCoverageFrom (#22472) 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. --- tools/js-test-runner/jest-config/default.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/js-test-runner/jest-config/default.config.js b/tools/js-test-runner/jest-config/default.config.js index aa1774a79e75f..226c956d2b52c 100644 --- a/tools/js-test-runner/jest-config/default.config.js +++ b/tools/js-test-runner/jest-config/default.config.js @@ -32,6 +32,8 @@ const defaultConfig = { '**/*.{js,jsx}', '!**/node_modules/**', '!**/vendor/**', + '!**/jetpack_vendor/**', + '!**/wordpress/**', // WorDBless. '!**/__tests__/**', '!**/coverage/**', '!test-main.{js,jsx}',