Skip to content

Commit 874d4a3

Browse files
committed
improve config
1 parent dfc9e15 commit 874d4a3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

epicshop/playwright.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
import os from 'os'
2+
import path from 'path'
13
import { defineConfig, devices } from '@playwright/test'
24

35
const PORT = process.env.PORT || '5639'
6+
const tmpDir = path.join(os.tmpdir(), 'epicreact-server-components')
47

58
export default defineConfig({
6-
reporter: 'html',
9+
outputDir: path.join(tmpDir, 'playwright-test-output'),
10+
reporter: [
11+
[
12+
'html',
13+
{ open: 'never', outputFolder: path.join(tmpDir, 'playwright-report') },
14+
],
15+
],
716
use: {
817
baseURL: `http://localhost:${PORT}/`,
918
trace: 'retain-on-failure',

0 commit comments

Comments
 (0)