Skip to content

Mock serial console websocket with MSW#2703

Merged
david-crespo merged 2 commits into
mainfrom
msw-serial
Feb 19, 2025
Merged

Mock serial console websocket with MSW#2703
david-crespo merged 2 commits into
mainfrom
msw-serial

Conversation

@david-crespo

Copy link
Copy Markdown
Collaborator

Closes #2072. Realized it was a lot easier than I thought while working on #2702.

2025-02-19-mock-serial.mp4

@vercel

vercel Bot commented Feb 19, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Feb 19, 2025 11:06pm

Comment thread vite.config.ts
: 'ws://127.0.0.1:' + (apiMode === 'msw' ? 6036 : 12220),
changeOrigin: true,
ws: true,
},

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't work unless you manually ran tools/deno/mock-serial-console.ts. Now it all just works.

@david-crespo david-crespo enabled auto-merge (squash) February 19, 2025 22:33
@david-crespo

david-crespo commented Feb 19, 2025

Copy link
Copy Markdown
Collaborator Author

lmao (from the chrome e2e failure trace)

image

@david-crespo david-crespo merged commit db94dea into main Feb 19, 2025
@david-crespo david-crespo deleted the msw-serial branch February 19, 2025 23:16
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.

Mock serial console with MSW (once they add websockets)

1 participant