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

Function parseAnswers

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

Source from the content-addressed store, hash-verified

142} satisfies PluginSetupBinding;
143
144function parseAnswers(answers: Record<string, PluginAnswer>): CoverageOptions {
145 return {
146 framework: answerString(answers, 'coverage.framework'),
147 configFile: answerString(answers, 'coverage.configFile'),
148 reportPath:
149 answerString(answers, 'coverage.reportPath') || DEFAULT_REPORT_PATH,
150 testCommand: answerString(answers, 'coverage.testCommand'),
151 types: answerArray(answers, 'coverage.types'),
152 continueOnFail: answerBoolean(answers, 'coverage.continueOnFail'),
153 categories: answerBoolean(answers, 'coverage.categories'),
154 };
155}
156
157/** Returns true if lcov reporter is already present or was successfully added. */
158async function configureLcovReporter(

Callers 1

binding.tsFile · 0.70

Calls 3

answerStringFunction · 0.90
answerArrayFunction · 0.90
answerBooleanFunction · 0.90

Tested by

no test coverage detected