Skip to content

v0.1.1

Choose a tag to compare

@felmonon felmonon released this 25 Mar 01:44

msw-inspector v0.1.1

First npm-ready release of @felmonon/msw-inspector, a CLI and GitHub Action for finding gaps in MSW mock coverage.

Install

npm install -D @felmonon/msw-inspector

Run

npx msw-inspector after install, or npx @felmonon/msw-inspector for one-off usage.

Highlights

  • Scan MSW handlers from http.* and legacy rest.* APIs.
  • Scan API usage from fetch, window.fetch, globalThis.fetch, and common axios call shapes.
  • Report mocked API calls, unmocked API calls, stale handlers, and unsupported dynamic patterns.
  • Emit stable JSON output with schemaVersion: 1.
  • Ship a GitHub Action that publishes job summaries and optional sticky PR comments from the JSON report.

Validation

  • npm run check
  • npm run build

Repository

https://github.com/felmonon/msw-inspector