зеркало из https://github.com/nextcloud/spreed.git
Output jest coverage to console
Add config option for Jest to scan all source files when reporting coverage. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
Родитель
5b4e1a7a2b
Коммит
ac9477f9e8
|
@ -27,4 +27,4 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Run jest
|
||||
run: npm run test:unit
|
||||
run: npm run test:coverage
|
||||
|
|
|
@ -30,6 +30,9 @@ module.exports = {
|
|||
'<rootDir>/src/test-setup.js',
|
||||
'jest-mock-console/dist/setupTestFramework.js',
|
||||
],
|
||||
collectCoverageFrom: [
|
||||
'<rootDir>/src/**/*.{js,vue}',
|
||||
],
|
||||
transform: {
|
||||
// process `*.js` files with `babel-jest`
|
||||
'.*\\.(js)$': 'babel-jest',
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"scripts": {
|
||||
"build": "NODE_ENV=production webpack --progress --config webpack.prod.js",
|
||||
"test:unit": "TZ=UTC vue-cli-service test:unit",
|
||||
"test:coverage": "TZ=UTC vue-cli-service test:unit --coverage",
|
||||
"test:watch": "TZ=UTC vue-cli-service test:unit --watchAll",
|
||||
"lint": "eslint --ext .js,.vue src",
|
||||
"dev": "NODE_ENV=development webpack --config webpack.dev.js",
|
||||
|
|
Загрузка…
Ссылка в новой задаче