Skip to content

Commit 0122a9f

Browse files
authored
test(nextjs): Disable doubleEndMethodOnVercel on Node 10 (#6792)
1 parent ff165dc commit 0122a9f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/nextjs/test/integration/test/server/doubleEndMethodOnVercel.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ const { getAsync } = require('../utils/server');
55
// `res.send` multiple times in one request handler.
66
// https://github.com/getsentry/sentry-javascript/issues/6670
77
module.exports = async ({ url: urlBase }) => {
8+
if (process.env.NODE_MAJOR === '10') {
9+
console.log('not running doubleEndMethodOnVercel test on Node 10');
10+
return;
11+
}
812
const response = await getAsync(`${urlBase}/api/doubleEndMethodOnVercel`);
913
assert.equal(response, '{"success":true}');
1014
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ for NEXTJS_VERSION in 10 11 12 13; do
3636
# having to pass this value from function to function to function to the one spot, deep in some callstack, where we
3737
# actually need it
3838
export NEXTJS_VERSION=$NEXTJS_VERSION
39+
export NODE_MAJOR=$NODE_MAJOR
3940

4041
# Next 10 requires at least Node v10
4142
if [ "$NODE_MAJOR" -lt "10" ]; then

0 commit comments

Comments
 (0)