Top "Enzyme" questions

Unit test library for React.

Could not find declaration file for enzyme-adapter-react-16?

I've been using Enzyme to test components in my React application for some time. After updating my packages for the …

reactjs typescript testing enzyme
How to pass context down to the Enzyme mount method to test component which includes Material UI component?

I am trying to use mount from Enzyme to test my component in which a several Material UI component are …

material-ui enzyme
Jest / Enzyme - How to test at different viewports?

I am trying to run a test on a component at a certain viewport width. I am doing the following, …

jestjs viewport enzyme
Trouble testing button onClick handler with Enzyme

I am having trouble using Enzyme's contains method when it comes to a button's onClick handler where the provided action …

reactjs jestjs enzyme styled-components react-boilerplate
Checkbox is not `checked` after simulate `change` with enzyme

I tried to use enzyme to simulate change event on a checkbox, and use chai-enzyme to assert if it's been …

reactjs checkbox simulate enzyme chai-enzyme
How do you mock a react component with Jest that has props?

There has got to be a simple way to do this, but I can't find documented syntax anywhere. I have …

reactjs unit-testing jestjs enzyme
Test React component method is calling function pass as a prop

I want to test that when calling a method from a React component it trigger a function pass to the …

reactjs testing enzyme jest
Testing changes to React component state and spying on instance methods using enzyme

I am working on a wrapper component for smoothly loading images in React. I use enzyme with mocha, chai and …

javascript reactjs sinon enzyme chai-enzyme
ReferenceError: You are trying to `import` a file after the Jest environment has been torn down

I have a component that makes use of Animated component from react native. I started writing a test case to …

javascript reactjs react-native jestjs enzyme
React testing component prop change with enzyme

I am modifying an example found here: https://github.com/airbnb/enzyme/blob/master/docs/api/ReactWrapper/setProps.md class …

javascript reactjs jasmine reactjs-testutils enzyme