Skip to content

Commit db9ca37

Browse files
committed
No playwright-report or results.json for non-CI
1 parent b783b50 commit db9ca37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export default defineConfig({
2222
/* Opt out of parallel tests on CI. */
2323
workers: process.env.CI ? 1 : undefined,
2424
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
25-
reporter: [
25+
reporter: process.env.CI ? [
2626
["html", { outputFolder: "playwright-report" }],
2727
["json", { outputFile: "results.json" }],
2828
["line"],
29-
],
29+
] : [["line"]],
3030
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3131
use: {
3232
/* Base URL to use in actions like `await page.goto('/')`. */

0 commit comments

Comments
 (0)