How to use the @instructure/ui-axe-check function in @instructure/ui-axe-check

To help you get started, we’ve selected a few @instructure/ui-axe-check 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 instructure / instructure-ui / packages / ui-test-utils / src / utils / helpers.js View on Github external
function accessible (element = document.body, options) {
  if (isElement(element)) {
    return runAxeCheck(element, options)
  } else {
    throw new Error('[ui-test-utils] accessibility check can only run on a single, valid DOM Element!')
  }
}

@instructure/ui-axe-check

A UI a11y testing library made by Instructure Inc.

MIT
Latest version published 3 days ago

Package Health Score

87 / 100
Full package analysis

Popular @instructure/ui-axe-check functions

Similar packages