Commit 82d53e87 authored by Jaakko Pallari's avatar Jaakko Pallari 🌜
Browse files

Code coverage

parent 67dfa172
Pipeline #222837872 passed with stages
in 6 minutes and 1 second
node_modules/
\ No newline at end of file
node_modules/
coverage/
\ No newline at end of file
......@@ -57,6 +57,9 @@ test-js:
extends: .node-cache
script:
- npm run test
artifacts:
reports:
cobertura: coverage/cobertura-coverage.xml
lint-js:
stage: test
......
......@@ -22,7 +22,7 @@
"jest": "^26.0.1"
},
"scripts": {
"test": "jest",
"test": "jest --coverage",
"lint": "eslint web/*.js bin/*.js"
},
"repository": {
......@@ -30,5 +30,11 @@
"url": "https://gitlab.com/lepovirta/kuvia.git"
},
"author": "Jaakko Pallari",
"license": "BSD-2-Clause"
"license": "BSD-2-Clause",
"jest": {
"coverageReporters": [
"text",
"cobertura"
]
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment