Skip to content

Should we add a script load event ?  #498

Closed as not planned
Closed as not planned
@JulienKode

Description

@JulienKode

Thank you for this nice library

Currently it's possible to trigger a load event on a image:
Example:

const { getByTestId, debug } = render(<Stuff/>);

fireEvent.load(getByTestId('my-stuff'));

expect(stuff).toHaveBeenCalledWith(true);

But is there any way to do that with script ?
Should we implement it here

events: ['load', 'error'],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions