Skip to content

Commit 9d79c74

Browse files
authored
chore: dx improvements (#654)
* chore: npm start:hosted boots up full test env * test: playwright ipfs-gateway waits for build * chore: fix dep-check
1 parent 79f4f33 commit 9d79c74

File tree

4 files changed

+33
-27
lines changed

4 files changed

+33
-27
lines changed

.aegir.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export default {
2121
'tachyons',
2222

2323
// playwright dependencies
24-
'http-server'
24+
'http-server',
25+
26+
// package.json or playwright.config.js deps
27+
'wait-on'
2528
],
2629
productionIgnorePatterns: [
2730
'webpack.config.js',

package-lock.json

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"build:tsc": "tsc",
1717
"build:esbuild": "node build.js",
1818
"start": "node build.js --watch --serve",
19+
"start:hosted": "concurrently --kill-others -c 'auto' -n 'app,gateway,proxy' \"npm run start\" \"wait-on 'http://localhost:8345' && cross-env PROXY_PORT=3334 GATEWAY_PORT=8088 POLL_INTERVAL=1000 node test-e2e/ipfs-gateway.js\" \"cross-env BACKEND_PORT=8345 PROXY_PORT=3333 node test-e2e/reverse-proxy.js\"",
1920
"test": "run-s test:iso 'test:node -- -b false'",
2021
"test:iso": "aegir test -f dist-tsc/test/**/*.spec.js",
2122
"test:browsers": "playwright test -c playwright.config.js",
@@ -74,6 +75,7 @@
7475
"@playwright/test": "^1.48.2",
7576
"@types/react": "^19.0.1",
7677
"aegir": "^45.1.3",
78+
"concurrently": "^9.1.2",
7779
"cross-env": "^7.0.3",
7880
"esbuild": "^0.24.0",
7981
"execa": "^8.0.1",
@@ -85,7 +87,8 @@
8587
"npm-run-all": "^4.1.5",
8688
"patch-package": "^8.0.0",
8789
"playwright": "^1.45.3",
88-
"rimraf": "^6.0.1"
90+
"rimraf": "^6.0.1",
91+
"wait-on": "^8.0.3"
8992
},
9093
"sideEffects": [
9194
"*.css"

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default defineConfig({
9292
stderr: process.env.CI ? undefined : 'pipe'
9393
},
9494
{
95-
command: 'node test-e2e/ipfs-gateway.js',
95+
command: 'npx wait-on "http://localhost:3000" && node test-e2e/ipfs-gateway.js',
9696
timeout: 5 * 1000,
9797
env: {
9898
PROXY_PORT: '3334',

0 commit comments

Comments
 (0)