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.
factory_girl is becoming factory_bot.
Your test suite used to be lightning fast but now it’s starting to feel a bit sluggish. Before adding CI parallelization, let’s see if there’s any clutter to remove.
We’re experimenting with running feature specs using Chrome’s new headless mode. How do we set it up, and how does it compare to Capybara-WebKit?