mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 12:55:06 +03:00
Table editor tests were being run serially because they would otherwise stomp all over each other in setup. But this made them really slow. This PR changes them to run in parallel, and makes sure the setup step runs only once by using a file lock. Also cleans up miscellaneous other sources of flakiness in tests. Co-authored-by: Ali Waseem <waseema393@gmail.com>
22 lines
744 B
TypeScript
22 lines
744 B
TypeScript
import path from 'path'
|
|
|
|
const toBoolean = (value?: string) => {
|
|
if (value == null) return false
|
|
const normalized = value.trim().toLowerCase()
|
|
return normalized === 'true'
|
|
}
|
|
|
|
export const env = {
|
|
STUDIO_URL: process.env.STUDIO_URL,
|
|
API_URL: process.env.API_URL || 'https://api.supabase.green',
|
|
AUTHENTICATION: toBoolean(process.env.AUTHENTICATION),
|
|
EMAIL: process.env.EMAIL,
|
|
PASSWORD: process.env.PASSWORD,
|
|
PROJECT_REF: process.env.PROJECT_REF || 'default',
|
|
IS_PLATFORM: process.env.IS_PLATFORM || 'false',
|
|
VERCEL_AUTOMATION_BYPASS_SELFHOSTED_STUDIO:
|
|
process.env.VERCEL_AUTOMATION_BYPASS_SELFHOSTED_STUDIO || 'false',
|
|
}
|
|
|
|
export const STORAGE_STATE_PATH = path.join(import.meta.dirname, './playwright/.auth/user.json')
|