Skip to content

Commit 0073ce5

Browse files
committed
fix: test only chromium
1 parent c8433e6 commit 0073ce5

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

test/playwright.config.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import type { PlaywrightTestConfig } from '@playwright/test';
1+
import type { PlaywrightTestConfig } from "@playwright/test";
22

33
const config: PlaywrightTestConfig = {
4-
webServer: {
5-
command: 'npm run build && npm run preview',
6-
port: 4173
7-
},
8-
testDir: 'tests',
9-
testMatch: /(.+\.)?(test|spec)\.[jt]s/
4+
webServer: {
5+
command: "npm run build && npm run preview",
6+
port: 4173,
7+
},
8+
testDir: "tests",
9+
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
10+
projects: [
11+
{
12+
name: "chrome",
13+
use: { browserName: "chromium" },
14+
},
15+
],
1016
};
1117

1218
export default config;

0 commit comments

Comments
 (0)