Stop mocking fetch
Discusses the pitfalls of mocking API clients in tests and suggests mocking `window.fetch` directly for better confidence.
Discusses the pitfalls of mocking API clients in tests and suggests mocking `window.fetch` directly for better confidence.
Explores the challenges of testing date/time functions in Python and introduces dependency injection as a solution to mock time for reliable unit tests.
A tutorial on testing GraphQL resolvers with Jest, covering authentication, error handling, and happy/sad path scenarios.
A tutorial on how to mock Firebase database and authentication features using Jest for unit testing in JavaScript/Node.js.
A guide to setting up integration tests in ASP.NET Core using Moq for mocking external dependencies like databases.
A tutorial on testing Axios API calls in Jest, including mocking requests and handling success/error cases with code examples.
A guide to mocking the JavaScript Date object in Jest for consistent testing, covering timezone configuration and mocking Date.now.
A tutorial on using Dependency Injection to mock network services in iOS View Controllers for better testability and separation of concerns.
Explains the different types of test doubles (dummies, fakes, stubs, spies) in Swift for unit testing, with code examples.
A tutorial on writing tests for Apollo Client queries and mutations in a React application using a mocked GraphQL server.
A guide to testing code that uses randomness or time by using dependency injection to make tests deterministic.
A guide to unit testing ILogger in ASP.NET Core, covering the challenge of mocking extension methods and providing practical solutions.
Explains three methods for unit testing C# code that uses HttpClient, including wrapping it with an interface for mocking.
Explains a subtle issue with mock verification order in Spock tests and provides a solution using multiple 'then' blocks.
A developer shares lessons learned from refactoring a SpringMock parser class, emphasizing behavior verification pitfalls in testing.
Explains how to use the linker's --wrap flag to mock C standard library functions for unit testing, enabling isolated code testing.
A collection of resources and credits for the "Functional Core, Reactive Shell" talk, discussing software architecture and testing.
Explains how to use FakeItEasy's auto-initialization feature to automatically inject fake dependencies in unit tests, reducing boilerplate code.
A guide to creating an auto-mocking Unity container extension using FakeItEasy to simplify unit testing with complex dependencies.
Guide to creating mocks and stubs in Swift unit tests without a mocking framework, using nested classes and dependency injection.