Skip to content

Commit

Permalink
Add dependency: @storybook/addon-console
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Sep 15, 2023
1 parent ae6688d commit 970b854
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 29 deletions.
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config = {
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-actions/register",
'@storybook/addon-storysource'
],
framework: {
Expand Down
4 changes: 4 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import '@storybook/addon-console';
import { withConsole } from '@storybook/addon-console';

/** @type { import('@storybook/html').Preview } */
const preview = {
parameters: {
Expand All @@ -9,6 +12,7 @@ const preview = {
},
},
},
decorators: [(storyFn, context) => withConsole()(storyFn)(context)],
};

export default preview;
Loading

0 comments on commit 970b854

Please sign in to comment.