Skip to content
Navigation menu
Search
Search
Log in
Create account
DEV Community
Close
DEV Community
is a community of 848,284 amazing developers
We're a place where coders share, stay up-to-date and grow their careers.
Create account
Log in
Home
Listings
Podcasts
Videos
Tags
FAQ
Forem Shop
Sponsors
About
Contact
Other
Code of Conduct
Privacy Policy
Terms of use
Twitter
Facebook
Github
Instagram
Twitch
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
Reactions
28
reactions
Comments
Add Comment
4 min read
Save
Saved
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
Reactions
13
reactions
Comments
3
comments
6 min read
Save
Saved
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
Reactions
11
reactions
Comments
Add Comment
3 min read
Save
Saved
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
Reactions
4
reactions
Comments
Add Comment
3 min read
Save
Saved
Staying out of trouble
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Daniel Irvine 🏳️🌈
Follow
Sep 7 '20
Staying out of trouble
#
javascript
#
react
#
testing
Reactions
5
reactions
Comments
Add Comment
3 min read
Save
Saved
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account