Skip to content

Commit

Permalink
Add userEvent package.
Browse files Browse the repository at this point in the history
@testing-library/user-event has a peerDep for @testing-library/dom
but it's a different version than the one that @testing-library/react
uses and brings in as a devDep. Solution based on research on GitHub
shows we can either ignore the warning in pnpm or install the
@testing-library/dom as devDep in the version that @testing-library/react
uses it. I did the latter hoping that in one of the next versions of
@testing-library/user-event this will be resolved.

see
testing-library/user-event#438 (comment)
testing-library/user-event#551 (comment)
  • Loading branch information
programmiri committed Oct 27, 2022
1 parent 8e856a9 commit ef0df45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coral/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
"zod": "^3.19.1"
},
"devDependencies": {
"@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.2.0",
"@types/lodash": "^4.14.186",
"@types/node": "*",
Expand Down
13 changes: 13 additions & 0 deletions coral/pnpm-lock.yaml

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

0 comments on commit ef0df45

Please sign in to comment.