MCPcopy Create free account
hub / github.com/api3dao/airnode / loadConfigFixture

Function loadConfigFixture

packages/airnode-validator/src/api/api.test.ts:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { Config } from '../config';
7
8const 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
13const interpolateSecrets = (config: unknown, secrets: Record<string, string>) => {
14 let strConfig = JSON.stringify(config);

Callers 1

api.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected