Add test coverage collection script

This makes it clear to how collect basic test coverage when desired.
pull/21833/head
J. Ryan Stinnett 2021-04-28 14:17:57 +01:00
parent 4d5fd3ec73
commit 69f797eda4
1 changed files with 8 additions and 1 deletions

View File

@ -49,7 +49,8 @@
"lint:types": "tsc --noEmit --jsx react",
"lint:style": "stylelint 'res/css/**/*.scss'",
"test": "jest",
"test:e2e": "./test/end-to-end-tests/run.sh --app-url http://localhost:8080"
"test:e2e": "./test/end-to-end-tests/run.sh --app-url http://localhost:8080",
"coverage": "yarn test --coverage"
},
"dependencies": {
"@babel/runtime": "^7.12.5",
@ -188,6 +189,12 @@
},
"transformIgnorePatterns": [
"/node_modules/(?!matrix-js-sdk).+$"
],
"collectCoverageFrom": [
"<rootDir>/src/**/*.{js,ts,tsx}"
],
"coverageReporters": [
"text"
]
}
}