Testing difficulties in solid-start
I'm running into some perplexing errors with Vitest in my SSR-enabled Solid Start app. In the imports two files, I get
In at least one of the test files, I've done my best to abstract the component being tested away from the routing, but I'm still getting this error.
My
And my
Cannot set properties of undefined (setting 'modhash'). In one, it's caused by import { isBefore, parseISO } from "date-fns". In the other, by import { CentralStoreContext } from "../root". In at least one of the test files, I've done my best to abstract the component being tested away from the routing, but I'm still getting this error.
My
root.tsx:And my
vitest.config.ts: