---
title: "Discussion on \"Mocking APIs for frontend development: MSW vs Prism vs spec-driven mocks\" | Hashnode"
description: "Discussion on \"Mocking APIs for frontend development: MSW vs Prism vs spec-driven mocks\". MSW intercepts requests inside the browser and shines in component tests; Prism serves a spec over HTTP and validates contracts; spec-driven workspaces add journeys and streams. Here is where each belongs and how teams combine them without maintaining three sets of fixtures."
url: "https://hashnode.com/posts/mock-api-frontend-msw-vs-prism/6aca07cda1275270452da54e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mocking APIs for frontend development: MSW vs Prism vs spec-driven mocks](https://blogs.powerduck.com/mock-api-frontend-msw-vs-prism?utm_source=hashnode&utm_medium=feed)

MSW intercepts requests inside the browser and shines in component tests; Prism serves a spec over HTTP and validates contracts; spec-driven workspaces add journeys and streams. Here is where each belongs and how teams combine them without maintaining three sets of fixtures.

Sep 2 · 6 min read · blogs.powerduck.com  
Read the article

-   [#mocking](https://hashnode.com/tag/mocking)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
