dom-testing-library version: 3.12.0
react version: 16.7.0-alpha.0
node version: 0.13.0
npm (or yarn) 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.