StackOverflow Questions for Tag: react-testing-library

Daniel Mydlarz
Daniel Mydlarz

Reputation: 23

React Testing Library, Component Unit Tests

Score: 1

Views: 9225

Answers: 1

Read More
physicsboy
physicsboy

Reputation: 6348

Test can't find conditional render component, disappearing too quickly

Score: 0

Views: 31

Answers: 0

Read More
Andy
Andy

Reputation: 11492

Jest + React-testing-library - wait for a mocked async function to complete

Score: 19

Views: 42484

Answers: 1

Read More
j.doe
j.doe

Reputation: 313

Vitest - How to exclude specific files and folders?

Score: 31

Views: 52719

Answers: 3

Read More
Sparkmuse
Sparkmuse

Reputation: 61

Mock react module to test error boundary for web-component

Score: 0

Views: 13

Answers: 0

Read More
stackuser
stackuser

Reputation: 307

How to access child element from parent using react testing library?

Score: 3

Views: 8647

Answers: 3

Read More
Naresh
Naresh

Reputation: 25823

react-testing-library - appending characters to an input or text area

Score: 2

Views: 2672

Answers: 1

Read More
Trinu
Trinu

Reputation: 1761

React 18 useState not updating the state after promise call in test cases

Score: 0

Views: 26

Answers: 0

Read More
Surfdaweb
Surfdaweb

Reputation: 39

Why is my jest mock only returning the value in mockReturnValue the first time it's called in my test and not the 2nd?

Score: 1

Views: 109

Answers: 1

Read More
Khushi
Khushi

Reputation: 1

React Test Error: Test suite failed to run, ReferenceError: global is not defined

Score: 0

Views: 29

Answers: 0

Read More
fernando91
fernando91

Reputation: 13

Unable to render react-tooltip v5 using React Testing Library

Score: 0

Views: 32

Answers: 1

Read More
Pablo Darde
Pablo Darde

Reputation: 6432

How to solve the "update was not wrapped in act()" warning in testing-library-react?

Score: 167

Views: 248727

Answers: 8

Read More
CodeConnoisseur
CodeConnoisseur

Reputation: 1909

Issue Setting Up babel-jest with React - Support for the experimental syntax 'jsx' isn't currently enabled

Score: 0

Views: 38

Answers: 0

Read More
Sabbir Ahmed
Sabbir Ahmed

Reputation: 1704

StatusBar does not have web implementation

Score: 2

Views: 4129

Answers: 3

Read More
James Bender
James Bender

Reputation: 1232

Need help unit testing Select from shadcn/ui

Score: 3

Views: 1951

Answers: 1

Read More
Henok Tesfaye
Henok Tesfaye

Reputation: 9570

Is it necessary to call unmount after each test cases in react testing library?

Score: 3

Views: 11690

Answers: 1

Read More
Maria Scetta
Maria Scetta

Reputation: 71

SyntaxError: Cannot use 'import.meta' outside a module when doing unite test with React + vite + ts

Score: 0

Views: 119

Answers: 0

Read More
Alex Erickson
Alex Erickson

Reputation: 53

React-Testing-Library can't find component with given role and name

Score: 4

Views: 10099

Answers: 1

Read More
klabe
klabe

Reputation: 505

react-testing-library why use test id

Score: 22

Views: 12631

Answers: 4

Read More

Configuring Jest to render a component with alias

Score: 0

Views: 25

Answers: 0

Read More
PreviousPage 2Next