File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,13 +95,13 @@ jobs:
9595 - name : Generate .env.test from secrets
9696 run : |
9797 cat <<'EOF' > .env.test
98- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
99- NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
100- SUPABASE_ACCESS_TOKEN=${SUPABASE_ACCESS_TOKEN}
101- E2E_USERNAME_ID=${E2E_USERNAME_ID}
102- E2E_USERNAME=${E2E_USERNAME}
103- E2E_PASSWORD=${E2E_PASSWORD}
104- EOF
98+ NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
99+ NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
100+ SUPABASE_ACCESS_TOKEN=${SUPABASE_ACCESS_TOKEN}
101+ E2E_USERNAME_ID=${E2E_USERNAME_ID}
102+ E2E_USERNAME=${E2E_USERNAME}
103+ E2E_PASSWORD=${E2E_PASSWORD}
104+ EOF
105105
106106 - name : Install Playwright browsers
107107 run : npx playwright install chromium
Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ export default defineConfig({
4040 "src/middleware.ts" , // Middleware Next.js
4141 ] ,
4242
43- // Progi pokrycia - na początek 60% (zwiększysz później)
44- // Jeśli spadnie poniżej, npm run test:coverage zafailuje
45- thresholds : {
46- lines : 60 ,
47- functions : 60 ,
48- branches : 60 ,
49- statements : 60 ,
50- } ,
43+ // Progi pokrycia - tylko gdy explicite wymusimy je przez zmienną środowiskową
44+ ...( process . env . VITEST_ENFORCE_COVERAGE === "true"
45+ ? {
46+ thresholds : {
47+ lines : 60 ,
48+ functions : 60 ,
49+ branches : 60 ,
50+ statements : 60 ,
51+ } ,
52+ }
53+ : { } ) ,
5154 } ,
5255
5356 // Które pliki są testami
You can’t perform that action at this time.
0 commit comments