test-runner
test-runner copied to clipboard
[Feature] Use storyName in test name
Describe the bug
I'm not sure to call this a bug or a feature, but I find myself wishing that the story name displayed in the test output matched storyName rather than the name of the exported CSF constant. This would make it easier to find the test in the storybook sidebar, in cases where there's a custom storyName that's being used.
Steps to reproduce the behavior
- Create a CSF story with a custom
storyNamethat does not match the story's exported name. - Run test-runner
- Notice that the test name displayed does not match the
storyName
Additional context
This is a pretty minor request, but wanted to document it since I did find it tripping me up once or twice.