Skip to content

Commit

Permalink
Install jest and react testing library
Browse files Browse the repository at this point in the history
  • Loading branch information
saisab29 committed Dec 5, 2024
1 parent 925b596 commit 970f4cd
Show file tree
Hide file tree
Showing 5 changed files with 404 additions and 117 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
"extends": [
"next/core-web-vitals",
"plugin:testing-library/react",
"plugin:jest-dom/recommended",
"next/typescript"
]
}
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const config: Config = {
// notifyMode: "failure-change",

// A preset that is used as a base for Jest's configuration
// preset: undefined,
preset: "ts-jest",

// Run tests from one or more projects
// projects: undefined,
Expand Down
2 changes: 1 addition & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import "@testing-library/jest-dom";
import "@testing-library/jest-dom/extend-expect";
Loading

0 comments on commit 970f4cd

Please sign in to comment.