File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import path from 'path'
1+ import path from 'node: path'
22import AutoLoad from '@fastify/autoload'
3- import { fileURLToPath } from 'url'
3+ import { fileURLToPath } from 'node: url'
44
55const __filename = fileURLToPath ( import . meta. url )
66const __dirname = path . dirname ( __filename )
Original file line number Diff line number Diff line change 22// between our tests.
33
44import helper from 'fastify-cli/helper.js'
5- import path from 'path'
6- import { fileURLToPath } from 'url'
5+ import path from 'node: path'
6+ import { fileURLToPath } from 'node: url'
77
88const __filename = fileURLToPath ( import . meta. url )
99const __dirname = path . dirname ( __filename )
Original file line number Diff line number Diff line change 1- import * as path from 'path' ;
1+ import * as path from 'node: path' ;
22import AutoLoad , { AutoloadPluginOptions } from '@fastify/autoload' ;
33import { FastifyPluginAsync } from 'fastify' ;
4- import { fileURLToPath } from 'url'
4+ import { fileURLToPath } from 'node: url'
55
66const __filename = fileURLToPath ( import . meta. url )
77const __dirname = path . dirname ( __filename )
Original file line number Diff line number Diff line change 11// This file contains code that we reuse between our tests.
22import helper from 'fastify-cli/helper.js'
33import * as test from 'node:test'
4- import * as path from 'path'
5- import { fileURLToPath } from 'url'
4+ import * as path from 'node: path'
5+ import { fileURLToPath } from 'node: url'
66
77export type TestContext = {
88 after : typeof test . after
Original file line number Diff line number Diff line change 1- import { join } from 'path' ;
1+ import { join } from 'node: path' ;
22import AutoLoad , { AutoloadPluginOptions } from '@fastify/autoload' ;
33import { FastifyPluginAsync , FastifyServerOptions } from 'fastify' ;
44
Original file line number Diff line number Diff line change 11// This file contains code that we reuse between our tests.
22const helper = require ( 'fastify-cli/helper.js' )
3- import * as path from 'path'
3+ import * as path from 'node: path'
44import * as test from 'node:test'
55
66export type TestContext = {
Original file line number Diff line number Diff line change 11import { requireModule } from '../../util.js'
22import { resolve , join } from 'node:path'
33import t from 'tap'
4- import * as url from 'url'
4+ import * as url from 'node: url'
55
66const test = t . test
77
You can’t perform that action at this time.
0 commit comments