mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
15 lines
451 B
TypeScript
15 lines
451 B
TypeScript
|
import initStoryshots from '@storybook/addon-storyshots'
|
||
|
import { render, waitFor } 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 waitFor(() => done())
|
||
|
}
|
||
|
})
|