From 004630299528a1a91fbe320e1fe47aa8fad4596c Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 10 Sep 2023 08:31:36 +0100 Subject: [PATCH] perf: use `node:` prefix to bypass require.cache call for builtins See https://github.com/fastify/fastify-static/pull/407 --- test/basic.test.js | 2 +- test/custom-ajv.test.js | 2 +- test/expand.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/basic.test.js b/test/basic.test.js index 1ee43ca..420f615 100644 --- a/test/basic.test.js +++ b/test/basic.test.js @@ -2,7 +2,7 @@ const t = require('tap') const makeTest = require('./make-test') -const { join } = require('path') +const { join } = require('node:path') process.env.VALUE_FROM_ENV = 'pippo' diff --git a/test/custom-ajv.test.js b/test/custom-ajv.test.js index 51ba0eb..06135e9 100644 --- a/test/custom-ajv.test.js +++ b/test/custom-ajv.test.js @@ -3,7 +3,7 @@ const t = require('tap') const Ajv = require('ajv') const makeTest = require('./make-test') -const { join } = require('path') +const { join } = require('node:path') process.env.VALUE_FROM_ENV = 'pippo' diff --git a/test/expand.test.js b/test/expand.test.js index 6f20000..ef5f175 100644 --- a/test/expand.test.js +++ b/test/expand.test.js @@ -2,7 +2,7 @@ const t = require('tap') const makeTest = require('./make-test') -const { join } = require('path') +const { join } = require('node:path') process.env.K8S_NAMESPACE = 'pippo' process.env.K8S_CLUSTERID = 'pluto'