Skip to content

Typescript fails in extend-expect.d.ts #1534

Closed
@erheron

Description

@erheron

Describe the bug

We use Typescript in our project. We do not have skipLibCheck enabled.
After installation of RNTL v 12.4.0 and following RNTL Docs on installation it turns out that Typescript fails in RNTL's node_modules/@testing-library/react-native/src/matchers/extend-expect.d.ts file.

Expected behavior

Typescript does not fail

Steps to Reproduce

Here's a reproduction repo: https://github.com/erheron/rntl-1534-repro

Screenshots

image

Versions

npmPackages:
    @testing-library/react-native: ^12.4.0 => 12.4.0
    react: 18.2.0 => 18.2.0
    react-native: ^0.72.7 => 0.72.7
    react-test-renderer: 18.2.0 => 18.2.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