UNPKG

677 BTypeScriptView Raw
1import { InvocationStrategy } from './types';
2/**
3 * Sets up a11yAudit calls using `@ember/test-helpers`' `_registerHook` API.
4 *
5 * @param shouldAudit Invocation strategy function that determines whether to run the audit helper or not.
6 * @param audit Optional audit function used to run the audit. Allows for providing either a11yAudit, a11yAuditIf,
7 * or custom audit implementation.
8 */
9export declare function setupGlobalA11yHooks(shouldAudit: InvocationStrategy, audit?: (...args: any[]) => PromiseLike<void>): void;
10/**
11 * Function to teardown the configured hooks. Used specifically in testing.
12 */
13export declare function teardownGlobalA11yHooks(): void;