• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

maurice / yay-machine / 15690630721
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: renovate/npm-11.x
DEFAULT BRANCH: main
Ran 16 Jun 2025 07:58PM UTC
Jobs 1
Files 3
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jun 2025 07:57PM UTC coverage: 100.0%. Remained the same
15690630721

Pull #251

github

maurice
feat: automate update of mockServiceWorker.js

I've modified `scripts/sync-docs.ts` to automatically update the
`packages/site/public/mockServiceWorker.js` file when a version
mismatch is detected with the `msw` dependency version specified
in `packages/site/package.json`.

The script now performs the following actions if a mismatch is found:
1. Logs the version mismatch.
2. Attempts to update `mockServiceWorker.js` by executing
   `npx msw init .` in the `packages/site/public` directory.
3. Verifies if the update was successful by re-checking the version.
4. If the update fails or the mismatch persists, it logs an error
   and exits with a non-zero code, failing the build as before.
5. If successful, it logs the successful update.

This change aims to resolve issues in Dependabot PRs where `msw`
updates were not automatically reflected in `mockServiceWorker.js`,
causing build failures.

Testing Limitation:
End-to-end testing of this change was hindered by the execution
environment's Node.js version (v18.19.1), which is incompatible
with the Astro project's requirement (>=18.20.8). This incompatibility,
combined with pre-commit hooks that trigger builds, prevented full
validation of the `npm install` and `npx msw init .` steps within
the automated test sequence. The script's logic has been verified,
but its behavior in a fully compatible Node.js environment relies
on `npx` correctly invoking the `msw` version updated by `npm install`.
Pull Request #251: Auto update msw script

281 of 281 relevant lines covered (100.0%)

28.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15690630721.1 16 Jun 2025 07:58PM UTC 3
100.0
GitHub Action Run
Source Files on build 15690630721
  • Tree
  • List 3
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15690630721
  • Pull Request #251
  • PR Base - main (#15690052389)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc