Skip to content

Commit

Permalink
playwright.config.ts // update reporter configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Oct 8, 2024
1 parent 5f5a885 commit d32d34f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import { defineConfig, devices } from '@playwright/test';

const testsRootPath = __dirname;

const reporter = [ [ 'list', { printSteps: true } ] ];
if ( process.env.CI ) {
reporter.push( [ 'github' ] );
}

export default defineConfig( {
reporter: process.env.CI ? [ [ 'github' ] ] : 'list',
reporter: reporter,

Check failure on line 14 in tests/e2e/playwright.config.ts

View workflow job for this annotation

GitHub Actions / wp-scripts-lint / static-analysis-assets

Expected property shorthand
workers: 1,
testDir: `${ testsRootPath }/specs`,
outputDir: `${ testsRootPath }/../../artifacts`,
Expand Down

0 comments on commit d32d34f

Please sign in to comment.