Skip to main content

Introduction

@zimic/interceptor is a type-safe HTTP interceptor library for handling and mocking HTTP requests in development and testing.

Status: Beta 🌱

Features

  • 🌐 HTTP interceptors

    Use your @zimic/http schema to declare local and remote HTTP interceptors. Mock external services and simulate success, loading, and error states with ease and type safety.

  • 🔗 Network-level interception

    @zimic/interceptor combines MSW and interceptor servers to handle real HTTP requests. From your application's point of view, the mocked responses are indistinguishable from the real ones.

  • 💡 Readability

    @zimic/interceptor was designed to encourage clarity and readability. Declare intuitive mocks, test with confidence, and verify that your application is making the expected requests with declarative assertions.

Learn more: