Skip to content

Commit 912052a

Browse files
authored
Merge pull request #74 from LambdaTest/stage
fix deafult config case
2 parents 61f5030 + dee1404 commit 912052a

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

commands/storybook.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,17 @@ async function storybook(serve, options) {
101101
// Prepare payload data
102102
let browsers = []
103103
let resolutions = []
104+
104105
storybookConfig.browsers.forEach(element => {
105106
browsers.push(element.toLowerCase());
106107
});
107-
storybookConfig.resolutions.forEach(element => {
108-
resolutions.push({ width: element[0], height: element[1] });
109-
});
108+
let rs = storybookConfig.resolutions || storybookConfig.viewports
109+
if (rs && rs.length){
110+
rs.forEach(element => {
111+
resolutions.push({ width: element[0], height: element[1] });
112+
});
113+
}
114+
110115
let commit = await getLastCommit();
111116
let payload = {
112117
downloadURL: url.substring(url.search(/.com/)+5, url.search(/.zip/)+4),

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-storybook",
3-
"version": "1.1.14",
3+
"version": "1.1.15",
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)