Skip to content

[TestUtils] Simulate.<event> doesn't set the synthetic event type #6100

@quantizor

Description

@quantizor

SyntheticEvent.type is undefined when received by the handler. Or the nativeEvent type for that matter.

Needs to be added in here somewhere:

var event = new SyntheticEvent(

I realize that it's not sustainable to have to set all the possible fields for a simulated event, but the type at least makes sense for verification that you're getting the right sort of event.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions