()
| 6 | import { Config } from '../config'; |
| 7 | |
| 8 | const loadConfigFixture = (): Config => |
| 9 | // We type the result as "Config", however it will not pass validation in it's current state because the secrets are |
| 10 | // not interpolated |
| 11 | JSON.parse(readFileSync(join(__dirname, '../../test/fixtures/config.valid.json')).toString()); |
| 12 | |
| 13 | const interpolateSecrets = (config: unknown, secrets: Record<string, string>) => { |
| 14 | let strConfig = JSON.stringify(config); |