We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4dca44 commit c7f0232Copy full SHA for c7f0232
pa11yci.js
@@ -0,0 +1,15 @@
1
+const fs = require('fs');
2
+const path = require('path');
3
+
4
+// Get current working directory to prefix file paths
5
+const base = process.env.PA11Y_BASE_DIR || process.cwd();
6
7
+module.exports = {
8
+ defaults: {
9
+ chromeLaunchConfig: {
10
+ args: ['--no-sandbox']
11
+ }
12
+ },
13
+ urls: JSON.parse(fs.readFileSync('pa11y_targets.json', 'utf-8'))
14
+ .map(rel => 'file://' + path.join(base, rel))
15
+};
0 commit comments