-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add editorconfig * Load custom babelrc in web storybook * Separate storyshots * Fix permission for CI
- Loading branch information
Showing
28 changed files
with
15,219 additions
and
61,844 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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
insert_final_newline = true |
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 |
---|---|---|
|
@@ -28,5 +28,8 @@ | |
] | ||
} | ||
} | ||
}, | ||
"env": { | ||
"jest": true | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../../.babelrc" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
|
||
import initStoryshots, { | ||
multiSnapshotWithOptions, | ||
} from '@storybook/addon-storyshots'; | ||
import 'jest-styled-components' | ||
|
||
/** | ||
* Mock methods of addon-info so that "Show Info" button don't go into snapshots. | ||
* https://github.com/storybooks/storybook/issues/1011#issuecomment-322698049 | ||
*/ | ||
jest.mock('@storybook/addon-info', () => ({ | ||
withInfo: () => storyFn => storyFn, | ||
setDefaults: () => {}, | ||
})); | ||
|
||
initStoryshots({ | ||
test: multiSnapshotWithOptions({}) | ||
}); |
Oops, something went wrong.