Skip to content

Cannot read properties of undefined (reading '__H') #20

Open
@pitis

Description

@pitis

Hey there guys, I am trying to test some of my custom hooks that work in prod, but don't work with @testing-library/preact-hooks.

I am trying to write some unit tests where I check the height of a banner. Initially I used jest, but now I'm using vitest, which has an API almost identical to jest.

All the tests pass besides the ones on the custom hooks. This seems like a package issue.

Thanks!

image

Stack Info:
Preact: 10.11.3
Vite: 4.0.0
Vitest: 0.27.0
@testing-library/preact-hooks: 1.1.0

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