StackOverflow Questions for Tag: react-testing-library

onouv
onouv

Reputation: 610

React: Cannot enter a value while testing NumericFormat embedded in Controller

Score: 0

Views: 25

Answers: 0

Read More
user2190690
user2190690

Reputation: 2044

React Testing Library: When to use userEvent.click and when to use fireEvent

Score: 84

Views: 98591

Answers: 4

Read More
Beau Smith
Beau Smith

Reputation: 34367

How to query by text string which contains html tags using React Testing Library?

Score: 115

Views: 163320

Answers: 9

Read More
magrega
magrega

Reputation: 178

A wall of red errors when testing MUI Datagrid

Score: -1

Views: 79

Answers: 1

Read More

I can't run jest snapshot tests because im constantly getting the ''Warning: Invalid hook call."

Score: 0

Views: 24

Answers: 1

Read More
eugenekr
eugenekr

Reputation: 6602

How to search by data-test? (not data-testid)

Score: 7

Views: 12435

Answers: 3

Read More
Renato N_
Renato N_

Reputation: 159

Vitest mocking: TypeError: window.URL.createObjectURL is not a function

Score: 1

Views: 2462

Answers: 2

Read More
Josh Busley
Josh Busley

Reputation: 1

Testing different environment variables

Score: 0

Views: 48

Answers: 0

Read More
MLyck
MLyck

Reputation: 5775

The current testing environment is not configured to support act(...) - @testing-library/react

Score: 47

Views: 32578

Answers: 7

Read More
Leo Messi
Leo Messi

Reputation: 6186

Change a state value in a React testing library

Score: 0

Views: 11081

Answers: 1

Read More
Rob Sanders
Rob Sanders

Reputation: 5367

React testing library on change for Material UI Select component

Score: 89

Views: 104039

Answers: 17

Read More
Nick
Nick

Reputation: 2948

Purpose of Act wrapper inside fireEvents

Score: 0

Views: 30

Answers: 0

Read More
Sandhya
Sandhya

Reputation: 541

How to write jest test case for drag and drop file in react?

Score: 2

Views: 7605

Answers: 3

Read More
Prajwal Kulkarni
Prajwal Kulkarni

Reputation: 1705

Error: Vitest failed to access its internal state

Score: 1

Views: 456

Answers: 0

Read More
Jacobdo
Jacobdo

Reputation: 2021

React 18.3 causes a lot of `act` warnings in tests

Score: 2

Views: 72

Answers: 0

Read More
Cristian Flórez
Cristian Flórez

Reputation: 2801

Found multiple elements error in React Testing Library

Score: 47

Views: 96471

Answers: 7

Read More
Tawfik Tn
Tawfik Tn

Reputation: 31

Jest Failed after upgrading : _jestWatcher(...).TestWatcher is not a constructor

Score: 3

Views: 994

Answers: 1

Read More
Sahil M.
Sahil M.

Reputation: 146

React Unit Test Not Able to Find an Element with Using Async Act

Score: 0

Views: 34

Answers: 1

Read More
olore
olore

Reputation: 4857

How can I test the content in ag-grid using testing-library?

Score: 10

Views: 14831

Answers: 2

Read More
KARTHIKEYAN.A
KARTHIKEYAN.A

Reputation: 20118

createRoot(...): Target container is not a DOM element in React Test file

Score: 5

Views: 10068

Answers: 1

Read More
PreviousPage 4Next