Last active
April 13, 2020 22:19
-
-
Save daedalius/3b1b28b11a1458a8017ee31a4f310c41 to your computer and use it in GitHub Desktop.
Cypress + Storybook. #1
This file contains hidden or 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 React from 'react'; | |
import Datepicker from './Datepicker.jsx'; | |
export default { | |
component: Datepicker, | |
title: 'Datepicker', | |
}; | |
export const emptyStory = () => { | |
// Reference to retrieve it in Cypress during the test | |
window.Datepicker = Datepicker; | |
// Just a mount point | |
return ( | |
<div id="component-test-mount-point"></div> | |
) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment