Skip to content
Navigation menu
Search
Powered by
Search
Algolia
Search
Log in
Create account
DEV Community
Close
Mocking React components with Testing Library Series' Articles
Back to Daniel Irvine 🏳️🌈's Series
Mocks aren’t evil! Better mocking with React Testing Library
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Follow
Sep 7 '20
Mocks aren’t evil! Better mocking with React Testing Library
#
javascript
#
react
#
testing
31
reactions
Comments
Add Comment
4 min read
The basic form for React component mocks
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Follow
Sep 7 '20
The basic form for React component mocks
#
javascript
#
react
#
testing
17
reactions
Comments
3
comments
6 min read
Verifying children passed to React mock components
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Follow
Sep 7 '20
Verifying children passed to React mock components
#
javascript
#
react
#
testing
13
reactions
Comments
Add Comment
3 min read
Testing multiple instances of the same mocked component
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Follow
Sep 7 '20
Testing multiple instances of the same mocked component
#
javascript
#
react
#
testing
5
reactions
Comments
Add Comment
3 min read
Staying out of trouble
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Follow
Sep 7 '20
Staying out of trouble
#
javascript
#
react
#
testing
5
reactions
Comments
Add Comment
3 min read
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account