Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Tried to setup Storyshots and failed #116

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ThemeProvider } from 'styled-components';
import { theme } from '../src';

import '@fontsource/lato/300.css';
/**import '@fontsource/lato/300.css';
import '@fontsource/lato/400.css';
import '@fontsource/lato/700.css';
import '@fontsource/roboto-mono/400.css';
import '@fontsource/roboto-mono/400.css';**/

export const decorators = [
(Story) => (
Expand Down
5 changes: 5 additions & 0 deletions .storybook/storyshots.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import initStoryshots from '@storybook/addon-storyshots';

describe('', () => {
initStoryshots();
});
4 changes: 4 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ export default {
collectCoverageFrom: ['**/src/**/*.{js,jsx,ts,tsx}', '!**/src/types/**'],
moduleNameMapper: {
'^@(.+)$': ['<rootDir>/node_modules/$0', '<rootDir>/src/$1']
},
transform: {
'^.+\\.[tj]sx?$': 'babel-jest',
'^.+\\.mdx?$': '@storybook/addon-docs/jest-transform-mdx'
}
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@fontsource/lato": "^4.2.2",
"@fontsource/roboto-mono": "^4.2.2",
"@storybook/addon-essentials": "^6.2.3",
"@storybook/addon-storyshots": "6.2.5",
"@storybook/addons": "^6.2.3",
"@storybook/builder-webpack5": "^6.2.3",
"@storybook/components": "^6.2.3",
Expand Down
Loading