Skip to content

Commit bd28adb

Browse files
Merge pull request #94 from LambdaTest/stage
skip story for docs with version 8
2 parents a8615ee + e11577a commit bd28adb

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

commands/utils/story.js

+6-1
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) || [];

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-storybook",
3-
"version": "1.1.19",
3+
"version": "1.1.20",
44
"description": "LambdaTest's command-line interface (CLI) aimed to help you run your SmartUI tests on LambdaTest platform",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)