-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: supportof for include.exclude stories on kind
- Loading branch information
1 parent
7b2d215
commit 3645c68
Showing
18 changed files
with
311 additions
and
96 deletions.
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
189 changes: 189 additions & 0 deletions
189
core/instrument/test/__snapshots__/csf-exclude-stories.test.ts.snap
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,189 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`csf-exclude-stories exclude-stories-array.js 1`] = ` | ||
Object { | ||
"components": Object {}, | ||
"kinds": Object { | ||
"Storybook/Blocks/EXCLUDEStoryArray": Object { | ||
"attributes": Object { | ||
"excludeStories": Array [ | ||
"story1", | ||
"story2", | ||
], | ||
"title": "Storybook/Blocks/EXCLUDEStoryArray", | ||
}, | ||
"components": Object {}, | ||
"repository": Object { | ||
"browse": "https://github.com/ccontrols/component-controls/tree/master/core/instrument/test/fixtures/csf/exclude-stories/exclude-stories-array.js", | ||
"docs": "https://github.com/ccontrols/component-controls/tree/master#readme", | ||
"issues": "https://github.com/ccontrols/component-controls/issues", | ||
}, | ||
"title": "Storybook/Blocks/EXCLUDEStoryArray", | ||
}, | ||
}, | ||
"stories": Object { | ||
"story3": Object { | ||
"arguments": Array [], | ||
"loc": Object { | ||
"end": Object { | ||
"column": 30, | ||
"line": 8, | ||
}, | ||
"start": Object { | ||
"column": 22, | ||
"line": 8, | ||
}, | ||
}, | ||
"name": "story3", | ||
"source": "() => {}", | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`csf-exclude-stories exclude-stories-regex.js 1`] = ` | ||
Object { | ||
"components": Object {}, | ||
"kinds": Object { | ||
"Storybook/Blocks/ExcludeStoryRegex": Object { | ||
"attributes": Object { | ||
"excludeStories": "story(2|3)", | ||
"title": "Storybook/Blocks/ExcludeStoryRegex", | ||
}, | ||
"components": Object {}, | ||
"repository": Object { | ||
"browse": "https://github.com/ccontrols/component-controls/tree/master/core/instrument/test/fixtures/csf/exclude-stories/exclude-stories-regex.js", | ||
"docs": "https://github.com/ccontrols/component-controls/tree/master#readme", | ||
"issues": "https://github.com/ccontrols/component-controls/issues", | ||
}, | ||
"title": "Storybook/Blocks/ExcludeStoryRegex", | ||
}, | ||
}, | ||
"stories": Object { | ||
"story1": Object { | ||
"arguments": Array [], | ||
"loc": Object { | ||
"end": Object { | ||
"column": 30, | ||
"line": 6, | ||
}, | ||
"start": Object { | ||
"column": 22, | ||
"line": 6, | ||
}, | ||
}, | ||
"name": "story1", | ||
"source": "() => {}", | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`csf-exclude-stories include-stories-array.js 1`] = ` | ||
Object { | ||
"components": Object {}, | ||
"kinds": Object { | ||
"Storybook/Blocks/IncludeStoryArray": Object { | ||
"attributes": Object { | ||
"includeStories": Array [ | ||
"story1", | ||
"story2", | ||
], | ||
"title": "Storybook/Blocks/IncludeStoryArray", | ||
}, | ||
"components": Object {}, | ||
"repository": Object { | ||
"browse": "https://github.com/ccontrols/component-controls/tree/master/core/instrument/test/fixtures/csf/exclude-stories/include-stories-array.js", | ||
"docs": "https://github.com/ccontrols/component-controls/tree/master#readme", | ||
"issues": "https://github.com/ccontrols/component-controls/issues", | ||
}, | ||
"title": "Storybook/Blocks/IncludeStoryArray", | ||
}, | ||
}, | ||
"stories": Object { | ||
"story1": Object { | ||
"arguments": Array [], | ||
"loc": Object { | ||
"end": Object { | ||
"column": 30, | ||
"line": 6, | ||
}, | ||
"start": Object { | ||
"column": 22, | ||
"line": 6, | ||
}, | ||
}, | ||
"name": "story1", | ||
"source": "() => {}", | ||
}, | ||
"story2": Object { | ||
"arguments": Array [], | ||
"loc": Object { | ||
"end": Object { | ||
"column": 30, | ||
"line": 7, | ||
}, | ||
"start": Object { | ||
"column": 22, | ||
"line": 7, | ||
}, | ||
}, | ||
"name": "story2", | ||
"source": "() => {}", | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`csf-exclude-stories include-stories-regex.js 1`] = ` | ||
Object { | ||
"components": Object {}, | ||
"kinds": Object { | ||
"Storybook/Blocks/IncludeStoryRegex": Object { | ||
"attributes": Object { | ||
"includeStories": "story(2|3)", | ||
"title": "Storybook/Blocks/IncludeStoryRegex", | ||
}, | ||
"components": Object {}, | ||
"repository": Object { | ||
"browse": "https://github.com/ccontrols/component-controls/tree/master/core/instrument/test/fixtures/csf/exclude-stories/include-stories-regex.js", | ||
"docs": "https://github.com/ccontrols/component-controls/tree/master#readme", | ||
"issues": "https://github.com/ccontrols/component-controls/issues", | ||
}, | ||
"title": "Storybook/Blocks/IncludeStoryRegex", | ||
}, | ||
}, | ||
"stories": Object { | ||
"story2": Object { | ||
"arguments": Array [], | ||
"loc": Object { | ||
"end": Object { | ||
"column": 30, | ||
"line": 7, | ||
}, | ||
"start": Object { | ||
"column": 22, | ||
"line": 7, | ||
}, | ||
}, | ||
"name": "story2", | ||
"source": "() => {}", | ||
}, | ||
"story3": Object { | ||
"arguments": Array [], | ||
"loc": Object { | ||
"end": Object { | ||
"column": 30, | ||
"line": 8, | ||
}, | ||
"start": Object { | ||
"column": 22, | ||
"line": 8, | ||
}, | ||
}, | ||
"name": "story3", | ||
"source": "() => {}", | ||
}, | ||
}, | ||
} | ||
`; |
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
Oops, something went wrong.