From 402da46ff611b1a23af07ef0109147d62bf3b9ff Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Wed, 18 Oct 2017 18:39:36 +0900 Subject: Enable coverage for Jest (#5442) --- jest.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'jest.config.js') diff --git a/jest.config.js b/jest.config.js index dd9dadf87..50bde57e6 100644 --- a/jest.config.js +++ b/jest.config.js @@ -14,4 +14,12 @@ module.exports = { 'raf/polyfill', ], setupTestFrameworkScriptFile: '/app/javascript/mastodon/test_setup.js', + collectCoverageFrom: [ + 'app/javascript/mastodon/**/*.js', + '!app/javascript/mastodon/features/emoji/emoji_compressed.js', + '!app/javascript/mastodon/locales/locale-data/*.js', + '!app/javascript/mastodon/service_worker/entry.js', + '!app/javascript/mastodon/test_setup.js', + ], + coverageDirectory: '/coverage', }; -- cgit