Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock Koa session #82

Open
jamesgeer opened this issue Nov 2, 2022 · 0 comments
Open

Mock Koa session #82

jamesgeer opened this issue Nov 2, 2022 · 0 comments
Labels
backend Issue relates to koa, node or other in backend and may include database.

Comments

@jamesgeer
Copy link
Owner

jamesgeer commented Nov 2, 2022

Some methods rely on a session value for security, which means these methods cannot be easily tested.

Look into seeing if these session values can be mocked for the test.

Session value in use example
@shopify/jest-koa-mocks seems promising.

@jamesgeer jamesgeer added the backend Issue relates to koa, node or other in backend and may include database. label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issue relates to koa, node or other in backend and may include database.
Projects
None yet
Development

No branches or pull requests

1 participant