Skip to content

Conversation

@alexappleget
Copy link
Collaborator

@alexappleget alexappleget commented May 12, 2025

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.ts as well.

IMPORTANT: I edited the middleware.ts file because it was needed to even make any of these tests pass and be accurate.

@vercel
Copy link

vercel bot commented May 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elecretanta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 10:24pm
elecretanta-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 10:24pm
elecretanta-unit-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 10:24pm

Copy link
Contributor

@mathematiCode mathematiCode left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create integration test for supabase/middleware.ts

5 participants