Skip to content

Commit f8e8078

Browse files
chore(docs): Update Storybook instructions (#37321)
Co-authored-by: Lennart <[email protected]>
1 parent e9ab3f4 commit f8e8078

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/docs/how-to/testing/visual-testing-with-storybook.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,17 @@ npx sb upgrade
3636
Add the following development dependencies to enable webpack 5 with Storybook:
3737

3838
```shell
39-
npm i -D @storybook/builder-webpack5 @storybook/manager-webpack5
39+
npm i @storybook/builder-webpack5 @storybook/manager-webpack5 --save-dev
4040
```
4141

4242
Then, update your [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview) to the following:
4343

4444
```js:title=.storybook/main.js
4545
module.exports = {
46-
stories: [],
47-
addons: [],
4846
// highlight-start
47+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
48+
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
49+
framework: "@storybook/react",
4950
core: {
5051
builder: "webpack5",
5152
},

0 commit comments

Comments
 (0)