Skip to content

refactor(mock-api): centralize mock state in mock-server#36

Merged
v-byte-cpu merged 1 commit into
mainfrom
refactor/centralize-mock-api-state
Jun 6, 2026
Merged

refactor(mock-api): centralize mock state in mock-server#36
v-byte-cpu merged 1 commit into
mainfrom
refactor/centralize-mock-api-state

Conversation

@v-byte-cpu
Copy link
Copy Markdown
Collaborator

Summary

  • Replaced the manual UI mock data store with shared mock-server state backed by @msw/data
  • Added browser and Node state-store adapters plus shared mock API dependency wiring
  • Updated UI mock service adapters and tests to use the shared mock API services
  • Removed VITE_SERVICE_MODE=mock from the public env workflow while keeping explicit mock services for
    tests

Validation

  • pnpm --dir api/mock-server check
  • pnpm --dir api/mock-server test
  • pnpm --dir api/mock-server build
  • pnpm check:ui
  • pnpm test:ui

Replace the UI-only manual mock data store with the mock-server state model backed by @msw/data.

Expose browser and Node state-store adapters from the mock server package,
wire UI mock services through the shared mock API dependencies, and
keep explicit mock services available for tests. Remove the public VITE_SERVICE_MODE=mock
env workflow so local development uses the web client against the mock API server.
@v-byte-cpu v-byte-cpu merged commit b0ac00a into main Jun 6, 2026
3 checks passed
@v-byte-cpu v-byte-cpu deleted the refactor/centralize-mock-api-state branch June 6, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant