From 874d4a35ee42f1375a3825d409cf9d67aa85e0ec Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 18 Sep 2024 16:03:39 -0600 Subject: [PATCH] improve config --- epicshop/playwright.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/epicshop/playwright.config.js b/epicshop/playwright.config.js index caccf575..38590d2a 100644 --- a/epicshop/playwright.config.js +++ b/epicshop/playwright.config.js @@ -1,9 +1,18 @@ +import os from 'os' +import path from 'path' import { defineConfig, devices } from '@playwright/test' const PORT = process.env.PORT || '5639' +const tmpDir = path.join(os.tmpdir(), 'epicreact-server-components') export default defineConfig({ - reporter: 'html', + outputDir: path.join(tmpDir, 'playwright-test-output'), + reporter: [ + [ + 'html', + { open: 'never', outputFolder: path.join(tmpDir, 'playwright-report') }, + ], + ], use: { baseURL: `http://localhost:${PORT}/`, trace: 'retain-on-failure',