How to get simple reactivity to work within unit tests?
Hi, I'm probably missing something very obvious here, but I can't get this simple unit test to pass. I've been using solid for years but this is the first time I've actually tried to do this:
1 Reply
you need to test with browser build
node build does not have reactivity
this is what https://github.com/solidjs-community/solid-primitives
is doing using vitest
https://github.com/solidjs-community/solid-primitives/blob/main/configs/vitest.config.ts
or for simpler setup, you can try to run with "browser" condition