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 {
2727 Mode : string ;
2828}
2929export function NewContext ( conf : Config ) {
30+ console . log ( "Keploy running in: " , process . env . KEPLOY_MODE , " mode" ) ;
3031 let mode = MODE_TEST ,
3132 path = conf !== undefined && conf . Path !== undefined ? conf . Path : "" ;
3233
@@ -36,15 +37,13 @@ export function NewContext(conf: Config) {
3637 } catch ( err ) {
3738 console . log ( "Failed to get the path of current directory" ) ;
3839 console . log ( err ) ;
39- console . log ( "Keploy mode:" , process . env . KEPLOY_MODE )
4040 }
4141 } else if ( path [ 0 ] !== "/" ) {
4242 try {
4343 path = resolve ( conf . Path ) ;
4444 } catch ( err ) {
4545 console . log ( "Failed to get the absolute path from relative conf.path" ) ;
4646 console . log ( err ) ;
47- console . log ( "Keploy mode:" , process . env . KEPLOY_MODE )
4847 }
4948 }
5049 path += "/mocks" ;
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ export default class HttpClient {
142142 await http ( options ) ;
143143 } catch ( error ) {
144144 console . log ( error ) ;
145- console . log ( "Keploy mode:" , process . env . KEPLOY_MODE ) ;
146145 }
147146 }
148147}
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ export default class Keploy {
7676 this . responses = { } ;
7777 this . dependencies = { } ;
7878 this . mocks = { } ;
79+ console . log ( "Keploy running in: " , process . env . KEPLOY_MODE , " mode" ) ;
7980 }
8081
8182 validateServerConfig ( {
@@ -132,7 +133,7 @@ export default class Keploy {
132133
133134 async runTests ( ) {
134135 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" ) ;
136137 setTimeout ( async ( ) => {
137138 await this . test ( ) ;
138139 } , this . appConfig . delay * 1000 ) ;
@@ -241,8 +242,6 @@ export default class Keploy {
241242 testId ,
242243 " }, { total tests: " ,
243244 totalTests ,
244- " },{ Keploy mode:" ,
245- process . env . KEPLOY_MODE ,
246245 " }"
247246 ) ;
248247 let pass = true ;
@@ -278,9 +277,7 @@ export default class Keploy {
278277 if ( err !== null ) {
279278 console . error (
280279 "failed to call test method of keploy. error: " ,
281- err ,
282- "Keploy mode:" ,
283- process . env . KEPLOY_MODE ,
280+ err
284281 ) ;
285282 }
286283
You can’t perform that action at this time.
0 commit comments