Skip to content

Commit

Permalink
Examples: Add MDX files back to react-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 23, 2022
1 parent 0991034 commit 9e8fb7f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/react-ts/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const config: StorybookConfig = {
titlePrefix: 'Demo',
files: '*.stories.(js|ts|tsx|mdx)',
},
{
directory: '../src/addon-docs',
files: '*.stories.mdx',
},
],
logLevel: 'debug',
addons: [
Expand Down
18 changes: 18 additions & 0 deletions examples/react-ts/src/__snapshots__/storyshots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4040,3 +4040,21 @@ exports[`Storyshots Demo/Examples / Emoji Button With Args 1`] = `
With args
</button>
`;

exports[`Storyshots Docs/ButtonMdx Basic 1`] = `
<button
type="button"
>
Click me
</button>
`;

exports[`Storyshots Docs/ButtonMdx Controls 1`] = `
<button
type="button"
>
Hello
</button>
`;

0 comments on commit 9e8fb7f

Please sign in to comment.