Skip to content

Commit

Permalink
improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Sep 18, 2024
1 parent dfc9e15 commit 874d4a3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion epicshop/playwright.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 874d4a3

Please sign in to comment.