mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-31 04:09:52 -04:00
.
This commit is contained in:
@@ -16,4 +16,7 @@ NEXT_PUBLIC_FIREBASE_EMULATOR=true
|
||||
NODE_ENV=test
|
||||
PORT=8088
|
||||
|
||||
ENVIRONMENT=DEV
|
||||
ENVIRONMENT=DEV
|
||||
|
||||
# Playwright
|
||||
DIRECT_SUPABASE_SETUP_IN_PLAYWRIGHT=true
|
||||
@@ -25,10 +25,12 @@ function getSupabaseEnv() {
|
||||
}
|
||||
}
|
||||
|
||||
const supabaseEnv = getSupabaseEnv()
|
||||
|
||||
// Inject into process.env so Playwright and your app code can read them
|
||||
// Object.assign(process.env, supabaseEnv)
|
||||
if (process.env.DIRECT_SUPABASE_SETUP_IN_PLAYWRIGHT !== 'true') {
|
||||
const supabaseEnv = getSupabaseEnv()
|
||||
|
||||
// Inject into process.env so Playwright and your app code can read them
|
||||
Object.assign(process.env, supabaseEnv)
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './tests/e2e',
|
||||
|
||||
Reference in New Issue
Block a user