Skip to content

Commit 86ceaaa

Browse files
author
utkace
committed
test add config for storybook
1 parent 3662556 commit 86ceaaa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.storybook/addons.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '@storybook/addon-actions/register';
2+
import '@storybook/addon-links/register';

.storybook/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// automatically import all files ending in *.stories.js
2+
import { configure } from "@storybook/vue";
3+
4+
const req = require.context("../tests/stories", true, /\.stories\.js$/); // <- import all the stories at once
5+
6+
configure(req, module);

0 commit comments

Comments
 (0)