StackOverflow Questions for Tag: react-testing-library

amdev
amdev

Reputation: 7460

Module '"@testing-library/react"' has no exported member 'waitFor'

Score: 5

Views: 11876

Answers: 4

Read More
karvai
karvai

Reputation: 1787

Unable to add a wrapper function using test library

Score: 0

Views: 37

Answers: 0

Read More
Karan Kumar
Karan Kumar

Reputation: 3186

React Testing Library - Unable to find the element with data-testid

Score: 50

Views: 124502

Answers: 6

Read More
Nycki
Nycki

Reputation: 970

With React Testing Library and Jest, how do I assert that text does not visibly exist?

Score: 2

Views: 2278

Answers: 2

Read More
Petar Petrov
Petar Petrov

Reputation: 21

Vitest with React Testing Library: Unexpected Component Rendering Between Tests despite Cleanup

Score: 2

Views: 3386

Answers: 2

Read More
Joe
Joe

Reputation: 427

When do I need to use act() when tests cause react state updates

Score: 3

Views: 791

Answers: 1

Read More
Ruby
Ruby

Reputation: 2949

Using "React Testing library" - How to wrap all my test component with providers

Score: 7

Views: 5757

Answers: 2

Read More
Admir Husić
Admir Husić

Reputation: 61

Cannot find module when running test in Jest

Score: 0

Views: 36

Answers: 0

Read More
Chor
Chor

Reputation: 991

How to test asynchronous state update using zustand and jest?

Score: 0

Views: 120

Answers: 1

Read More
Chris
Chris

Reputation: 3

How to load content from CDN using react testing library

Score: 0

Views: 24

Answers: 0

Read More
Hasham Minhas
Hasham Minhas

Reputation: 508

How can I mock render the headless UI component in react testing?

Score: 2

Views: 1607

Answers: 1

Read More
Gerald Hoxha
Gerald Hoxha

Reputation: 49

How to get the elements from a table after all components are rendered?

Score: 4

Views: 20105

Answers: 2

Read More
Doraemoe
Doraemoe

Reputation: 301

How to test jsoneditor in react component

Score: 1

Views: 1307

Answers: 0

Read More
Sugirthan
Sugirthan

Reputation: 11

React Testing Library/ Jest Dom (Custom Matcher) not..toBeDisabled() and .toBeEnabled (does not work as expected)

Score: 1

Views: 36

Answers: 0

Read More

TypeError: Cannot read properties of undefined (reading 'unsubscribe') with react hook form and React latest version in RTL test cases

Score: 0

Views: 66

Answers: 1

Read More
user19448827
user19448827

Reputation: 245

Jest test - useFormStatus is not a function

Score: 2

Views: 765

Answers: 2

Read More
NAVEED
NAVEED

Reputation: 127

React Router Outlet Not Rendering in Nested Routes While Testing with React Testing Library After Upgrading to v7

Score: 1

Views: 297

Answers: 1

Read More
Eric Lehmann
Eric Lehmann

Reputation: 341

When using Jest-Cucumber with Jest and React Testing Library I get ReferenceError: _react1 is not defined

Score: 0

Views: 37

Answers: 0

Read More
Ismoil Shokirov
Ismoil Shokirov

Reputation: 3031

What's the difference between getByText vs findByText vs queryByText in testing-library?

Score: 31

Views: 27810

Answers: 1

Read More
navid
navid

Reputation: 343

React Testing Library waitForElementToBeRemoved not work truely

Score: 4

Views: 6576

Answers: 1

Read More
PreviousPage 3Next