Skip to content

Commit 4071660

Browse files
authored
Merge pull request #92 from parthlambdatest/Dot-3876
Validate docs check for storybook version 8
2 parents f47e6ff + 3270b85 commit 4071660

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

commands/utils/story.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
// Returns true or false if the story should be skipped based on include and exclude config
22
function skipStory(story, config) {
3-
// skip story if it's docs
3+
// skip story if it's docs for version 7
44
if (story.parameters && story.parameters.docsOnly) {
55
return true;
66
}
77

8+
// skip story if it's docs for version 8
9+
if(story.type && story.type === 'docs'){
10+
return true;
11+
}
12+
813
let matches = regexp => {
914
if (typeof regexp === 'string') {
1015
let [, parsed, flags] = /^\/(.+)\/(\w+)?$/.exec(regexp) || [];

0 commit comments

Comments
 (0)