server action mock test playwright
Unanswered
Old Danish Pointer posted this in #help-forum
Old Danish PointerOP
Hey guys, I'm trying to do some e2e tests and I want to mock the response that comes from the server action
I'm using playwright and I guess I can't access server side with it so I also tried using msw to mock the server side API calls, still it doesn't work
Does anyone have any insight on how to mock this calls?
Server action is being called from a useMutation from tanstack query
I'm using playwright and I guess I can't access server side with it so I also tried using msw to mock the server side API calls, still it doesn't work
Does anyone have any insight on how to mock this calls?
Server action is being called from a useMutation from tanstack query