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
The Matcher import in typings/get-queries-for-element.d.ts is incorrect.
dom-testing-library version: 2.3.1
react version: 16.3.1
node version: 8.11.1
npm (or yarn) version: 6.0.1
Relevant code or config:
The current (incorrect) code is:
import{Matcher}from'matches'
The correct import is as follows:
import{Matcher}from'./matches'
What you did:
Attempt to call ReactTesting.renderIntoDocument(...) in a foo.test.tsx file fails.
Unfortunately the code is in a private GitHub repo that can't be shared here.
What happened:
TypeScript compilation of the app fails and returns the following error message:
The Matcher import in
typings/get-queries-for-element.d.ts
is incorrect.dom-testing-library
version: 2.3.1react
version: 16.3.1node
version: 8.11.1npm
(oryarn
) version: 6.0.1Relevant code or config:
The current (incorrect) code is:
The correct import is as follows:
What you did:
Attempt to call
ReactTesting.renderIntoDocument(...)
in afoo.test.tsx
file fails.Unfortunately the code is in a private GitHub repo that can't be shared here.
What happened:
TypeScript compilation of the app fails and returns the following error message:
The text was updated successfully, but these errors were encountered: