Compare commits

...

2 Commits

Author SHA1 Message Date
3998d43041 Adds jest env var setup
Some checks failed
gitea-deepak/gog_frontend/pipeline/head There was a failure building this commit
2021-01-18 17:56:22 -06:00
d680d16a76 Adds more info to jest coverage 2021-01-18 17:55:56 -06:00
2 changed files with 11 additions and 1 deletions

1
jest/setEnvVars.js Normal file
View File

@@ -0,0 +1 @@
process.env.API_ROOT = "http://localhost:8080/";

View File

@@ -10,6 +10,9 @@
"name": "Deepak Mallubhotla"
},
"jest": {
"setupFiles": [
"<rootDir>/jest/setEnvVars.js"
],
"reporters": [
"default",
"jest-junit"
@@ -17,7 +20,13 @@
"coverageReporters": [
"text",
"cobertura"
]
],
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/src/**/*.jsx",
"!<rootDir>/src/**/*.test.jsx"
],
"coverageProvider": "babel"
},
"private": "true",
"license": "ISC",