market/tests/unit/storyshots.test.tsx

15 lines
484 B
XML

// import initStoryshots from '@storybook/addon-storyshots'
// import { render, wait } from '@testing-library/react'
// // Stories are render-tested with @testing-library/react,
// // overwriting default snapshot testing behavior
// initStoryshots({
// asyncJest: true,
// test: async ({ story, done }) => {
// const storyElement = story.render()
// // render the story with @testing-library/react
// render(storyElement)
// await wait(() => done())
// }
// })