Storybook
API Mocking in Storybook with MSW: REST, GraphQL, and Play Functions
Components that fetch data are among the hardest to develop in isolation. Without a running backend, you cannot see loading states, you cannot force error conditions, and you cannot test how the UI behaves when an API returns unexpected data. Mock Service Worker (MSW) solves this by intercepting network requests