-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
What's wrong?
This is how I structure my projects:
src/Feature.tsx
src/Feature/InternalComponent1.tsx
src/Feature/InternalComponent2.tsx
With fixtures, it looks like this:
src/Feature.tsx
src/Feature.fixture.tsx
src/Feature/InternalComponent1.tsx
src/Feature/InternalComponent1.fixture.tsx
src/Feature/InternalComponent2.tsx
src/Feature/InternalComponent2.fixture.tsx
With such a structure, React Cosmos loads and displays for me the fixtures Feature/InternalComponent1 and Feature/InternalComponent2, but it doesn't display the fixture Feature. I assume that's because the other fixtures are picked up first and "block" the name Feature, preventing another fixture from being called like that.
If I rename the file from src/Feature.fixture.tsx to something else, like src/Feature_.fixture.tsx, then the fixture loads.
I can use that fact as a workaround but I would match rather have all filenames match.
User info
React Cosmos version 5.6.3, Webpack version 5.38.1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels