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

Function getFixtureConfig

packages/backends/test/unit.test.ts:70–95  ·  view source on GitHub ↗
(vercelJson: VercelJson | null)

Source from the content-addressed store, hash-verified

68};
69
70const getFixtureConfig = (vercelJson: VercelJson | null) => {
71 if (!vercelJson) {
72 return defaultConfig;
73 }
74 const {
75 rootDirectory,
76 installCommand,
77 buildCommand,
78 outputDirectory,
79 framework,
80 functions,
81 } = vercelJson;
82 return {
83 ...defaultConfig,
84 // @ts-expect-error - functions is not typed
85 ...(functions && { functions }),
86 projectSettings: {
87 ...defaultConfig.projectSettings,
88 ...(rootDirectory && { rootDirectory }),
89 ...(installCommand && { installCommand }),
90 ...(buildCommand && { buildCommand }),
91 ...(outputDirectory && { outputDirectory }),
92 ...(framework && { framework }),
93 },
94 };
95};
96
97// Set to true to use packages/backends/debug instead of a temp directory
98const USE_DEBUG_DIR = false;

Callers 1

unit.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected