Created
July 30, 2018 10:30
-
-
Save axelnormand/22474612007f413f6d4ee2bb537c63b3 to your computer and use it in GitHub Desktop.
React Native Storybook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Channel from '@storybook/channels'; | |
/** create mock channel so don't need websocket in jest tests */ | |
export const createMockChannel = () => { | |
const transport = { | |
setHandler: () => null, | |
send: () => null, | |
}; | |
return new Channel({ transport }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment