- Added code coverage

This commit is contained in:
Ferdi Koomen 2020-01-12 00:02:12 +01:00
parent b166cb7267
commit 30c2da411c
3 changed files with 10 additions and 3 deletions

View File

@ -22,4 +22,4 @@ jobs:
command: yarn build
- run:
name: test
command: yarn test
command: yarn test:coverage

View File

@ -3,4 +3,4 @@ node_js:
- node
script:
- npm run build
- npm run test
- npm run test:coverage

View File

@ -1,4 +1,11 @@
module.exports = {
testRegex: '\\.spec\\.(ts|js)$',
testEnvironment: 'node'
testEnvironment: 'node',
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/templates/**',
'!**/node_modules/**',
]
};