File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ jest.mock("node:fs/promises", () => {
55
55
writeFile : jest . fn ( ( filePath : string , text : string ) => {
56
56
setFile ( filePath , text ) ;
57
57
} ) ,
58
- mkdir : jest . fn ( ( ) => { } ) ,
58
+ mkdir : jest . fn ( ( ) => { } ) ,
59
59
} ;
60
60
} ) ;
61
61
jest . mock ( "node:fs" , ( ) => {
@@ -224,6 +224,8 @@ describe("config", () => {
224
224
beforeEach ( ( ) => {
225
225
const userConfigData = {
226
226
includePrivate : true ,
227
+ address : "localhost" ,
228
+ family : "IPv4" ,
227
229
port : 9999 ,
228
230
} ;
229
231
resetFiles ( ) ;
@@ -234,6 +236,8 @@ describe("config", () => {
234
236
const userConfig = await config . getUserConfig ( ) ;
235
237
expect ( userConfig ) . toStrictEqual ( {
236
238
includePrivate : true ,
239
+ address : "localhost" ,
240
+ family : "IPv4" ,
237
241
port : 9999 ,
238
242
} ) ;
239
243
} ) ;
@@ -248,6 +252,8 @@ describe("config", () => {
248
252
const userConfig = await config . getUserConfig ( ) ;
249
253
expect ( userConfig ) . toStrictEqual ( {
250
254
includePrivate : false ,
255
+ address : "localhost" ,
256
+ family : "IPv4" ,
251
257
port : 8888 ,
252
258
} ) ;
253
259
} ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ interface Options {
14
14
15
15
type UserConfig = {
16
16
includePrivate : boolean ;
17
+ address : string ;
18
+ family : string ;
17
19
port : number ;
18
20
} ;
19
21
@@ -107,6 +109,8 @@ class Config {
107
109
async getUserConfig ( ) {
108
110
const defaultConfig = {
109
111
includePrivate : false ,
112
+ address : "localhost" ,
113
+ family : "IPv4" ,
110
114
port : 8888 ,
111
115
} as UserConfig ;
112
116
You can’t perform that action at this time.
0 commit comments