Skip to content

fix(site): add tests for createMockWebSocket #19172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 7, 2025
Prev Previous commit
fix: knip
  • Loading branch information
Parkreiner committed Aug 7, 2025
commit 5f9032d09a2951c5a159a36d44c7a0e8ecbe9db2
2 changes: 1 addition & 1 deletion site/src/testHelpers/websockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type CallbackStore = {
[K in keyof WebSocketEventMap]: Set<(event: WebSocketEventMap[K]) => void>;
};

export type MockWebSocket = Omit<WebSocket, "send"> & {
type MockWebSocket = Omit<WebSocket, "send"> & {
/**
* A version of the WebSocket `send` method that has been pre-wrapped inside
* a Jest mock.
Expand Down
Loading