Skip to content

Commit

Permalink
Jest Types and React Testing Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
meziyum committed Mar 8, 2024
1 parent 12d7c16 commit 6f9a43b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
"plugin:@typescript-eslint/recommended",
"google"
],
"overrides": [],
"overrides": [
{
"files": ["tests/**/*"],
"env": {
"jest": true
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
Expand Down
44 changes: 43 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"babel-loader": "^9.1.3",
Expand Down Expand Up @@ -61,6 +62,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.17.0",
"react-select": "^5.7.7"
"react-select": "^5.7.7",
"react-test-renderer": "^18.2.0"
}
}

0 comments on commit 6f9a43b

Please sign in to comment.