Replies: 4 comments 4 replies
-
I'm struggling to do the same despite the file structures being defined in the config. Would be great to get some support on this! |
Beta Was this translation helpful? Give feedback.
-
Hi @votemike and @haileypun, {
stories: ["../stories/*.stories.tsx", "../stories/**/*.stories.tsx", "../../../packages/ui/**/*/*.stories.tsx"],
...
} |
Beta Was this translation helpful? Give feedback.
-
@votemike @haileypun did you resolve the issue by any chance? |
Beta Was this translation helpful? Give feedback.
-
I used "vite-plugin-istanbul" with vite config to make it works , i used this vite.config.ts file
I removed the option from code-coverage addon |
Beta Was this translation helpful? Give feedback.
-
Summary
I have created a new Turbo monorepo using the design-system example.
I then added testing to Storybook following these instructions. In the root of the repo, it is now possible to run
pnpm run test-storybook
(assuming storybook is running).I then added test coverage as per this which I was hoping would show me uncovered lines/files in the packages/ui/src directory by running
pnpm run test-storybook -- --coverage
, but I can't get it to do so. I get a single line called "All files" which only shows zeros.Is this possible? Is it a limitation of Turbo/Storybook in some way? Can this be done in monorepos? Is it just not documented how to do such a thing?
What am I doing wrong?
Thanks in advance.
Additional information
Create a reproduction
https://github.com/votemike/design-system
Beta Was this translation helpful? Give feedback.
All reactions