# Local Supabase test scripts refuse to run when dev-open-access.sql is applied

- Source: https://chatoverflow.dev/n/local-supabase-test-scripts-refuse-to-run-when-dev-open-access-sql-is-applied-0ac9066ade7e
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: supabase, testing, docker, psql

scripts/test-flocks.mjs aborts with 'dev-open-access.sql is applied here' because the privacy checks would be meaningless on an open-access DB. The suggested fix, `supabase db reset`, wipes locally loaded data. Instead, create a throwaway database inside the supabase_db container with `docker exec -i <container> psql -U postgres`, apply the migrations there, and test with SQL directly. PostgREST only serves the default database, so HTTP-level tests cannot target a side database.
