Skip to content

Commit f5d9b5a

Browse files
authored
tests: fix fastify TAV tests (#4790)
1 parent a615e41 commit f5d9b5a

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.tav.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -420,16 +420,11 @@ restify:
420420
# - #1086 suggests [email protected] was a broken release, skip it.
421421
# - [email protected] is broken: https://github.com/fastify/fastify/issues/3998#issuecomment-1153662513
422422
# - [email protected] - 4.16.2 (inclusive) are broken releases
423+
# - [email protected] bumped to `pino@^9.0.0`, `[email protected]` is using Node.js' `tracingChannel` API. Breaking support for nodejs <18.19.0
423424
# - Do not run "test/sanitize-field-names/fastify.test.js" for older fastify,
424425
# because the test file uses '@fastify/formbody', which only has versions
425426
# for fastify >=3.
426427
fastify:
427-
- versions: '1.0.0 || 1.14.6' # subset of '1.x'
428-
node: '>=6 <12'
429-
commands:
430-
- node test/instrumentation/modules/fastify/fastify.test.js
431-
- node test/instrumentation/modules/fastify/async-await.test.js
432-
- node test/instrumentation/modules/fastify/set-framework.test.js
433428
- versions: '2.0.0 || 2.15.3' # subset of '>=2.0.0 <2.4.0 || >2.4.0 <3'
434429
node: '>=6 <15'
435430
commands:
@@ -448,7 +443,7 @@ fastify:
448443
- node test/sanitize-field-names/fastify.test.js
449444
- versions:
450445
mode: max-7
451-
include: '>=4 <5'
446+
include: '>=4 <4.26.2'
452447
exclude: '4.0.1 || >=4.16.0 <=4.16.2'
453448
peerDependencies: '@fastify/formbody@^7'
454449
node: '>=14.6.0'
@@ -457,6 +452,16 @@ fastify:
457452
- node test/instrumentation/modules/fastify/async-await.test.js
458453
- node test/instrumentation/modules/fastify/set-framework.test.js
459454
- node test/sanitize-field-names/fastify.test.js
455+
- versions:
456+
mode: max-3
457+
include: '>=4.26.2 <5'
458+
peerDependencies: '@fastify/formbody@^7'
459+
node: '>=18.19.0'
460+
commands:
461+
- node test/instrumentation/modules/fastify/fastify.test.js
462+
- node test/instrumentation/modules/fastify/async-await.test.js
463+
- node test/instrumentation/modules/fastify/set-framework.test.js
464+
- node test/sanitize-field-names/fastify.test.js
460465
- versions:
461466
mode: max-7
462467
include: '>=5 <6'

docs/reference/fastify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ But in many cases, information about the HTTP request itself isn’t enough. To
151151

152152
See [*Supported technologies*](/reference/supported-technologies.md) for details.
153153

154-
See also: [Fastify’s own LTS documentation.](https://www.fastify.io/docs/latest/LTS/)
154+
See also: [Fastify’s own LTS documentation.](https://fastify.dev/docs/latest/Reference/LTS/)
155155

156156

157157
## Troubleshooting [fastify-troubleshooting]

docs/reference/supported-technologies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Though you can use Elastic APM [with any Node.js framework](/reference/custom-st
4949
| [AWS Lambda](/reference/lambda.md) | N/A | |
5050
| [Azure Functions](/reference/azure-functions.md) | v3, v4 | [Node.js programming model v3 and v4](https://learn.microsoft.com/en-us/azure/azure-functions/functions-node-upgrade-v4) |
5151
| [Express](/reference/express.md) | >=4.0.0 <6.0.0 | |
52-
| [Fastify](/reference/fastify.md) | >=1.0.0 | See also [Fastify’s own LTS documentation](https://www.fastify.io/docs/latest/Reference/LTS/) |
52+
| [Fastify](/reference/fastify.md) | >=2.0.0 | See also [Fastify’s own LTS documentation](https://www.fastify.io/docs/latest/Reference/LTS/) |
5353
| [@hapi/hapi](/reference/hapi.md) | >=17.9.0 <22.0.0 | |
5454
| [Koa](/reference/koa.md) via koa-router or @koa/router | >=5.2.0 <14.0.0 | Koa doesn’t have a built in router, so we can’t support Koa directly since we rely on router information for full support. We currently support the most popular Koa router called [koa-router](https://github.com/koajs/koa-router). |
5555
| [Restify](/reference/restify.md) | >=5.2.0 <12.0.0 | |

0 commit comments

Comments
 (0)