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.
Static attributes have been the source of much confusion over the years. Their deprecation will come with a rubocop-rspec Cop to automatically replace with dynamic attributes.
Understanding why we use factories helps us write faster, more readable tests.