forked from live-codes/livecodes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
playwright.config.ts
41 lines (40 loc) · 1006 Bytes
/
playwright.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// eslint-disable-next-line import/no-extraneous-dependencies
import type { PlaywrightTestConfig } from '@playwright/test';
// eslint-disable-next-line import/no-internal-modules
import type { Config } from './src/livecodes/models';
const config: PlaywrightTestConfig<{ editor: Config['editor'] }> = {
globalSetup: require.resolve('./e2e/global-setup'),
testDir: 'e2e',
retries: process.env.CI ? 10 : 2,
timeout: 60000,
globalTimeout: 45 * 60 * 1000,
webServer: {
command: 'npm run serve',
url: 'http://127.0.0.1:8080',
reuseExistingServer: !process.env.CI,
},
projects: [
{
name: 'monaco',
use: {
editor: 'monaco',
headless: true,
},
},
// {
// name: 'codemirror',
// use: {
// editor: 'codemirror',
// headless: true,
// },
// },
// {
// name: 'codejar',
// use: {
// editor: 'codejar',
// headless: true,
// },
// },
],
};
export default config;