-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Describe the bug
It seems that solid is incompatible with version 3 of vitest.
The templates from https://github.com/solidjs/templates (js-vitest and ts-vitest) work fine with vitest 2, but when vitest 3 is used, the tests fail with an error.
Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-nbtbgydu
Steps to Reproduce the Bug or Issue
- Open the provided example.
- Run
npm test. - The tests fail with message
Error: Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>..
Expected behavior
I expected the tests to succeed instead of failing with an error message.
Screenshots or Videos
No response
Platform
- OS: Debian Linux 13
- Browser: observed with Firefox 134.0.2 or Chromium 132.0.6834.110
Additional context
No response
incognitojam
Metadata
Metadata
Assignees
Labels
No labels