You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using --includeTags to filter components tagged with 'component'. While the tests are running, it says '24 passed', but when it completes it changes to '13 passed', and ignores some of the component stories. I've tried checking the stories to see if there are any obvious differences but I cant see any. I've included examples below.
To Reproduce
run :test-storybook --includeTags="component" --coverage --coverageDirectory sb-coverage
So I dug into this a bit more, and it seems to be an issue about only having one named export? or one named export with tests?
if I change 'export const Default' to 'export const Test' it still isnt picked up, however if i then add an empty 'export const Default = {}' above it then the test is included
for reference this is the updated version of the above that works
Hey @kraftman thanks a lot for catching this bug. There is an inconsistency between transformation modes (non index-json and index-json), I'll work on fixing this ASAP!
Describe the bug
I'm using --includeTags to filter components tagged with 'component'. While the tests are running, it says '24 passed', but when it completes it changes to '13 passed', and ignores some of the component stories. I've tried checking the stories to see if there are any obvious differences but I cant see any. I've included examples below.
To Reproduce
run :test-storybook --includeTags="component" --coverage --coverageDirectory sb-coverage
this story runs:
this story is ignored:
System
Additional context
No response
The text was updated successfully, but these errors were encountered: