CEC-1167 ota admin portal (#127)
* Add test coverage script * Remove unnecessary check * CEC-1167 unit test and code coverage * included sonar job * updated the workflow * updated sonar properties * updated sonar properties * updated sonar properties * updated sonar properties * updated sonar properties * updated sonar properties * updated sonar properties * updated sonar properties Co-authored-by: jwu-fisker <jwu@fiskerinc.com>
This commit is contained in:
14
package.json
14
package.json
@@ -33,6 +33,7 @@
|
||||
"build:local": "env-cmd -f .env.local react-scripts build",
|
||||
"test": "env-cmd -f .env.local react-scripts test",
|
||||
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
|
||||
"test:coverage": "npm test -- --coverage --watchAll=false --no-cache",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
@@ -53,6 +54,15 @@
|
||||
"react-test-renderer": "^17.0.2"
|
||||
},
|
||||
"jest": {
|
||||
"globalSetup": "./testEnv.js"
|
||||
"globalSetup": "./testEnv.js",
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.{js,jsx,ts,tsx}"
|
||||
],
|
||||
"coverageReporters": [
|
||||
"html",
|
||||
"json",
|
||||
"lcov",
|
||||
"cobertura"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user