mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
e1b4bb2def
* base tracing with playwright * use github reporter on CI * Use the config to capture traces Co-authored-by: Filipe Freire <livrofubia@gmail.com>
24 lines
595 B
TypeScript
24 lines
595 B
TypeScript
/* eslint-disable filenames/match-exported */
|
|
import { PlaywrightTestConfig } from '@playwright/test';
|
|
const config: PlaywrightTestConfig = {
|
|
webServer: {
|
|
command: 'npm run serve',
|
|
port: 4010,
|
|
timeout: 120 * 1000,
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
use: {
|
|
trace: {
|
|
mode: 'retain-on-failure',
|
|
screenshots: true,
|
|
snapshots: true,
|
|
},
|
|
},
|
|
reporter: process.env.CI ? 'github' : 'list',
|
|
timeout: process.env.CI ? 60 * 1000 : 20 * 1000,
|
|
forbidOnly: !!process.env.CI,
|
|
outputDir: 'screenshots',
|
|
testDir: 'tests',
|
|
};
|
|
export default config;
|