diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-05-11 13:22:46 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-05-11 13:23:05 +0300 |
commit | ac9477f9e863bc57c73e530b428fc4960685fb68 (patch) | |
tree | c328884b9ec64d63e0aa0709150d01fdd8f21263 /jest.config.js | |
parent | 5b4e1a7a2bd355a4380bd93cbded3fa0d7e7a311 (diff) |
Output jest coverage to console
Add config option for Jest to scan all source files when reporting
coverage.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js index b98e9334e..8caefe709 100644 --- a/jest.config.js +++ b/jest.config.js @@ -30,6 +30,9 @@ module.exports = { '<rootDir>/src/test-setup.js', 'jest-mock-console/dist/setupTestFramework.js', ], + collectCoverageFrom: [ + '<rootDir>/src/**/*.{js,vue}', + ], transform: { // process `*.js` files with `babel-jest` '.*\\.(js)$': 'babel-jest', |