Skip to content

Document the return value of unmount #76

@jendrikw

Description

@jendrikw

I can't find anything about that. In react-testing-library it returns void (https://github.com/testing-library/react-testing-library/blob/a2d37ffa09d85b10485f29b79cf7cb4f8ec943db/types/index.d.ts#L45). In this library it returns boolean, but there's no documentation on what that means.

unmount: () => boolean

Edit: It looks like it just calls preactRender which doesn't return anything as per the preact docs, so that makes it even more confusing.

unmount: () => preactRender(null, 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