From 8a5109349fddd7ee18e12c49216c7166d4eaf0e6 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Tue, 7 Apr 2020 17:17:51 -0400 Subject: [PATCH] Updated jest code coverage configuration. (#7144) --- jest.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index 6b964120e..566841722 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,8 +1,9 @@ module.exports = { collectCoverageFrom: [ - 'app/javascript/src/**/*.{js,jsx}', + 'app/javascript/**/*.{js,jsx}', // This exclusion avoids running coverage on Barrel files, https://twitter.com/housecor/status/981558704708472832 - '!app/javascript/src/**/components/**/index.js', + '!app/javascript/**/index.js', + '!app/javascript/packs/**/*.js', // avoids running coverage on webpacker pack files '!**/__tests__/**', '!**/__stories__/**', ],