File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,23 +8,19 @@ let BASE_URL = "http://localhost:4444";
88
99// environment variable
1010if ( process . env . BASE_URL ) {
11- BASE_URL = process . env . BASE_URL
11+ BASE_URL = process . env . BASE_URL ;
1212}
1313
1414// local config file
1515if ( fs . existsSync ( localConfigPath ) ) {
1616 try {
17- const localConfig = JSON . parse (
18- fs . readFileSync ( localConfigPath , "utf8" )
19- ) ;
17+ const localConfig = JSON . parse ( fs . readFileSync ( localConfigPath , "utf8" ) ) ;
2018
2119 if ( localConfig && localConfig . BASE_URL ) {
2220 BASE_URL = localConfig . BASE_URL ;
23- }
21+ }
2422 } catch ( err ) {
25- console . warn (
26- "Invalid testBaseUrl.local.json, using default BASE_URL"
27- ) ;
23+ console . warn ( "Invalid testBaseUrl.local.json, using default BASE_URL" ) ;
2824 }
2925}
30- module . exports = { BASE_URL } ;
26+ module . exports = { BASE_URL } ;
You canβt perform that action at this time.
0 commit comments