From 36ef407ca1f57aa9a0465a79d5966abc3a76b81d Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 10 Sep 2023 08:31:38 +0100 Subject: [PATCH] perf: use `node:` prefix to bypass require.cache call for builtins See https://github.com/fastify/fastify-static/pull/407 --- test/cors.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cors.test.js b/test/cors.test.js index 074b133..fa53e1f 100644 --- a/test/cors.test.js +++ b/test/cors.test.js @@ -1,10 +1,10 @@ 'use strict' const { test } = require('tap') -const { createReadStream, statSync, readFileSync } = require('fs') +const { createReadStream, statSync, readFileSync } = require('node:fs') const Fastify = require('fastify') const cors = require('../') -const { resolve } = require('path') +const { resolve } = require('node:path') test('Should add cors headers', t => { t.plan(4)