MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / loadBaseline

Function loadBaseline

packages/server/test/openapi/rest-openapi.test.ts:11–13  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

9const UPDATE_BASELINE = process.env.UPDATE_BASELINE === '1';
10
11function loadBaseline(name: string) {
12 return YAML.parse(fs.readFileSync(path.join(__dirname, 'baseline', name), 'utf-8'), { maxAliasCount: 10000 });
13}
14
15function saveBaseline(name: string, spec: any) {
16 fs.writeFileSync(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected