generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from storybookjs/fix-ignored-tags
v5: Fix tags being ignored
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
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,25 @@ | ||
<script context="module"> | ||
import { defineMeta } from '@storybook/addon-svelte-csf'; | ||
/** | ||
* Testing tags parsing in the addon's indexer. | ||
* - In the sidebar, only the _"With Dev"_ story should be visible. | ||
* - In docs, only the _"With Autodocs"_ story should be visible. | ||
*/ | ||
const { Story } = defineMeta({ | ||
title: 'Tags', | ||
parameters: { | ||
controls: { disable: true }, | ||
}, | ||
tags: ['!dev', '!autodocs', '!test'], | ||
}); | ||
</script> | ||
|
||
|
||
<Story name="With Autodocs" tags={['autodocs']}>With autodocs</Story> | ||
|
||
<Story name="With Dev" tags={['dev']}>With dev</Story> | ||
|
||
<Story name="With Test" tags={['test']}>With test</Story> | ||
|
||
<Story name="No Tags">No tags</Story> |