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 ccd453b commit 2d7173a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict'

const { test } = require('tap')
const { join, basename } = require('path')
const { mkdtempSync, readdirSync } = require('fs')
const { tmpdir } = require('os')
const { spawnSync } = require('child_process')
const { join, basename } = require('node:path')
const { mkdtempSync, readdirSync } = require('node:fs')
const { tmpdir } = require('node:os')
const { spawnSync } = require('node:child_process')

test('generates a fastify project in the current folder', async ({ equal, match }) => {
const dir = mkdtempSync(join(tmpdir(), 'create-fastify-test'))
Expand Down

0 comments on commit 2d7173a

Please sign in to comment.