It looks as though this may have been added as a convenience, but it prevents tests from being run on components that have a legitimate onHandler prop.
Ideally only the underscored events, as per the docs, would be replaced with Svelte's internal directives and handlers. Everything else would be treated as a legitimate property to the component.
It looks as though this may have been added as a convenience, but it prevents tests from being run on components that have a legitimate
onHandler
prop.e.g.
With the replacement at https://github.com/kenoxa/svelte-jsx/blob/main/src/jsx-runtime.js#L49 one can't pass
onSubmit
down toForm
- it'll always be replaced withon:submit
.Ideally only the underscored events, as per the docs, would be replaced with Svelte's internal directives and handlers. Everything else would be treated as a legitimate property to the component.