Add the below packages in package.json and do npm install
"@testing-library/dom": "^10.4.0", "@testing-library/user-event": "^13.5.0"