()
| 178 | function readConfig(): SpeedtestConfig { |
| 179 | try { |
| 180 | if (fs.existsSync(SPEEDTEST_JSON)) { |
| 181 | const data = JSON.parse(fs.readFileSync(SPEEDTEST_JSON, "utf8")); |
| 182 | return data as SpeedtestConfig; |
| 183 | } |
| 184 | } catch (error: any) { |
| 185 | console.error("Failed to read config:", error); |
| 186 | } |
no outgoing calls
no test coverage detected