Skip to content

[Bug]: name property in test hook context is not the same as the one in the story file if you override it #555

Open
@rhuanbarreto

Description

@rhuanbarreto

Describe the bug

If you have a story file with:

export const Abc: Story = {
  name: "XYZ",
}

The name parameter in the context comes as "Abc".

To Reproduce

Just do like the previous question.

System

Storybook Environment Info:

  System:
    OS: macOS 15.3.2
    CPU: (10) arm64 Apple M1 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.proto/shims/node
    Yarn: 4.1.1 - ~/.proto/shims/yarn
    npm: 10.8.0 - ~/.proto/shims/npm
  Browsers:
    Safari: 18.3.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions