You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: matcher.test is not a function
at fuzzyMatches (../../node_modules/@testing-library/dom/dist/matches.js:30:20)
at ../../node_modules/@testing-library/dom/dist/queries/text.js:37:142
at Array.filter (<anonymous>)
at queryAllByText (../../node_modules/@testing-library/dom/dist/queries/text.js:37:127)
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:87:17
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at getByText (../../node_modules/@testing-library/dom/dist/query-helpers.js:106:19)
at Object.<anonymous> (src/LabelValueTable/__test__/index.spec.tsx:20:23)
Problem description:
This error message is very confusing and not helpful. This seems like a common mistake, so a more helpful error message would save everyone a lot of time.
Suggested solution:
Improve the error message to be clear.
The text was updated successfully, but these errors were encountered:
@testing-library/dom
version: 7.26.6Relevant code or config
What you did:
Accidentally passed a number to
getByText
.What happened:
Problem description:
This error message is very confusing and not helpful. This seems like a common mistake, so a more helpful error message would save everyone a lot of time.
Suggested solution:
Improve the error message to be clear.
The text was updated successfully, but these errors were encountered: