In a project we recently started using userEvent instead of fireEvent but now we are getting this issue
FAIL src/modules/DashboardHeader/index.test.tsx
● Test suite failed to run
Cannot find module '@testing-library/dom' from 'node_modules/@testing-library/user-event/dist/click.js'
Require stack:
node_modules/@testing-library/user-event/dist/click.js
node_modules/@testing-library/user-event/dist/index.js
src/modules/DashboardHeader/index.test.tsx
5 |
6 |
> 7 | import userEvent from '@testing-library/user-event';