Skip to content

Commit

Permalink
exclude test stories
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyadeorukhkar committed Jan 11, 2024
1 parent ab80799 commit f918f60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/blade/.storybook/react-native/main.tsx
Original file line number Diff line number Diff line change
@@ -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: [
Expand Down
5 changes: 2 additions & 3 deletions packages/blade/.storybook/react-native/storybook.requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit f918f60

Please sign in to comment.