mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
fix: Prevent storybook from making websocket connections (#2896)
* feat: mock window.WebSocket to prevent WS calls from Main layout story * Prettified Code! --------- Co-authored-by: Pranav2612000 <Pranav2612000@users.noreply.github.com>
This commit is contained in:
parent
14277c15dd
commit
cbdf0bd401
@ -36,6 +36,10 @@ export default {
|
||||
},
|
||||
} satisfies ComponentMeta<typeof Main>;
|
||||
|
||||
// mock the Websocket to prevent ani webhook calls from being made in storybook
|
||||
// @ts-ignore
|
||||
window.WebSocket = () => {};
|
||||
|
||||
type StateInitializer = (mutableState: MutableSnapshot) => void;
|
||||
|
||||
const composeStateInitializers =
|
||||
|
Loading…
x
Reference in New Issue
Block a user