Skip to content

Commit 0f642cc

Browse files
chore: fix sh
1 parent aaa376a commit 0f642cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/e2e-next-all.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ npx nx run-many --targets=build --projects=tag:type:pkg
77

88
echo "🧪 Running E2E Test for Next.js Dev - Home"
99
killall node 2>/dev/null || true
10-
pnpm run app:next:dev
10+
pnpm run app:next:dev & sleep 2 && npx wait-on 3000 3001 3002
1111
npx nx run 3000-home:test:e2e
1212

1313
echo "🧪 Running E2E Test for Next.js Dev - Shop"
1414
killall node 2>/dev/null || true
15-
pnpm run app:next:dev
15+
pnpm run app:next:dev & sleep 2 && npx wait-on 3000 3001 3002
1616
npx nx run 3001-shop:test:e2e
1717

1818
echo "🧪 Running E2E Test for Next.js Dev - Checkout"
1919
killall node 2>/dev/null || true
20-
pnpm run app:next:dev
20+
pnpm run app:next:dev & sleep 2 && npx wait-on 3000 3001 3002
2121
npx nx run 3002-checkout:test:e2e
2222

2323
echo "✅ All E2E tests completed successfully!"

0 commit comments

Comments
 (0)