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

Function parseAnswers

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

Source from the content-addressed store, hash-verified

117} satisfies PluginSetupBinding;
118
119function parseAnswers(answers: Record<string, PluginAnswer>): AxeOptions {
120 return {
121 urls: answerNonEmptyArray(answers, 'axe.urls', DEFAULT_URL),
122 preset: answerString(answers, 'axe.preset') || AXE_DEFAULT_PRESET,
123 setupScript: answerBoolean(answers, 'axe.setupScript'),
124 categories: answerBoolean(answers, 'axe.categories'),
125 };
126}
127
128function formatPluginCall({ urls, preset, setupScript }: AxeOptions): string {
129 const formattedUrls = formatUrls(urls);

Callers 1

binding.tsFile · 0.70

Calls 3

answerNonEmptyArrayFunction · 0.90
answerStringFunction · 0.90
answerBooleanFunction · 0.90

Tested by

no test coverage detected