Skip to content

Commit 7134bb5

Browse files
authored
Merge pull request #515 from acorncom/export-default-reporter
Allow wrapping the default reporter without having to rebuild it
2 parents d894018 + 06ff2bd commit 7134bb5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

addon-test-support/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ export {
77
teardownGlobalA11yHooks,
88
DEFAULT_A11Y_TEST_HELPER_NAMES,
99
} from './setup-global-a11y-hooks';
10-
export { setCustomReporter } from './reporter';
10+
export {
11+
setCustomReporter,
12+
DEFAULT_REPORTER as _DEFAULT_REPORTER,
13+
} from './reporter';
1114
export {
1215
TEST_SUITE_RESULTS as _TEST_SUITE_RESULTS,
1316
middlewareReporter as _middlewareReporter,

addon-test-support/reporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import formatViolation from './format-violation';
44
import { A11yAuditReporter } from './types';
55
import { storeResults } from './logger';
66

7-
const DEFAULT_REPORTER = async (results: AxeResults) => {
7+
export const DEFAULT_REPORTER = async (results: AxeResults) => {
88
let violations = results.violations;
99

1010
storeResults(results);

0 commit comments

Comments
 (0)