-
Some ideas from functional programming can help us improve the unit tests for our object-oriented code.
-
The thoughtbot team shares what Product Strategy ideas stood out to them from this years INDUSTRYconf.
-
Learn how to write tests so they’re easy to read and your colleagues will thank you.
-
We have just released Fishery, a TypeScript-compatible library for setting up JavaScript objects for use in tests and anywhere else you need to set up data.
-
We can always make our test suite more DRY. But should we?
-
When faking external services in tests, start with something simple. I like having a public interface to adapters and having an in-memory adapter for tests. Let me show you an example.
-
Because who doesn’t like a good ole mystery?
-
Mocking in Jest can be tricky. Mocking React Components in Jest with ES modules can be even tricker. Yet, it’s still possible.
-
Explore a combination of mocking, faking, and dependency injection to focus on the code being tested.
-
Pointers for doing TDD with React using Apollo and TypeScript.
Sign up to receive a weekly recap from thoughtbot