diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 94b30d33d6..b00176edb6 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -146,7 +146,7 @@ jobs: - name: patch Next.js run: | cp ../${{ env.runtime-path }}/tests/netlify-deploy.ts test/lib/next-modes/ - git apply ../${{ env.runtime-path }}/tests/e2e-utils.patch || git apply ../${{ env.runtime-path }}/tests/e2e-utils-v2.patch + git apply ../${{ env.runtime-path }}/tests/e2e-utils.patch || git apply ../${{ env.runtime-path }}/tests/e2e-utils-v2.patch || git apply ../${{ env.runtime-path }}/tests/e2e-utils-v3.patch working-directory: ${{ env.next-path }} - name: install Next.js diff --git a/run-local-test.sh b/run-local-test.sh index 5c1951975e..974a11cd3a 100755 --- a/run-local-test.sh +++ b/run-local-test.sh @@ -15,7 +15,7 @@ export NEXT_TEST_MODE=deploy export RUNTIME_DIR=$(pwd) cp tests/netlify-deploy.ts ../next.js/test/lib/next-modes/netlify-deploy.ts cd ../next.js/ -git apply $RUNTIME_DIR/tests/e2e-utils.patch || git apply $RUNTIME_DIR/tests/e2e-utils-v2.patch +git apply $RUNTIME_DIR/tests/e2e-utils.patch || git apply $RUNTIME_DIR/tests/e2e-utils-v2.patch || git apply $RUNTIME_DIR/tests/e2e-utils-v3.patch node run-tests.js --type e2e --debug --test-pattern $1 git checkout -- test/lib/e2e-utils.ts diff --git a/tests/e2e-utils-v3.patch b/tests/e2e-utils-v3.patch new file mode 100644 index 0000000000..50efceff89 --- /dev/null +++ b/tests/e2e-utils-v3.patch @@ -0,0 +1,13 @@ +diff --git a/test/lib/e2e-utils/index.ts b/test/lib/e2e-utils/index.ts +index 182d2b7cc1..18abab2eb6 100644 +--- a/test/lib/e2e-utils/index.ts ++++ b/test/lib/e2e-utils/index.ts +@@ -5,7 +5,7 @@ import { PHASE_DEVELOPMENT_SERVER } from 'next/constants' + import { NextInstance, NextInstanceOpts } from '../next-modes/base' + import { NextDevInstance } from '../next-modes/next-dev' + import { NextStartInstance } from '../next-modes/next-start' +-import { NextDeployInstance } from '../next-modes/next-deploy' ++import { NextDeployInstance } from '../next-modes/netlify-deploy' + import { shouldUseTurbopack } from '../next-test-utils' + + export type { NextInstance }