From e9b23fbd3ba0232988b84ccf261fc836d9a83495 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 19 Sep 2023 19:40:08 +0100 Subject: [PATCH] test: use `node:` prefix to bypass require.cache call for builtins (#236) --- README.md | 2 +- test/constants.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5b0440e..f673168 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ npm install get-jwks ### Options ```js -const https = require('https') +const https = require('node:https') const buildGetJwks = require('get-jwks') const getJwks = buildGetJwks({ diff --git a/test/constants.js b/test/constants.js index 4b8ca96..0146be3 100644 --- a/test/constants.js +++ b/test/constants.js @@ -1,7 +1,7 @@ 'use strict' -const { readFileSync } = require('fs') -const path = require('path') +const { readFileSync } = require('node:fs') +const path = require('node:path') const jwt = require('jsonwebtoken') const domain = 'https://localhost/'