Skip to content

Commit

Permalink
tests: update fastify is_compat method
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Sep 23, 2024
1 parent 7169ae7 commit 3478c21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/_is_fastify_incompat.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ function isFastifyIncompat() {
) {
return msg;
}
// https://fastify.dev/docs/latest/Guides/Migration-Guide-V5/#long-term-support-cycle
if (
semver.satisfies(fastifyVer, '5.x') &&
!semver.satisfies(nodeVer, '>=20')
) {
return msg;
}

return false;
}
Expand Down

0 comments on commit 3478c21

Please sign in to comment.