Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

glob patterns are not supported when using as a module #80

Open
joshvito opened this issue Jul 20, 2018 · 0 comments
Open

glob patterns are not supported when using as a module #80

joshvito opened this issue Jul 20, 2018 · 0 comments

Comments

@joshvito
Copy link

// file: test-a11y.js
const a11y = require('a11y');
const _glob = './src/**/*.html';
const options = {
    viewportSize: '800x600'
};

a11y(_glob, options, (err, reports) => {
    if (err) console.log(err);
    const audit = reports.audit; // `a11y` Formatted report
    const report = reports.report; // DevTools Accessibility Audit formatted report
});

The above file, when ran (node test-a11y.js), will always fail with the following error. Couldn't load url: "./src/**/*.html"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant