Skip to content

Commit

Permalink
Replace Enzyme with React Testing Library (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed May 20, 2022
1 parent 73388a8 commit c03202d
Show file tree
Hide file tree
Showing 12 changed files with 561 additions and 875 deletions.
2 changes: 1 addition & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js",
"pdfjs-dist/(.*)": "pdfjs-dist/legacy/$1"
},
"setupFiles": ["jest-canvas-mock", "<rootDir>/jest.setup.js"],
"setupFilesAfterEnv": ["jest-canvas-mock", "@testing-library/jest-dom"],
"testEnvironment": "<rootDir>/jest.env.js"
}
4 changes: 0 additions & 4 deletions jest.setup.js

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.0",
"enzyme": "^3.10.0",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^12.1.0",
"eslint": "^8.5.0",
"eslint-config-wojtekmaj": "^0.6.5",
"husky": "^7.0.0",
Expand Down
Loading

0 comments on commit c03202d

Please sign in to comment.