Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjtc committed Nov 16, 2023
1 parent 50cbec2 commit a34d9e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/csf/transformCsf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('transformCsf', () => {
title: 'Button',
};
`;
const expectedCode = `describe('Button', () => { it('no-op', () => {}) });`;
const expectedCode = `describe.skip('Button', () => { it('no-op', () => {}) });`;

const result = transformCsf(csfCode, { insertTestIfEmpty: true });

Expand Down
2 changes: 1 addition & 1 deletion src/csf/transformCsf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const transformCsf = (
) => {
const { includeTags, excludeTags, skipTags } = getTagOptions();

const csf = loadCsf(code, { makeTitle });
const csf = loadCsf(code, { makeTitle: makeTitle || ((userTitle: string) => userTitle) });
csf.parse();

const storyExports = Object.keys(csf._stories);
Expand Down

0 comments on commit a34d9e8

Please sign in to comment.