-
Notifications
You must be signed in to change notification settings - Fork 4
[#152] Test: created integration test for supabase/middleware #402
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
base: develop
Are you sure you want to change the base?
[#152] Test: created integration test for supabase/middleware #402
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
mathematiCode
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to mock the page redirects, but I do think we should have an actual test database with test users to make sure they can only access the appropriate pages. Otherwise, really nice job on this!
…tegration-test-for-supabase-middleware
2a5e5bd to
692ade2
Compare
Closes #152
All tests pass and I double checked by forcing them to fail to make sure it was testing correctly.
And since I touched the middleware file to move it into its own folder and write a test for it, I handled the eslint errors for the
middleware.tsas well.IMPORTANT: I edited the
middleware.tsfile because it was needed to even make any of these tests pass and be accurate.