Introducing Mentoss: The fetch mocker
Introduces Mentoss, a new JavaScript library designed to mock fetch() requests for testing, focusing on developer experience and documentation.
Introduces Mentoss, a new JavaScript library designed to mock fetch() requests for testing, focusing on developer experience and documentation.
A guide to creating an auto-mocking tool for iOS development to save time on writing repetitive test code.
A guide to using SwiftyMocky, a mocking framework for Swift, to simplify unit testing by creating mocks for dependencies.
A quick reference guide for developers transitioning from the Moq mocking library to NSubstitute, covering syntax comparisons.
Explains the advantages of creating custom fakes for unit testing in C#/.NET instead of relying on third-party mocking libraries like Moq.
Explains the new TimeProvider abstraction in .NET 8 for mocking and controlling time in tests, making time-dependent code easier to test.
Exploring an alternative approach to mocking Spring Data repositories using Dynamic Proxies for in-memory testing implementations.
A comprehensive guide to unit testing and mocking in the NestJS framework, covering best practices, examples, and CI/CD integration.
A guide on integrating zod-fixture with Mock Service Worker (MSW) to automatically generate mocked API responses for frontend development and testing.
Explains the 'Don't Mock What You Don't Own' testing principle, discussing why you should avoid mocking third-party dependencies and offering alternatives.
Explores mocking REST APIs using the API-first approach with Mockoon, an OpenAPI-compliant tool for parallel development and testing.
Explores using functions instead of protocols for dependency injection in Swift, with examples for mocking and testing.
Key takeaways from a GraphQL schema design course, covering mocking, naming conventions, nullable fields, and schema evolution.
A tutorial on using a JavaScript fake API with mock data to build a React frontend when a backend isn't available.
A tutorial on using Jest to test class methods, including spying on instances and prototypes to verify method calls.
A guide on integrating the Mock Service Worker (MSW) library into an Angular project for seamless API mocking during development and testing.
A guide on mocking Axios HTTP calls in Jest tests without external packages, including code structure and coverage tips.
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.