SolidJSS
SolidJSโ€ข6mo agoโ€ข
3 replies
Carl (klequis)

How to test actions?

I'm using vitest in a SolidStart project.

I'm trying to create tests for an action and haven't been able to figure it out or find any info on it.

My current guess is that I need to automate/UI Test a form in a route, but thought I would ask before using more time by guessing.

I have never done UI testing and wishing there was a way to do this in pure JS. But useAction only works in a Route so I'm guessing creating a route with a form is the only way?
Was this page helpful?