Skip to content

[Bug]: Vitest/Test addon does not work if non-ASCII character in path #33700

@Evarin

Description

@Evarin

Describe the bug

I was trying to use storybook with svelte, and stumbled desperately on the error "No test suite found in file "...Page.stories.svelte".

After seeing #29572, I realized that my path contained a hyphenated character (é) ; removing it solved the problem.

Reproduction link

https://github.com/Evarin/storybook-path-issue

Reproduction steps

  1. Go to the above link
  2. Install and run npx vitest --project=storybook
  3. Observe the errors:
 FAIL   storybook (chromium)  src/stories/Button.stories.svelte [ src/stories/Button.stories.svelte ]
Error: No test suite found in file /mnt/Data/teststorybook/tést/src/stories/Button.stories.svelte
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯

 FAIL   storybook (chromium)  src/stories/Header.stories.svelte [ src/stories/Header.stories.svelte ]
Error: No test suite found in file /mnt/Data/teststorybook/tést/src/stories/Header.stories.svelte
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯

 FAIL   storybook (chromium)  src/stories/Page.stories.svelte [ src/stories/Page.stories.svelte ]
Error: No test suite found in file /mnt/Data/teststorybook/tést/src/stories/Page.stories.svelte

Those errors disappear if you rename "tést" "test"

System

System:
│  OS: Linux 6.8 Linux Mint 22.1 (Xia)
│  CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
│  Shell: 5.2.21 - /bin/bash
│  Binaries:
│  Node: 24.5.0 - /usr/local/bin/node
│  npm: 11.5.1 - /usr/local/bin/npm
│  pnpm: 10.14.0 - /home/evarin/.local/share/pnpm/pnpm <----- active
│  Browsers:
│  Firefox: 146.0.1

Additional context

No response

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