-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
コンポーネントのストーリごとにファイルを __snapshots__ フォルダを作成するように修正 storybookjs/storybook#3483 storybookjs/storybook#887
- Loading branch information
1 parent
2928ade
commit d7fe446
Showing
5 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
declare module 'storybook-addon-smart-knobs'; | ||
declare module 'react-stubber'; | ||
declare module 'jest-styled-components/src/styleSheetSerializer'; | ||
declare module 'jest-specific-snapshot'; |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import initStoryshots from '@storybook/addon-storyshots'; | ||
import initStoryshots, { | ||
multiSnapshotWithOptions, | ||
} from '@storybook/addon-storyshots'; | ||
import { setStubbingMode } from 'react-stubber'; | ||
import 'jest-styled-components'; | ||
import styleSheetSerializer from 'jest-styled-components/src/styleSheetSerializer'; | ||
import { addSerializer } from 'jest-specific-snapshot'; | ||
|
||
setStubbingMode(true); | ||
|
||
initStoryshots({}); | ||
addSerializer(styleSheetSerializer); | ||
|
||
initStoryshots({ | ||
test: multiSnapshotWithOptions({}), | ||
}); |
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