diff --git a/packages/blade/.storybook/react-native/main.tsx b/packages/blade/.storybook/react-native/main.tsx index f9ddcc7e707..872f4fea6d9 100644 --- a/packages/blade/.storybook/react-native/main.tsx +++ b/packages/blade/.storybook/react-native/main.tsx @@ -1,6 +1,6 @@ module.exports = { stories: [ - '../../src/**/!(_KitchenSink)*.stories.?(ts|tsx|js|jsx)', + '../../src/**/!(_KitchenSink|*.test)*.stories.?(ts|tsx|js|jsx)', '../../src/**/*.stories.internal.?(ts|tsx|js|jsx)', ], addons: [ diff --git a/packages/blade/.storybook/react-native/storybook.requires.js b/packages/blade/.storybook/react-native/storybook.requires.js index 15720184b91..887025e7040 100644 --- a/packages/blade/.storybook/react-native/storybook.requires.js +++ b/packages/blade/.storybook/react-native/storybook.requires.js @@ -6,9 +6,9 @@ global.STORIES = [ { titlePrefix: '', directory: './src', - files: '**/!(_KitchenSink)*.stories.?(ts|tsx|js|jsx)', + files: '**/!(_KitchenSink|*.test)*.stories.?(ts|tsx|js|jsx)', importPathMatcher: - '^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?:(?!(?:_KitchenSink))[^/]*?)[^/]*?\\.stories\\.(?:ts|tsx|js|jsx)?)$', + '^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?:(?!(?:_KitchenSink|[^/]*?\\.test))[^/]*?)[^/]*?\\.stories\\.(?:ts|tsx|js|jsx)?)$', }, { titlePrefix: '', @@ -57,7 +57,6 @@ const getStories = () => { './src/components/Button/IconButton/IconButton.stories.tsx': require('../../src/components/Button/IconButton/IconButton.stories.tsx'), './src/components/Card/Card.stories.tsx': require('../../src/components/Card/Card.stories.tsx'), './src/components/Card/CardInteractive.stories.tsx': require('../../src/components/Card/CardInteractive.stories.tsx'), - './src/components/Carousel/__tests__/Carousel.test.stories.tsx': require('../../src/components/Carousel/__tests__/Carousel.test.stories.tsx'), './src/components/Carousel/Carousel.stories.tsx': require('../../src/components/Carousel/Carousel.stories.tsx'), './src/components/Checkbox/Checkbox.stories.tsx': require('../../src/components/Checkbox/Checkbox.stories.tsx'), './src/components/Checkbox/CheckboxGroup.stories.tsx': require('../../src/components/Checkbox/CheckboxGroup.stories.tsx'),