What is the best way to use Pa11y with Supertest? Something like:
describe ('my page', function () {
it ('is accessible', function () {
request (server).get ('/').expect (function ({ body }) {
// How to run Pa11y here?
});
});
})
I would suggest not using
supertest
at all for these accessibility test aspa11y
can ping url's directly.