supabase db reset vs supabase stop && supabase start

Hello, I wrote a test script that goes:
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]

On the other hand when I change the script to:
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()
Was this page helpful?