File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
- import path from 'path'
1
+ import path from 'node: path'
2
2
import AutoLoad from '@fastify/autoload'
3
- import { fileURLToPath } from 'url'
3
+ import { fileURLToPath } from 'node: url'
4
4
5
5
const __filename = fileURLToPath ( import . meta. url )
6
6
const __dirname = path . dirname ( __filename )
Original file line number Diff line number Diff line change 2
2
// between our tests.
3
3
4
4
import 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'
7
7
8
8
const __filename = fileURLToPath ( import . meta. url )
9
9
const __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' ;
2
2
import AutoLoad , { AutoloadPluginOptions } from '@fastify/autoload' ;
3
3
import { FastifyPluginAsync } from 'fastify' ;
4
- import { fileURLToPath } from 'url'
4
+ import { fileURLToPath } from 'node: url'
5
5
6
6
const __filename = fileURLToPath ( import . meta. url )
7
7
const __dirname = path . dirname ( __filename )
Original file line number Diff line number Diff line change 1
1
// This file contains code that we reuse between our tests.
2
2
import helper from 'fastify-cli/helper.js'
3
3
import * 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'
6
6
7
7
export type TestContext = {
8
8
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' ;
2
2
import AutoLoad , { AutoloadPluginOptions } from '@fastify/autoload' ;
3
3
import { FastifyPluginAsync , FastifyServerOptions } from 'fastify' ;
4
4
Original file line number Diff line number Diff line change 1
1
// This file contains code that we reuse between our tests.
2
2
const helper = require ( 'fastify-cli/helper.js' )
3
- import * as path from 'path'
3
+ import * as path from 'node: path'
4
4
import * as test from 'node:test'
5
5
6
6
export type TestContext = {
Original file line number Diff line number Diff line change 1
1
import { requireModule } from '../../util.js'
2
2
import { resolve , join } from 'node:path'
3
3
import t from 'tap'
4
- import * as url from 'url'
4
+ import * as url from 'node: url'
5
5
6
6
const test = t . test
7
7
You can’t perform that action at this time.
0 commit comments