MCPcopy Create free account
hub / github.com/code-pushup/cli / impactToSeverity

Function impactToSeverity

packages/plugin-axe/src/lib/runner/transform.ts:105–117  ·  view source on GitHub ↗
(impact: axe.ImpactValue | undefined)

Source from the content-addressed store, hash-verified

103}
104
105function impactToSeverity(impact: axe.ImpactValue | undefined): IssueSeverity {
106 switch (impact) {
107 case 'critical':
108 case 'serious':
109 return 'error';
110 case 'moderate':
111 return 'warning';
112 case 'minor':
113 case null:
114 case undefined:
115 return 'info';
116 }
117}

Callers 1

toIssueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected