Skip to content

Commit 5e17472

Browse files
authored
test(v2): add vite-ecosystem-ci scripts (#2076)
1 parent d7a1b8e commit 5e17472

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

apps/tests/playwright.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ export default defineConfig({
55
testMatch: "**/*.test.ts",
66

77
webServer: {
8-
command: "pnpm run dev",
9-
url: "http://localhost:3000",
8+
command: "pnpm run dev --host 127.0.0.1 --port 3000 --strictPort",
9+
url: "http://127.0.0.1:3000",
1010
reuseExistingServer: true,
1111
stdout: "pipe",
1212
stderr: "pipe",
1313
},
1414

1515
use: {
16-
baseURL: "http://localhost:3000",
16+
baseURL: "http://127.0.0.1:3000",
1717
trace: "on-first-retry",
1818
},
1919

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
"clean:test": "pnpx rimraf .tmp",
2727
"release": "pnpm build && changeset publish",
2828
"format": "pnpm oxfmt",
29-
"rewrite-exports": "pnpm --filter='./packages/*' -c exec \"echo \\$(cat package.json | jq '.exports = .publishConfig.exports') > package.json\""
29+
"rewrite-exports": "pnpm --filter='./packages/*' -c exec \"echo \\$(cat package.json | jq '.exports = .publishConfig.exports') > package.json\"",
30+
"vite-ecosystem-ci:build": "pnpm run build:all && pnpm --filter fixture-nitro-3 build",
31+
"vite-ecosystem-ci:before-test": "pnpm --filter tests exec playwright install chromium",
32+
"vite-ecosystem-ci:test": "pnpm --filter tests run test:all"
3033
},
3134
"devDependencies": {
3235
"@changesets/cli": "^2.29.8",

0 commit comments

Comments
 (0)