playwright: Silence the list reporter in CI to avoid double logging
This commit is contained in:
parent
2bf185af19
commit
57e5e83d38
1 changed files with 5 additions and 1 deletions
|
|
@ -5,7 +5,11 @@ import {
|
||||||
} from '@playwright/test';
|
} from '@playwright/test';
|
||||||
import 'dotenv/config';
|
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) {
|
if (process.env.CURRENTS_PROJECT_ID && process.env.CURRENTS_RECORD_KEY) {
|
||||||
reporters.push(['@currents/playwright']);
|
reporters.push(['@currents/playwright']);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue