@@ -9,6 +9,7 @@ const { satisfies } = require('semver')
9
9
const path = require ( 'path' )
10
10
11
11
const agent = require ( '../plugins/agent' )
12
+ const { NODE_MAJOR , NODE_MINOR , NODE_PATCH } = require ( '../../../../version' )
12
13
13
14
describe ( 'test suite' , ( ) => {
14
15
let server
@@ -17,6 +18,11 @@ describe('test suite', () => {
17
18
const satisfiesStandalone = version => satisfies ( version , '>=12.0.0' )
18
19
19
20
withVersions ( 'next' , 'next' , '>=11.1' , version => {
21
+ if ( version === '>=11.0.0 <13' && NODE_MAJOR === 24 &&
22
+ NODE_MINOR === 0 && NODE_PATCH === 0 ) {
23
+ return // node 24.0.0 fails, but 24.0.1 works
24
+ }
25
+
20
26
const realVersion = require ( `../../../../versions/next@${ version } ` ) . version ( )
21
27
22
28
function initApp ( appName ) {
@@ -146,7 +152,7 @@ describe('test suite', () => {
146
152
}
147
153
]
148
154
149
- if ( satisfies ( realVersion , '>=13.2' ) ) {
155
+ if ( satisfies ( realVersion , '>=13.2' ) && ( NODE_MAJOR < 24 || satisfies ( realVersion , '!=13.2' ) ) ) {
150
156
tests . push ( {
151
157
appName : 'app-dir' ,
152
158
serverPath : '.next/standalone/server.js'
0 commit comments