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

Write tests for multiple user sessions #11

Closed
2 tasks
blms opened this issue Jul 10, 2020 · 1 comment
Closed
2 tasks

Write tests for multiple user sessions #11

blms opened this issue Jul 10, 2020 · 1 comment
Labels
testing Related to tests, Jest, mocks, etc

Comments

@blms
Copy link
Member

blms commented Jul 10, 2020

  • Mock user with 1+ groups
  • Mock logged-out user
    After #7 Mock useSession hook in Jest tests #10, since useSession uses mock user data from a logged-in user, any test that involves a component using useSession will now test components as if a user is logged in. We need to write tests for logged-out state as well. (Make useSession return undefined?)
@blms blms added the testing Related to tests, Jest, mocks, etc label Jul 30, 2020
@blms blms changed the title Write tests for logged-out user Write tests for multiple user sessions Jul 30, 2020
@blms
Copy link
Member Author

blms commented Nov 19, 2020

Closing this to merge into #17

@blms blms closed this as completed Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Related to tests, Jest, mocks, etc
Projects
None yet
Development

No branches or pull requests

1 participant