How to test Firebase with Jest
A tutorial on how to mock Firebase database and authentication features using Jest for unit testing in JavaScript/Node.js.
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.
Explains techniques for writing deterministic PHPUnit tests by removing dependencies on random functions like mt_rand() and date().
Explains why common Ruby unit tests are flawed and demonstrates proper unit testing with mocks and stubs for isolation.
A technical guide on mocking UIKit delegate protocols, specifically UIAlertViewDelegate, using the Kiwi testing framework in Objective-C.
A developer shares a specific issue encountered while using the FakeItEasy mocking framework in a CQRS-based .NET project.