diff --git a/packages/nextjs/test/integration/test/server/doubleEndMethodOnVercel.js b/packages/nextjs/test/integration/test/server/doubleEndMethodOnVercel.js index fa2b0e7cbeb4..cd3af491bb32 100644 --- a/packages/nextjs/test/integration/test/server/doubleEndMethodOnVercel.js +++ b/packages/nextjs/test/integration/test/server/doubleEndMethodOnVercel.js @@ -5,6 +5,10 @@ const { getAsync } = require('../utils/server'); // `res.send` multiple times in one request handler. // https://github.com/getsentry/sentry-javascript/issues/6670 module.exports = async ({ url: urlBase }) => { + if (process.env.NODE_MAJOR === '10') { + console.log('not running doubleEndMethodOnVercel test on Node 10'); + return; + } const response = await getAsync(`${urlBase}/api/doubleEndMethodOnVercel`); assert.equal(response, '{"success":true}'); }; diff --git a/packages/nextjs/test/run-integration-tests.sh b/packages/nextjs/test/run-integration-tests.sh index 62033d3982ad..a93602d681d7 100755 --- a/packages/nextjs/test/run-integration-tests.sh +++ b/packages/nextjs/test/run-integration-tests.sh @@ -36,6 +36,7 @@ for NEXTJS_VERSION in 10 11 12 13; do # having to pass this value from function to function to function to the one spot, deep in some callstack, where we # actually need it export NEXTJS_VERSION=$NEXTJS_VERSION + export NODE_MAJOR=$NODE_MAJOR # Next 10 requires at least Node v10 if [ "$NODE_MAJOR" -lt "10" ]; then