MCPcopy Create free account
hub / github.com/vercel/vercel / loadFixtureMetadata

Function loadFixtureMetadata

packages/backends/test/unit.test.ts:50–58  ·  view source on GitHub ↗
(fixtureSource: string)

Source from the content-addressed store, hash-verified

48}
49
50const loadFixtureMetadata = async (fixtureSource: string) => {
51 const fixtureJsonPath = join(fixtureSource, 'fixture.json');
52 try {
53 const content = await readFile(fixtureJsonPath, 'utf-8');
54 return JSON.parse(content) as FixtureMetadata;
55 } catch {
56 return null;
57 }
58};
59
60const loadVercelJson = async (projectSource: string) => {
61 const vercelJsonPath = join(projectSource, 'vercel.json');

Callers 1

unit.test.tsFile · 0.85

Calls 2

readFileFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected