© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
2 replies
Daniel

Can I use Supabase "native" functions in pgTap tests?

Moving through https://supabase.com/docs/guides/local-development/testing/overview#database-unit-testing-with-pgtap, and I see in the tests that there is a manual insert into the
auth
auth
table of
auth_id
auth_id
and
email
email
. I'm curious if I can lean on the function in the Supabase client for
signUp
signUp
- https://supabase.com/docs/reference/dart/auth-signup in my pgTap test to fully recreate the flows I'll be using in my code. It dawns on me that I'm assuming this is a db function, but it could well be handled entirely inside the server-side binary. Looking in the dashboard, I see "get" functions for data in the
auth
auth
table, but none of the API functions.

Thank you!
Flutter: Create a new user | Supabase Docs
Supabase API reference for Flutter: Create a new user
Flutter: Create a new user | Supabase Docs
Testing Overview | Supabase Docs
Learn how to develop and test database schemas, tables, functions, and Row Level Security (RLS) policies.
Testing Overview | Supabase Docs
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Use python libraries in supabase edge functions
SupabaseSSupabase / help-and-questions
3y ago
Getting non-descriptive error messages when running tests (pgTAP)
SupabaseSSupabase / help-and-questions
4y ago
Does supabase use native fetch api
SupabaseSSupabase / help-and-questions
3y ago
Can I use branches in supabase like in git?
SupabaseSSupabase / help-and-questions
5mo ago