File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export interface Config {
27
27
Mode : string ;
28
28
}
29
29
export function NewContext ( conf : Config ) {
30
+ console . log ( "Keploy running in: " , process . env . KEPLOY_MODE , " mode" ) ;
30
31
let mode = MODE_TEST ,
31
32
path = conf !== undefined && conf . Path !== undefined ? conf . Path : "" ;
32
33
@@ -36,15 +37,13 @@ export function NewContext(conf: Config) {
36
37
} catch ( err ) {
37
38
console . log ( "Failed to get the path of current directory" ) ;
38
39
console . log ( err ) ;
39
- console . log ( "Keploy mode:" , process . env . KEPLOY_MODE )
40
40
}
41
41
} else if ( path [ 0 ] !== "/" ) {
42
42
try {
43
43
path = resolve ( conf . Path ) ;
44
44
} catch ( err ) {
45
45
console . log ( "Failed to get the absolute path from relative conf.path" ) ;
46
46
console . log ( err ) ;
47
- console . log ( "Keploy mode:" , process . env . KEPLOY_MODE )
48
47
}
49
48
}
50
49
path += "/mocks" ;
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ export default class HttpClient {
142
142
await http ( options ) ;
143
143
} catch ( error ) {
144
144
console . log ( error ) ;
145
- console . log ( "Keploy mode:" , process . env . KEPLOY_MODE ) ;
146
145
}
147
146
}
148
147
}
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ export default class Keploy {
76
76
this . responses = { } ;
77
77
this . dependencies = { } ;
78
78
this . mocks = { } ;
79
+ console . log ( "Keploy running in: " , process . env . KEPLOY_MODE , " mode" ) ;
79
80
}
80
81
81
82
validateServerConfig ( {
@@ -132,7 +133,7 @@ export default class Keploy {
132
133
133
134
async runTests ( ) {
134
135
if ( process . env . KEPLOY_MODE == "test" ) {
135
- console . log ( "test starting in " + this . appConfig . delay + "s" + " KEPLOY_MODE: " + process . env . KEPLOY_MODE ) ;
136
+ console . log ( "test starting in " + this . appConfig . delay + "s" ) ;
136
137
setTimeout ( async ( ) => {
137
138
await this . test ( ) ;
138
139
} , this . appConfig . delay * 1000 ) ;
@@ -241,8 +242,6 @@ export default class Keploy {
241
242
testId ,
242
243
" }, { total tests: " ,
243
244
totalTests ,
244
- " },{ Keploy mode:" ,
245
- process . env . KEPLOY_MODE ,
246
245
" }"
247
246
) ;
248
247
let pass = true ;
@@ -278,9 +277,7 @@ export default class Keploy {
278
277
if ( err !== null ) {
279
278
console . error (
280
279
"failed to call test method of keploy. error: " ,
281
- err ,
282
- "Keploy mode:" ,
283
- process . env . KEPLOY_MODE ,
280
+ err
284
281
) ;
285
282
}
286
283
You can’t perform that action at this time.
0 commit comments