@testing-library/react version: 10.4.7 - Testing Framework and version: Jest 26.0.1 / Typescript 4.0.2
- DOM Environment: "@testing-library/jest-dom": "^5.11.1",
Relevant code or config:
Hi! I'm new to Typescript so I might just be doing this wrong, but when I converted my test with the following code to Typescript:
fireEvent( document, createEvent( 'newalert', document, { detail: { body: 'This will appear for one second.', type: 'info', timeout: 1000, }, }, { EventType: 'CustomEvent' } ) I get the following error with CreateEvent:
This expression is not callable. Type 'CreateObject' has no call signatures.