mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 05:51:48 +08:00
Fixed function signature
This commit is contained in:
parent
c7953db73a
commit
cead5bfaf5
@ -120,7 +120,7 @@ You might use `getScreenshotOptions` to specify options for screenshot. Will be
|
|||||||
```js
|
```js
|
||||||
import initStoryshots from '@storybook/addon-storyshots';
|
import initStoryshots from '@storybook/addon-storyshots';
|
||||||
import { imageSnapshot } from '@storybook/addon-storyshots-puppeteer';
|
import { imageSnapshot } from '@storybook/addon-storyshots-puppeteer';
|
||||||
const getScreenshotOptions = ({context, url}) {
|
const getScreenshotOptions = ({context, url}) => {
|
||||||
return {
|
return {
|
||||||
fullPage: false // Do not take the full page screenshot. Default is 'true' in Storyshots.
|
fullPage: false // Do not take the full page screenshot. Default is 'true' in Storyshots.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user