Skip to content

Commit c7f0232

Browse files
Add pa11yci.js file
1 parent b4dca44 commit c7f0232

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pa11yci.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)