playwright: Silence the list reporter in CI to avoid double logging

This commit is contained in:
Tom Koscielniak 2025-08-13 17:18:39 +02:00 committed by Tomáš Koscielniak
parent 2bf185af19
commit 57e5e83d38

View file

@ -5,7 +5,11 @@ import {
} from '@playwright/test';
import 'dotenv/config';
const reporters: ReporterDescription[] = [['html'], ['list']];
const reporters: ReporterDescription[] = [['html']];
if (!process.env.CI) {
reporters.push(['list']);
}
if (process.env.CURRENTS_PROJECT_ID && process.env.CURRENTS_RECORD_KEY) {
reporters.push(['@currents/playwright']);