ember-a11y-testing
ember-a11y-testing copied to clipboard
feat: add qunit config
Features
Add QUnit config
QUnit and Testem integration
You can setup a new configuration checkbox in QUnit and Testem by using the setupQUnitA11yAudit
When the checkbox is checked, it will set enableA11yAudit
as a query param.
To use, import and invoke the setup function, passing in your QUnit instance:
// tests/test-helper.js
import Application from 'my-app/app';
import config from 'my-app/config/environment';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
import { setupGlobalA11yHooks, setupQUnitA11yAudit } from 'ember-a11y-testing/test-support';
setApplication(Application.create(config.APP));
setupGlobalA11yHooks(() => true);
setupQUnitA11yAudit(QUnit);
start();
Here is the result in Testem: