You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
Currently, the cookie-based authentication isn't tested inside the server tests, because we don't have a real express.Response which contains the res.cookie function.
The current behavior to keep the tests running is because we added jest.fn in res.cookie in the GraphQLProvider- Context. We need a possibility to add jest.fn to res.cookie during the initialization of the test. Afterwards, we can check if res.cookie was called with the desired parameters.
The text was updated successfully, but these errors were encountered:
Currently, the cookie-based authentication isn't tested inside the server tests, because we don't have a real
express.Response
which contains theres.cookie
function.The current behavior to keep the tests running is because we added
jest.fn
inres.cookie
in theGraphQLProvider
- Context. We need a possibility to addjest.fn
tores.cookie
during the initialization of the test. Afterwards, we can check ifres.cookie
was called with the desired parameters.The text was updated successfully, but these errors were encountered: