Skip to content

[Feature] Use storyName in test name #70

Open
@IanVS

Description

@IanVS

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

  1. Create a CSF story with a custom storyName that does not match the story's exported name.
  2. Run test-runner
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions