Skip to content

Commit

Permalink
added configs for both jest and craco to use
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Nov 10, 2023
1 parent c4880ca commit 90609a9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 36 additions & 0 deletions frontend/app/jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"collectCoverage": true,
"collectCoverageFrom": [
"./src/components/**/*.js",
"./src/helpers/**/*.ts",
"./src/leaderboard/**/*.ts",
"./src/pages/**/*.ts",
"./src/people/**/*.ts",
"./src/tribes/**/*.ts"
],
"coverageThreshold": {
"global": {
"lines": 0
},
"./src/people/utils/": {
"lines": 0
},
"./src/helpers/": {
"lines": 66
}
},
"moduleFileExtensions": [
"ts",
"js",
"json",
"node"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"globals": {
"window": { "location": {"host": "localhost"}},
"testEnvironment": "jsdom"

}
}
36 changes: 0 additions & 36 deletions frontend/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,41 +194,5 @@
"react-error-overlay": "6.0.9",
"ts-jest": "^29.1.1",
"typescript": "^5.0.3"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"./src/components/**/*.js",
"./src/helpers/**/*.ts",
"./src/leaderboard/**/*.ts",
"./src/pages/**/*.ts",
"./src/people/**/*.ts",
"./src/tribes/**/*.ts"
],
"coverageThreshold": {
"global": {
"lines": 0
},
"./src/people/utils/": {
"lines": 0
},
"./src/helpers/": {
"lines": 66
}
},
"moduleFileExtensions": [
"ts",
"js",
"json",
"node"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"globals": {
"window": { "location": {"host": "localhost"}},
"testEnvironment": "jsdom"

}
}
}

0 comments on commit 90609a9

Please sign in to comment.