-
Notifications
You must be signed in to change notification settings - Fork 1.1k
render wrapper error TS2769: No overload matches this call #972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That is still the issue with 12.1.2. |
@eps1lon : just in case you have missed the last comment above, this error still can be reproduced with |
Thanks for the repro. This is something we'll have to fix in |
Have you managed to make some progress on this issue? We are still getting it after upgrading. These are the relevant dependencies:
As in the description above, we've declared the
Which makes TS throw the issue:
|
This issue was fixed as of import * as React from 'react';
import { render, screen } from '@testing-library/react';
import {MemoryRouter as Router} from 'react-router-dom';
function Whatever() {
return null;
}
render(<Whatever />, {wrapper: Router}); If the issue persists please include a cloneable repository reproducing this issue. You may have to upgrade |
In 18.2.0, I have the same Issue... |
@testing-library/react
version: 12.1.1Relevant code or config:
What you did:
Use
Router
aswrapper
.What happened:
typescript compile error.
Problem description:
The text was updated successfully, but these errors were encountered: