storybookjs/storybook

[Bug]: Module "node"process" has been externalized - Svelte | Addon-Test

Open

#29.416 aberto em 21 de out. de 2024

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (10.058 forks)batch import
addon: vitestbughelp wantedsev:S3svelte

Métricas do repositório

Stars
 (89.909 stars)
Métricas de merge de PR
 (Mesclagem média 7d 22h) (184 fundiu PRs em 30d)

Description

Describe the bug

When setting up @storybook/experimental-addon-test in a Svelte 5 project and running tests, the following warning gets printed to the terminal for each story file:

Module "node:process" has been externalized for browser compatibility. Cannot access "node:process.cwd" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

Reproduction steps

  1. Create a Svelte 5 sandbox
  2. Run yarn vitest

Guia do colaborador