changing the submit event type from SubmitEvent to just Event increases jsdom compatibility to versions less than 21.x
Currently, folks running tests in jest with the latest jest-environment-jsdom will get ^20.0.0 which doesn't have SubmitEvent implemented. Having SubmitEvent would force an npm package override to jsdom ^21 which shouldn't really be necessary. IMO when jest-environment-jsdom updates we could change back to SubmitEvent as a patch bump again.
changing the submit event type from
SubmitEvent
to justEvent
increases jsdom compatibility to versions less than 21.xCurrently, folks running tests in
jest
with the latestjest-environment-jsdom
will get^20.0.0
which doesn't haveSubmitEvent
implemented. HavingSubmitEvent
would force an npm package override to jsdom^21
which shouldn't really be necessary. IMO whenjest-environment-jsdom
updates we could change back toSubmitEvent
as a patch bump again.