Open pvlastaridis opened 1 month ago
i setup my tests w/out any mocking, here are some i have in this branch of a project:
https://github.com/fumeapp/bio/blob/cycles/test/user.test.ts https://github.com/fumeapp/bio/blob/cycles/test/round.test.ts
helpers in the tests found here:
https://github.com/fumeapp/bio/blob/cycles/test/auth.ts
here they are passing in an action:
https://github.com/fumeapp/bio/actions/runs/10898368283/job/30241453762
i plan to try and move some of this in its own package at some point
i setup my tests w/out any mocking, here are some i have in this branch of a project:
https://github.com/fumeapp/bio/blob/cycles/test/user.test.ts https://github.com/fumeapp/bio/blob/cycles/test/round.test.ts
helpers in the tests found here:
https://github.com/fumeapp/bio/blob/cycles/test/auth.ts
here they are passing in an action:
https://github.com/fumeapp/bio/actions/runs/10898368283/job/30241453762
i plan to try and move some of this in its own package at some point
This is great work thank so much for sharing!!
I want to test my server api endpoint and mock useRequireSession but I cannot get it to work
I am trying something like this
But it is not working as in my endpoint the problem is ReferenceError: requireUserSession is not defined ❯ Module.default server/api/profile/index.get.ts:6:19 and I cannot import requireUserSession in my endpoint as when I type
import requireUserSession it says that it need a second argument of type Nuxt?
Can someone please help me?