From 87b8bc3b87d226be0e63f141040758e3f3e2dca7 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 13 Dec 2024 13:20:21 +0000 Subject: [PATCH] perf: use `node:` prefix to bypass require.cache call for builtins (#201) Signed-off-by: Frazer Smith --- test-tap/requestContextPlugin.e2e.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-tap/requestContextPlugin.e2e.test.js b/test-tap/requestContextPlugin.e2e.test.js index 5da3ce2..621624b 100644 --- a/test-tap/requestContextPlugin.e2e.test.js +++ b/test-tap/requestContextPlugin.e2e.test.js @@ -11,7 +11,7 @@ const { fastifyRequestContext } = require('..') const { TestService } = require('../test/internal/testService') const t = require('tap') const { CustomResource, AsyncHookContainer } = require('../test/internal/watcherService') -const { executionAsyncId } = require('async_hooks') +const { executionAsyncId } = require('node:async_hooks') const test = t.test let app