Skip to content

Conversation

@heatherKoo07
Copy link
Contributor

Current example `expect(screen.textContent).toMatch("Current value: 6");`
failed with the following error message
    expect(received).toMatch(expected)
    Matcher error: received value must be a string
    Received has value: undefined
queries like getByText should be used to work with Async APIs
like waitFor or findBy

    Current example `expect(screen.textContent).toMatch("Current value: 6");`
    failed with the following error message
        expect(received).toMatch(expected)
        Matcher error: received value must be a string
        Received has value: undefined
    queries like getByText should be used to work with Async APIs
    like waitFor or findBy
@developit
Copy link
Member

LGTM, though @marvinhagemeister knows more than I do about testing-library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants