Closed
Description
dom-testing-library
version: 3.12.0react
version: 16.7.0-alpha.0node
version: 0.13.0npm
(oryarn
) version: 1.12.1
Relevant code or config:
fireEvent.click(container.querySelector('.backButton')!);
What you did:
Tried to trigger a click on a result of querySelector
.
What happened:
Typescript complained (did not build).
Reproduction:
Any typescript project with the line above should produce the issue.
Problem description:
It disallows code that is perfectly valid.
Suggested solution:
Allow events to accept Element
.