ember-a11y-testing
Version:
Accessibility testing for Ember applications
16 lines (15 loc) • 723 B
TypeScript
import { AxeResults } from 'axe-core';
import type { A11yAuditReporter } from './types';
export declare const DEFAULT_REPORTER: (results: AxeResults) => Promise<void>;
/**
* Reports the results of the a11yAudit. Set a custom reporter using `setCustomReporter`.
*/
export declare let reportA11yAudit: A11yAuditReporter;
/**
* Sets a custom reporter, allowing implementers more specific control over how the results of the
* `a11yAudit` calls are processed. Calling this function with no parameters will reset the reporter
* to the default reporter.
*
* @param customReporter {A11yAuditReporter} The reporter to use in a11yAudit
*/
export declare function setCustomReporter(customReporter?: A11yAuditReporter): void;