Skip to content

Angular Testing Library with combination of HappyDom instead of JSDOM #440

@jarekcimoch

Description

@jarekcimoch

Hello, I'm using HappyDom instead of JSDOM and I have following issue.

when I do something like
await screen.findByText(optionLabel);

observer.observe is not a function TypeError: observer.observe is not a function

at C:\Ohpen\cloned-2\mfes-broker-app-angular\src\node_modules\@testing-library\dom\dist\wait-for.js:96:16

HappyDom is supporting MutationObserver and I guess JSDOM was not out of the box hance some logic there is used.
Could it be fixed? Or can I fix it somehow myself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions