Skip to content

container has Element type instead of HTMLElemet #550

@artaommahe

Description

@artaommahe

The container property, returned by render function from @testing-library/angular package has an Element type instead of HTMLElement. That triggers a type error trying to use it with logRoles that expects HTMLElement as a first argument

in angular package

  container: Element;

in core types
https://github.com/testing-library/react-testing-library/blob/590bc18a7f24e025d4154e228adda71452fdec9e/types/index.d.ts#L33

  Container extends RendererableContainer | HydrateableContainer = HTMLElement,

  container: Container

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