Merge pull request #5937 from matrix-org/jryans/coverage

Add test coverage collection script
pull/21833/head
J. Ryan Stinnett 2021-04-28 17:34:05 +01:00 committed by GitHub
commit 4554124771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
/*.log
package-lock.json
/coverage
/node_modules
/lib

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"
]
}
}