Skip to content

Commit 372d196

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

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +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] Skipping client tests on Node $NODE_MAJOR"
140138
else
141-
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Client integration tests failed"
142-
exit 1
139+
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Running client tests with options: $args"
140+
(cd .. && yarn test:integration:client) || EXIT_CODE=$?
141+
if [ $EXIT_CODE -eq 0 ]; then
142+
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Client integration tests passed"
143+
else
144+
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Client integration tests failed"
145+
exit 1
146+
fi
143147
fi
144148
done
145149
done

0 commit comments

Comments
 (0)