Skip to content

[1.6.1] Cannot read property 'toString' of null #135

Closed
@wKovacs64

Description

@wKovacs64

Versions

  • Expo v32.0.0
  • jest-expo v32.0.0
  • React v16.5.0
  • NativeBase v2.12.1
  • react-native-testing-library v1.6.1
  • react-test-renderer v16.8.4
  • OS: multiple

Description

As of v1.6.1, I am receiving the following error when trying to test a NativeBase Picker using getByText (the same tests pass in v1.6.0):

Currently the only supported library to search by text is "react-native".

Cannot read property 'toString' of null

This only seems to happen when there are multiple tests.

Reproducible Demo

https://github.com/wKovacs64/rntl-161-repro

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