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
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
:
19 Replies
Any guidance you can offer, @lexlohr ?
Sorry, I need to test the newest solid start myself. I am terribly busy, so I cannot promise a fast answer.
Understood. I'm happy for whatever help I can get.
Have you tried to update all dependencies?
Just tried that. It had no effect.
I might have some time on Saturday or Sunday later in the evening for a pair debugging session.
Just saw this now. I can't tonight, unfortunately. But I appreciate the offer.
Maybe we can find another date. I have tried to recreate the issue, but could not get the same error.
I'm occupied tonight and tomorrow evening, but my schedule is otherwise pretty open
Maybe Tuesday 9pm CEST works for you?
Yeah, that would work
CEST = Central European Standard?
central european summer time = UTC+2
might be a few minutes later, depending on when my kids fall asleep
Got it. See you then.
okay, I'm here
cool
How should we do this?
Should I open a GotoMeeting so you can share your screen?
Sure
Do I need to install anything for that?
Just a browser (preferably not firefox, because it's media capabilities are notoriously bad).
https://app.goto.com/meeting/779414933
Thank you for your time.
I just put all changes into a testing_problems branch and pushed it