This commit is contained in:
dbroqua 2020-02-11 21:16:25 +01:00
parent 4ea05a1de2
commit c2571cb40d
3 changed files with 6 additions and 5 deletions

View File

@ -21,8 +21,8 @@ testing:
script:
- yarn install
- ./node_modules/.bin/sequelize db:migrate
- yarn test --ci --collectCoverage=true
coverage: /All files\s*\|\s*([\d\.]+)/
- yarn test --ci --collectCoverage=true --coverage
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
artifacts:
paths:
- junit.xml

View File

@ -11,7 +11,7 @@ services:
./node_modules/.bin/sequelize db:migrate:undo:all &&
./node_modules/.bin/sequelize db:migrate &&
./node_modules/.bin/sequelize db:seed:all &&
yarn test --ci --collectCoverage=true"
yarn test --ci --coverage"
volumes:
- ./:/home/node/app
- /home/node/node_modules

View File

@ -47,10 +47,11 @@
"setupFilesAfterEnv": [
"<rootDir>/test/utils/setup.js"
],
"collectCoverage": true,
"coverageReporters": [
"text",
"html",
"cobertura",
"jest-junit"
"cobertura"
],
"reporters": [
"default",