Skip to content

Commit 69a4fa3

Browse files
authored
test(nextjs): Pin Nextjs 13 integration tests to [email protected] (#8551)
As long as our SDK and `[email protected]` aren't compatible, we need to hard-pin our NextJS integration tests to `13.4.9` to unblock our CI. We need to revert this change once we figured out 13.4.10! (Set a reminder for myself)
1 parent 2b4121f commit 69a4fa3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,21 @@ for NEXTJS_VERSION in 10 11 12 13; do
6767
rm -rf node_modules .next .env.local 2>/dev/null || true
6868

6969
echo "[nextjs@$NEXTJS_VERSION] Installing dependencies..."
70+
7071
# set the desired version of next long enough to run yarn, and then restore the old version (doing the restoration now
7172
# rather than during overall cleanup lets us look for "latest" in every loop)
73+
74+
if [ "$NEXTJS_VERSION" -eq "13" ]; then
75+
SPECIFIC_NEXT_VERSION="13.4.9"
76+
else
77+
SPECIFIC_NEXT_VERSION="$NEXTJS_VERSION.x"
78+
fi
79+
7280
cp package.json package.json.bak
7381
if [[ $(uname) == "Darwin" ]]; then
74-
sed -i "" /"next.*latest"/s/latest/"${NEXTJS_VERSION}.x"/ package.json
82+
sed -i "" /"next.*latest"/s/latest/"${SPECIFIC_NEXT_VERSION}"/ package.json
7583
else
76-
sed -i /"next.*latest"/s/latest/"${NEXTJS_VERSION}.x"/ package.json
84+
sed -i /"next.*latest"/s/latest/"${SPECIFIC_NEXT_VERSION}"/ package.json
7785
fi
7886

7987
# Next.js v13 requires React 18.2.0

0 commit comments

Comments
 (0)