Change websocket mock from empty object to empty class (#3998)

This commit is contained in:
mahmed2000
2024-11-08 19:43:41 +00:00
committed by GitHub
parent 4d68c7b561
commit d31d2948c3

View File

@@ -41,7 +41,7 @@ export default meta;
// mock the Websocket to prevent ani webhook calls from being made in storybook
// @ts-ignore
window.WebSocket = () => {};
window.WebSocket = class {};
type StateInitializer = (mutableState: MutableSnapshot) => void;