Skip to content

Commit b95044b

Browse files
committed
test: ensured Prisma v7 tests ran only on supported Node.js versions
1 parent 4511ca0 commit b95044b

File tree

1 file changed

+4
-2
lines changed
  • packages/collector/test/tracing/databases/prisma

1 file changed

+4
-2
lines changed

packages/collector/test/tracing/databases/prisma/test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ describe('tracing/prisma', function () {
3131
providers.forEach(provider => {
3232
const mochaSuiteFn = supportedVersion(process.versions.node) ? describe : describe.skip;
3333

34-
// V7 only support version v20.19 and above
35-
if (version === 'latest' && semver.lt(process.versions.node, '20.19.0')) {
34+
// V7 only supports Node.js versions 20.19+, 22.12+, 24.0+
35+
// https://github.com/prisma/prisma/blob/main/package.json#L7C1-L7C42
36+
const requiredNodeVersion = '^20.19.0 || ^22.12.0 || >=24.0';
37+
if (version === 'latest' && !semver.satisfies(process.versions.node, requiredNodeVersion)) {
3638
return;
3739
}
3840
// NOTE: require-mock is not working with esm apps. There is also no need to run the ESM APP for all versions.

0 commit comments

Comments
 (0)