StackOverflow Questions for Tag: jest-dom

Daniel V.
Daniel V.

Reputation: 341

Jest's setupFilesAfterEnv setupFile doesn't get read by VSCode IDE unless it's actually open

Score: 1

Views: 776

Answers: 2

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: 43

Answers: 0

Read More
onouv
onouv

Reputation: 610

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

Score: 0

Views: 26

Answers: 0

Read More
Barbu
Barbu

Reputation: 5

The CSS file is not taken into account in the tests of my custom library

Score: 0

Views: 158

Answers: 1

Read More
Akkadaya
Akkadaya

Reputation: 21

Test pollution with `toHaveStyle`

Score: 0

Views: 66

Answers: 0

Read More
Naresh
Naresh

Reputation: 25823

How to mock navigator.clipboard.writeText() in Jest?

Score: 57

Views: 44948

Answers: 5

Read More
xaunlopez
xaunlopez

Reputation: 398

Property 'toBeInTheDocument' does not exist on type 'Matchers<HTMLElement>'

Score: 3

Views: 3225

Answers: 2

Read More
Vijay P R
Vijay P R

Reputation: 1192

Mock animate function in react-testing-library / jest

Score: 3

Views: 1796

Answers: 2

Read More
theabrar
theabrar

Reputation: 450

Why do I get the error "Received value must be an HTMLElement or an SVGElement" when using react-native?

Score: 27

Views: 72850

Answers: 3

Read More
joaovitorfelix
joaovitorfelix

Reputation: 83

Not being able to test hover styles with jest-dom and styled components

Score: 0

Views: 915

Answers: 0

Read More
Frederick Duffield
Frederick Duffield

Reputation: 143

Making assertions with mocha and chai when using react-testing-library?

Score: 7

Views: 2378

Answers: 2

Read More
UndisclosedCurtain
UndisclosedCurtain

Reputation: 173

How can i write a test using React Testing Library to check if hover changes the components style?

Score: 9

Views: 23452

Answers: 1

Read More
xzegga
xzegga

Reputation: 3149

Echarts problem with vitest and react-testing-libraries

Score: 1

Views: 806

Answers: 0

Read More
Unapedra
Unapedra

Reputation: 2403

React + Jest: test hangs forever whenever I try to access DOM properties (i.e.: toHaveStyle)

Score: 1

Views: 2275

Answers: 1

Read More
theodore
theodore

Reputation: 25

Jest-dom TypeError: $toString is not a function , Typescript, React, Next.js

Score: 1

Views: 1618

Answers: 2

Read More
Ihor Zagoruyko
Ihor Zagoruyko

Reputation: 3

"Unresolved function or method toHaveValue()" and "Argument types do not match parameters" warnings | WebStorm

Score: 0

Views: 1280

Answers: 1

Read More
Julio
Julio

Reputation: 169

Jest-dom give the error "TypeError: expect(...).toHaveStyle is not a function"

Score: 10

Views: 20769

Answers: 6

Read More
maximalism
maximalism

Reputation: 91

Reasons to use getBy* in conjunction with toBeInTheDocument

Score: 3

Views: 704

Answers: 1

Read More
dave
dave

Reputation: 31

Trouble testing React component render with Jest and Testing-Library because there's no Document available to Jest

Score: 3

Views: 3521

Answers: 2

Read More
Luís Soares
Luís Soares

Reputation: 6222

How to use jest-dom as standalone in a webpage?

Score: 0

Views: 221

Answers: 1

Read More
PreviousPage 1Next