Skip to content Skip to sidebar Skip to footer
Showing posts with the label Enzyme

Can't Get Jest To Work With Styled Components Which Contain Theming

The Problem I've been using Jest and Enzyme to write tests for my React components build with t… Read more Can't Get Jest To Work With Styled Components Which Contain Theming

Jest Test Fails With Refs And Form

I have a search bar component which looks like: render () { const { onChangeTextInput } = thi… Read more Jest Test Fails With Refs And Form

Enzyme Wrapper.find(..).simulate Keypress Doesnt Trigger Event Listener

I am trying to press enter on one of the input boxes. Doing it manually triggers the event listener… Read more Enzyme Wrapper.find(..).simulate Keypress Doesnt Trigger Event Listener

Testing Debounced Function In React Component With Jest And Enzyme

I am testing a React component using Jest and Enzyme, and am having difficulty testing that a debou… Read more Testing Debounced Function In React Component With Jest And Enzyme

How To Traverse A Shallow Component Nested In Themeprovider Hoc?

Following up the issue on Github, I have a component Comp that when exported, is wrapped with injec… Read more How To Traverse A Shallow Component Nested In Themeprovider Hoc?

How Can Enzyme Check For Component Visibility?

I've attached a cut down version of an issue I am having. I have a simple Checkbox which I hide… Read more How Can Enzyme Check For Component Visibility?