Skip to content

Commit

Permalink
Expose the default report as a semi-private const like TEST_SUITE_RES…
Browse files Browse the repository at this point in the history
…ULTS
  • Loading branch information
acorncom committed Sep 25, 2023
1 parent c8febe5 commit 06ff2bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion addon-test-support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export {
teardownGlobalA11yHooks,
DEFAULT_A11Y_TEST_HELPER_NAMES,
} from './setup-global-a11y-hooks';
export { setCustomReporter } from './reporter';
export {
setCustomReporter,
DEFAULT_REPORTER as _DEFAULT_REPORTER,
} from './reporter';
export {
TEST_SUITE_RESULTS as _TEST_SUITE_RESULTS,
middlewareReporter as _middlewareReporter,
Expand Down
2 changes: 1 addition & 1 deletion addon-test-support/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import formatViolation from './format-violation';
import { A11yAuditReporter } from './types';
import { storeResults } from './logger';

const DEFAULT_REPORTER = async (results: AxeResults) => {
export const DEFAULT_REPORTER = async (results: AxeResults) => {
let violations = results.violations;

storeResults(results);
Expand Down

0 comments on commit 06ff2bd

Please sign in to comment.