© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
juanvilladev

supabase db reset vs supabase stop && supabase start

Hello, I wrote a test script that goes:
supabase db reset && npm run react-scripts test
supabase db reset && npm run react-scripts test

My first test includes calling the createUser function detailed here:
https://supabase.com/docs/reference/javascript/v1/auth-api-createuser

For some reason, the test is flaky, it fails every other time with the following message:
Rejected to value: [Error: Database error checking email]
Rejected to value: [Error: Database error checking email]

On the other hand when I change the script to:
supabase stop && supabase start && npm run react-scripts test
supabase stop && supabase start && npm run react-scripts test

The tests pass every single time.

Is there something I'm missing? What could be causing that test to fail every other time if I use db reset vs stop, start?
Supabase Documentation
createUser()
createUser()
createUser()
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase db reset permission issue
SupabaseSSupabase / help-and-questions
13mo ago
Supabase cannot start after stop
SupabaseSSupabase / help-and-questions
3y ago
supabase start and supabase db diff now broken
SupabaseSSupabase / help-and-questions
3mo ago
supabase db reset: problems with pg_cron
SupabaseSSupabase / help-and-questions
14mo ago