forked from module-federation/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
41 lines (40 loc) · 1.07 KB
/
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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
timeout: 2 * 60 * 1000,
testDir: './e2e',
fullyParallel: true,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 4 : 0,
workers: process.env.CI ? 1 : undefined,
use: {
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
// webServer: [
// {
// command: 'npx nx serve 3008-webpack-host',
// url: 'http://localhost:3008/index.html',
// },
// // {
// // command: 'npx nx serve 3009-webpack-provider',
// // url: 'http://localhost:3009/index.html',
// // },
// {
// command: 'npx nx serve 3010-rspack-provider',
// url: 'http://localhost:3010/index.html',
// },
// {
// command: 'npx nx serve 3011-rspack-manifest-provider',
// url: 'http://localhost:3011/index.html',
// },
// {
// command: 'npx nx serve 3012-rspack-js-entry-provider',
// url: 'http://localhost:3012/index.html',
// },
// ],
});