Skip to content

Commit

Permalink
jest: fix missing files in code coverage report (wikimedia-gadgets#1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae authored Jan 22, 2023
1 parent ca7dc8b commit feb6e7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
module.exports = {
testMatch: ['**/tests/morebits*.js', '**/tests/twinkle*.js'],
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['mock-mediawiki', '<rootDir>/tests/jest.setup.js']
setupFilesAfterEnv: ['mock-mediawiki', '<rootDir>/tests/jest.setup.js'],
collectCoverageFrom: [
'morebits.js',
'twinkle.js',
'modules/**/*.{js,jsx,ts,tsx}'
]
};

0 comments on commit feb6e7e

Please sign in to comment.