mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
enable collectCoverage and codecov
This commit is contained in:
parent
25a587544c
commit
34c1cad8cc
@ -62,7 +62,7 @@ jobs:
|
|||||||
at: ~/project
|
at: ~/project
|
||||||
- run:
|
- run:
|
||||||
name: Test
|
name: Test
|
||||||
command: yarn test:unit
|
command: yarn test:unit && yarn coverage
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV: "test"
|
- NODE_ENV: "test"
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ jobs:
|
|||||||
at: ~/project
|
at: ~/project
|
||||||
- run:
|
- run:
|
||||||
name: Test (e2e)
|
name: Test (e2e)
|
||||||
command: yarn test:e2e
|
command: yarn test:e2e && yarn coverage
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV: "test"
|
- NODE_ENV: "test"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
'testEnvironment': 'node',
|
testEnvironment: 'node',
|
||||||
'coverageDirectory': './coverage/',
|
coverageDirectory: './coverage/',
|
||||||
'setupTestFrameworkScriptFile': './test/utils/setup'
|
collectCoverage: true,
|
||||||
|
setupTestFrameworkScriptFile: './test/utils/setup'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user