Skip to content

Commit 73e0c47

Browse files
committed
Skip client-side integration tests on node < 14.
1 parent 1537c55 commit 73e0c47

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

packages/nextjs/test/run-integration-tests.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,17 @@ for NEXTJS_VERSION in 10 11 12 13; do
133133
exit 1
134134
fi
135135

136-
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Running client tests with options: $args"
137-
(cd .. && yarn test:integration:client) || EXIT_CODE=$?
138-
if [ $EXIT_CODE -eq 0 ]; then
139-
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Client integration tests passed"
136+
if [ "$NODE_MAJOR" -lt "14" ]; then
137+
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Running client tests with options: $args"
138+
(cd .. && yarn test:integration:client) || EXIT_CODE=$?
139+
if [ $EXIT_CODE -eq 0 ]; then
140+
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Client integration tests passed"
141+
else
142+
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Client integration tests failed"
143+
exit 1
144+
fi
140145
else
141-
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Client integration tests failed"
146+
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Skipping client tests on Node $NODE_MAJOR"
142147
exit 1
143148
fi
144149
done

0 commit comments

Comments
 (0)