Skip to content

Commit 7d82e11

Browse files
author
Luca Forstner
committed
test(nextjs): Only run integration tests on chromium
1 parent 8b3a576 commit 7d82e11

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

packages/nextjs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@
6868
"test:build": "yarn ts-node test/buildProcess/runTest.ts",
6969
"test:unit": "jest",
7070
"test:integration": "./test/run-integration-tests.sh && yarn test:types",
71-
"test:integration:ci": "run-s test:integration:clean test:integration:client:ci test:integration:server",
7271
"test:integration:prepare": "(cd test/integration && yarn build && yarn start)",
7372
"test:integration:clean": "(cd test/integration && rimraf .cache node_modules build)",
74-
"test:integration:client": "yarn playwright install-deps && yarn playwright test test/integration/test/client/",
73+
"test:integration:client": "yarn playwright test test/integration/test/client/ --project=chromium",
7574
"test:integration:client:ci": "yarn test:integration:client --browser='all' --reporter='line'",
7675
"test:integration:server": "export NODE_OPTIONS='--stack-trace-limit=25' && jest --config=test/integration/jest.config.js test/integration/test/server/",
7776
"test:types": "cd test/types && yarn test",

packages/nextjs/playwright.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { PlaywrightTestConfig } from '@playwright/test';
2+
import { devices } from '@playwright/test';
23

34
const config: PlaywrightTestConfig = {
45
retries: 2,
@@ -11,6 +12,15 @@ const config: PlaywrightTestConfig = {
1112
command: 'yarn test:integration:prepare',
1213
port: 3000,
1314
},
15+
16+
projects: [
17+
{
18+
name: 'chromium',
19+
use: {
20+
...devices['Desktop Chrome'],
21+
},
22+
},
23+
],
1424
};
1525

1626
export default config;

0 commit comments

Comments
 (0)