Skip to content

Add tests for Supabase-backed hooks - #45

Merged
thinkclay merged 1 commit into
mainfrom
codex/add-tests-for-supabase-hooks-and-utilities
Sep 23, 2025
Merged

thinkclay merged 1 commit into
mainfrom
codex/add-tests-for-supabase-hooks-and-utilities

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Summary

  • add a Vitest configuration and scripts for the app/core workspace so the hooks run under jsdom
  • cover useUser, useOrganizations, and useEventsQuery with mocked Supabase clients to assert happy paths, 404 handling, and derived avatar data
  • document how to override Supabase client methods in the shared test utilities

Testing

  • yarn workspace app test

https://chatgpt.com/codex/tasks/task_b_68d2c663152083318979d2f1967270ff

@thinkclay
thinkclay merged commit 0c6df2a into main Sep 23, 2025
@thinkclay
thinkclay deleted the codex/add-tests-for-supabase-hooks-and-utilities branch September 23, 2025 18:02
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.

1 participant