Skip to content

Commit 2f00f30

Browse files
authored
test: skip next.js tests on unsupported Node.js versions (#6849)
1 parent 9f80e76 commit 2f00f30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/dd-trace/test/appsec/index.next.plugin.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ describe('test suite', () => {
1616
}
1717

1818
const realVersion = require(`../../../../versions/next@${version}`).version()
19+
if (satisfies(realVersion, '>=16') && NODE_MAJOR < 20) {
20+
return
21+
}
1922

2023
const tests = [
2124
{

0 commit comments

Comments
 (0)