MCPcopy Index your code
hub / github.com/code-pushup/cli / parseAnswers

Function parseAnswers

packages/plugin-lighthouse/src/lib/binding.ts:113–120  ·  view source on GitHub ↗
(
  answers: Record<string, PluginAnswer>,
)

Source from the content-addressed store, hash-verified

111} satisfies PluginSetupBinding;
112
113function parseAnswers(
114 answers: Record<string, PluginAnswer>,
115): LighthouseOptions {
116 return {
117 urls: answerNonEmptyArray(answers, 'lighthouse.urls', DEFAULT_URL),
118 categories: answerArray(answers, 'lighthouse.categories'),
119 };
120}
121
122function formatPluginCall({ urls, categories }: LighthouseOptions): string {
123 const formattedUrls = formatUrls(urls);

Callers 1

binding.tsFile · 0.70

Calls 2

answerNonEmptyArrayFunction · 0.90
answerArrayFunction · 0.90

Tested by

no test coverage detected