Skip to content

v0.1.3

Choose a tag to compare

@felmonon felmonon released this 25 Mar 02:13

msw-inspector v0.1.3

Installable npm release for the MSW mock coverage analyzer.

Install

npm install -D msw-inspector-cli

The package is published as msw-inspector-cli because msw-inspector is already taken on npm. The installed CLI binary remains msw-inspector.

Run

  • npx msw-inspector after install
  • npx msw-inspector-cli 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