Skip to content

Commit

Permalink
Revert "test(nextjs): Pin Nextjs 13 integration tests to next@13.4.9 (
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 authored Jul 28, 2023
1 parent e7417d5 commit 540adac
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/nextjs/test/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,13 @@ for NEXTJS_VERSION in 10 11 12 13; do
rm -rf node_modules .next .env.local 2>/dev/null || true

echo "[nextjs@$NEXTJS_VERSION] Installing dependencies..."

# set the desired version of next long enough to run yarn, and then restore the old version (doing the restoration now
# rather than during overall cleanup lets us look for "latest" in every loop)

if [ "$NEXTJS_VERSION" -eq "13" ]; then
SPECIFIC_NEXT_VERSION="13.4.9"
else
SPECIFIC_NEXT_VERSION="$NEXTJS_VERSION.x"
fi

cp package.json package.json.bak
if [[ $(uname) == "Darwin" ]]; then
sed -i "" /"next.*latest"/s/latest/"${SPECIFIC_NEXT_VERSION}"/ package.json
sed -i "" /"next.*latest"/s/latest/"${NEXTJS_VERSION}.x"/ package.json
else
sed -i /"next.*latest"/s/latest/"${SPECIFIC_NEXT_VERSION}"/ package.json
sed -i /"next.*latest"/s/latest/"${NEXTJS_VERSION}.x"/ package.json
fi

# Next.js v13 requires React 18.2.0
Expand Down

0 comments on commit 540adac

Please sign in to comment.