{ All snippets }

Tweetsnippet is a curated list of tips and tricks from Twitter.

Jason McCreary

Jason McCreary @gonedark

⚗️ Whenever I generate test data, I like to explicitly set values which could change behavior, even if they are currently defaulted with the same value. The future brings change and resolving such a failure can be hard. https://t.co/d030JfKbJO

Kent C. Dodds 🧢

Kent C. Dodds 🧢 @kentcdodds

🔥 Put this in your jest test setup file: afterEach(() => { jest.clearAllMocks() }) Helps ensure your tests are properly isolated.