Skip to content

Commit

Permalink
perf: use node: prefix to bypass require.cache call for builtins (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Sep 11, 2023
1 parent ccd453b commit 10acbb1
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 10acbb1

Please sign in to comment.