Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
🔧 make the stories path more specific to make sure the chromatic stor…
Browse files Browse the repository at this point in the history
…ies are not included.

Couldn't use an exclude pattern, because iternally storybook prepends the pattern with .storybook/ which breaks the exclude pattern.
  • Loading branch information
lowiebenoot committed Jul 14, 2023
1 parent 096170a commit bf79027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const chromaticTestStories = ['../src/**/__tests__/*.stories.@(tsx|mdx)'];
const storybookStories = ['./**/*.stories.@(tsx|mdx)', '../src/**/*.stories.@(tsx|mdx)'];
const storybookStories = ['./**/*.stories.@(tsx|mdx)', '../src/components/*/*.stories.@(tsx|mdx)'];
module.exports = {
stories: process.env.CHROMATIC ? chromaticTestStories : storybookStories,
addons: [
Expand Down

0 comments on commit bf79027

Please sign in to comment.