---
title: Testing Framework
slug: features/testing-framework
icon: flask-vial
description: E2E testing with fixtures, custom matchers, and interceptors
keywords: ['frontmcp', 'mcp', 'model context protocol', 'features', 'framework', 'testing', 'test framework', 'typescript']
---

`@frontmcp/testing` provides a complete end-to-end testing framework for MCP servers. Write tests that spin up your server, call tools, and assert on results — all with type-safe fixtures and custom matchers.

<CardGroup cols={2}>
  <Card title="Testing Overview" icon="flask-vial" href="/frontmcp/testing/overview">
    Complete testing guide with installation and configuration
  </Card>
  <Card title="Fixtures" icon="wrench" href="/frontmcp/testing/fixtures">
    Test server setup and teardown with Playwright-inspired fixtures
  </Card>
  <Card title="Custom Matchers" icon="check" href="/frontmcp/testing/matchers">
    All available Jest matchers (`toBeSuccessful`, `toBeXssSafe`, etc.)
  </Card>
  <Card title="Interceptors" icon="shield-check" href="/frontmcp/testing/interceptors">
    Mock providers and simulate failure scenarios
  </Card>
</CardGroup>
