Skip to content

Commit 5e73947

Browse files
committed
fix: update Jest configuration to include coverage for scripts directory
- Added support for collecting coverage from test files in the scripts directory, enhancing overall test coverage. - This change improves the accuracy of coverage reports by including additional relevant files.
1 parent 50e36e9 commit 5e73947

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

jest.config.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ module.exports = {
1818
reporters: CI
1919
? [['github-actions', { silent: false }], 'summary']
2020
: ['default', 'summary'],
21-
collectCoverageFrom: ['<rootDir>/src/**/*.{cjs,js,mjs,ts}'],
21+
collectCoverageFrom: [
22+
'<rootDir>/src/**/*.{cjs,js,mjs,ts}',
23+
'<rootDir>/scripts/**/*.{cjs,js,mjs}'
24+
],
2225
coveragePathIgnorePatterns: [
2326
'<rootDir>/node_modules/',
2427
'<rootDir>/.server',

0 commit comments

Comments
 (0)