diff --git a/jest.config.js b/jest.config.js index 96793eea1a..c63187a530 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,11 +1,9 @@ module.exports = { testEnvironment: 'node', coverageDirectory: './coverage/', - coveragePathIgnorePatterns: [ - '/node_modules/', - '/test/', - '/lib/builder/webpack/plugins/vue/', - '/lib/[^/]*\\.js' + collectCoverageFrom: [ + 'lib/!(app)/**', + '!lib/builder/webpack/plugins/vue/**' ], setupTestFrameworkScriptFile: './test/utils/setup', testPathIgnorePatterns: ['test/fixtures/.*/.*?/'],