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

Commit

Permalink
🚚 rename chromatic stories from *.stories.spec.tsx to *.stories.tsx
Browse files Browse the repository at this point in the history
Storybook can't handle other extensions anymore
  • Loading branch information
lowiebenoot committed Jul 13, 2023
1 parent 99daca2 commit 096170a
Show file tree
Hide file tree
Showing 22 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const chromaticTestStories = ['../src/**/*.stories.spec.@(tsx|mdx)'];
const chromaticTestStories = ['../src/**/__tests__/*.stories.@(tsx|mdx)'];
const storybookStories = ['./**/*.stories.@(tsx|mdx)', '../src/**/*.stories.@(tsx|mdx)'];
module.exports = {
stories: process.env.CHROMATIC ? chromaticTestStories : storybookStories,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Button, { AllowedButtonColor, BUTTON_LEVELS } from '../Button';

export default {
component: Button,
title: Button.displayName,
title: 'Button',
};

const Wrapper = ({ children, inverse = false }: { children: ReactNode; inverse?: boolean }) => (
Expand Down

0 comments on commit 096170a

Please sign in to comment.