Skip to content

MSW Inspector

Actions

About

Find gaps in your MSW mock coverage
v1.0.0
Latest
Star (1)

msw-inspector-action

GitHub Action wrapper for msw-inspector coverage reports.

This repository exists so the Action can live in its own Marketplace-friendly repository. The analyzer itself stays in the main CLI repository:

Usage

Generate a JSON report with the CLI, then feed that file to the Action:

name: MSW coverage

on:
  pull_request:

jobs:
  inspect:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: npm
      - run: npm ci
      - run: npx msw-inspector --report-file msw-inspector.json --format json
      - uses: felmonon/msw-inspector-action@v1
        with:
          summary-file: msw-inspector.json
          comment: true

What It Does

  • writes a compact job summary to GITHUB_STEP_SUMMARY
  • exposes coverage and count outputs for later workflow steps
  • can create or update a sticky PR comment with unmocked calls and stale handlers

Repository Shape

This repository intentionally stays small:

  • action.yml
  • dist/index.js
  • README.md
  • LICENSE

MSW Inspector is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Find gaps in your MSW mock coverage
v1.0.0
Latest

MSW Inspector is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.