Skip to content

fix: store README example, dev port hint, vitest coverage, api-drift cache - #614

Open
fn-ripe wants to merge 1 commit into
Refract-Protocol:mainfrom
fn-ripe:fix/issues-558-559-562-563
Open

fn-ripe wants to merge 1 commit into
Refract-Protocol:mainfrom
fn-ripe:fix/issues-558-559-562-563

Conversation

@fn-ripe

@fn-ripe fn-ripe commented Nov 25, 2026

Copy link
Copy Markdown

Summary

Test plan

  • npm run dev on a machine where port 3000 is free: no warning, Next.js starts normally
  • npm run dev with something else on port 3000: warning line printed before Next.js output
  • npm run test -- --coverage completes and includes src/lib/realtime/testing in the report
  • node scripts/api-check-drift.mjs cold run creates .api-drift-cache/<key>.d.ts
  • Second run with unchanged spec: no subprocess, exits quickly
  • Touch openapi/refract-api.yaml; re-run: subprocess runs again with new cache key
  • Import from @/lib/store resolves to createAppStore and useStoreSelector as the README example shows

Closes #558
Closes #559
Closes #562
Closes #563

🤖 Generated with Claude Code

…cache

- Refract-Protocol#558: add correct createAppStore / useStoreSelector usage example to
  src/lib/store/README.md, importing from the barrel (@/lib/store) not
  the internal module
- Refract-Protocol#559: add scripts/dev.mjs wrapper that warns when port 3000 is busy
  so contributors see the actual URL instead of a stale tab; update
  package.json "dev" script to call it
- Refract-Protocol#562: add v8 coverage config to vitest.config.mts; exclude test setup
  and stories but keep src/lib/realtime/testing in coverage
- Refract-Protocol#563: add mtime-keyed on-disk cache (.api-drift-cache/) to
  scripts/api-check-drift.mjs so repeated invocations skip the
  openapi-typescript subprocess when the spec has not changed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Nov 25, 2026

Copy link
Copy Markdown

@fn-ripe Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants