MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / loadContrastAuditScript

Function loadContrastAuditScript

packages/cli/src/commands/validate.ts:170–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170function loadContrastAuditScript(): string {
171 const candidates = [
172 join(__dirname, "contrast-audit.browser.js"),
173 join(__dirname, "commands", "contrast-audit.browser.js"),
174 ];
175
176 for (const candidate of candidates) {
177 if (existsSync(candidate)) return readFileSync(candidate, "utf-8");
178 }
179
180 throw new Error("Missing contrast audit browser script");
181}
182
183/**
184 * Pull the `missing_or_empty_sub_composition` lint findings out of a

Callers 1

runContrastAuditFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected