(path: string)
| 162 | } |
| 163 | |
| 164 | function loadConfig(path: string) { |
| 165 | const configPath = resolvePath(path); |
| 166 | if (!existsSync(configPath)) { |
| 167 | throw new Error(`Failed to load config file ${configPath}`); |
| 168 | } |
| 169 | |
| 170 | return require(configPath.replace(/.json$/, '')); |
| 171 | } |
| 172 | |
| 173 | function negate(value: boolean) { |
| 174 | if (value === undefined) { |
no outgoing calls
no test coverage detected