How to use axe-sarif-converter - 1 common examples

To help you get started, we’ve selected a few axe-sarif-converter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / office-ui-fabric-react / apps / a11y-tests / src / getSarifReport.ts View on Github external
export async function getSarifReport(browser: puppeteer.Browser, element: React.ReactElement): Promise {
  const page = await browser.newPage();
  const testHtml = renderTestHtml(element);
  await page.setContent(testHtml);

  const axeReport = await new AxePuppeteer(page).disableRules(disabledAxeRules).analyze();
  const sarifReport = convertAxeToSarif(axeReport);

  await page.close();

  return sarifReport;
}

axe-sarif-converter

Convert axe-core accessibility scan results to the SARIF format

MIT
Latest version published 4 days ago

Package Health Score

87 / 100
Full package analysis

Popular axe-sarif-converter functions