Skip to content

Commit

Permalink
Merge pull request #425 from storybookjs/valentin/fix-build
Browse files Browse the repository at this point in the history
Fix build step
  • Loading branch information
yannbf committed Jan 22, 2024
2 parents 19824c0 + 19c0662 commit cc70b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/csf/transformCsf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const transformCsf = (
return makeDescribe(key, tests);
}
})
.filter(Boolean) as babel.types.Statement[];
.filter(Boolean) as t.Statement[];

let result = '';

Expand All @@ -175,7 +175,7 @@ export const transformCsf = (
csf.meta?.title as string,
allTests,
beforeEachPrefixer ? makeBeforeEach(beforeEachPrefixer) : undefined
) as babel.types.Node;
);
const { code: describeCode } = generate(describe, {});
result = dedent`
${result}
Expand Down
2 changes: 1 addition & 1 deletion src/playwright/transformPlaywrightJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const transformPlaywrightJson = (index: V3StoriesIndex | V4Index | Unsupp
}),
]);
});
const program = t.program([makeDescribe(stories[0].title, storyTests)]) as babel.types.Node;
const program = t.program([makeDescribe(stories[0].title, storyTests)]);

const { code } = generate(program, {});

Expand Down

0 comments on commit cc70b67

Please sign in to comment.