Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Sep 10, 2023
1 parent fcbbcc1 commit 36ef407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cors.test.js
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 36ef407

Please sign in to comment.