How to test custom React hooks
A guide on testing custom React hooks, using a useUndo hook as a practical example to demonstrate effective testing strategies.
A guide on testing custom React hooks, using a useUndo hook as a practical example to demonstrate effective testing strategies.
A tutorial series on setting up testing libraries and writing unit, integration, and E2E tests for React components.
A tutorial on setting up and using Enzyme with Jest for unit and integration testing of React components.
The author argues against using shallow rendering for React component testing, explaining its pitfalls and advocating for better alternatives.
A guide on achieving test isolation in React components to improve test reliability and prevent shared mutable state issues.
Introducing react-testing-library, a lightweight React testing utility that encourages testing components like a user would.