Skip to content

Commit 540adac

Browse files
authored
Revert "test(nextjs): Pin Nextjs 13 integration tests to [email protected] (#8551)" (#8667)
1 parent e7417d5 commit 540adac

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,13 @@ 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-
7170
# set the desired version of next long enough to run yarn, and then restore the old version (doing the restoration now
7271
# 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-
8072
cp package.json package.json.bak
8173
if [[ $(uname) == "Darwin" ]]; then
82-
sed -i "" /"next.*latest"/s/latest/"${SPECIFIC_NEXT_VERSION}"/ package.json
74+
sed -i "" /"next.*latest"/s/latest/"${NEXTJS_VERSION}.x"/ package.json
8375
else
84-
sed -i /"next.*latest"/s/latest/"${SPECIFIC_NEXT_VERSION}"/ package.json
76+
sed -i /"next.*latest"/s/latest/"${NEXTJS_VERSION}.x"/ package.json
8577
fi
8678

8779
# Next.js v13 requires React 18.2.0

0 commit comments

Comments
 (0)