chore: added test coverage collection
updated the jest configuration to generate a coverage report on the entire project when tests are run. this coverage report has been added to the the gitignore file as it is not relevant to store it in the online repository. ref: N25B-114
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -22,3 +22,6 @@ dist-ssr
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
# Coverage report
|
||||
coverage
|
||||
@@ -10,5 +10,7 @@ export default {
|
||||
testMatch: ['<rootDir>/test/**/*.test.(ts|tsx)'],
|
||||
transform: {
|
||||
'^.+\\.(ts|tsx)$': ['ts-jest', { useESM: true, tsconfig: 'tsconfig.jest.json' }]
|
||||
}
|
||||
},
|
||||
collectCoverage:true,
|
||||
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,tsx,js,jsx}'],
|
||||
};
|
||||
Reference in New Issue
Block a user