storybook/lib/addons/src/storybook-channel-mock.ts

11 lines
189 B
TypeScript

import Channel from '@storybook/channels';
export function mockChannel() {
const transport = {
setHandler: () => {},
send: () => {},
};
return new Channel({ transport });
}