Skip to content

Commit 634a120

Browse files
authored
Remove testMode and debugMode (#52)
1 parent 7e1aa11 commit 634a120

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

manifest.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ inputs:
33
- name: checkPaths
44
default: ['/']
55
required: false
6-
- name: debugMode
7-
default: false
86
- name: failWithIssues
97
default: true
108
- name: ignoreDirectories
119
default: []
1210
required: false
1311
- name: standard
1412
default: 'WCAG2AA'
15-
- name: testMode
16-
default: false

src/config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ const PA11Y_USER_AGENT = 'netlify-plugin-a11y'
1010

1111
const getConfiguration = ({
1212
constants: { PUBLISH_DIR },
13-
inputs: { checkPaths, debugMode, ignoreDirectories, failWithIssues, standard },
13+
inputs: { checkPaths, ignoreDirectories, failWithIssues, standard },
1414
}) => {
1515
return {
1616
absolutePublishDir: PUBLISH_DIR || process.env.PUBLISH_DIR,
1717
checkPaths: checkPaths || DEFAULT_CHECK_PATHS,
18-
debugMode: debugMode || false,
1918
ignoreDirectories: ignoreDirectories || DEFAULT_IGNORE_DIRECTORIES,
2019
failWithIssues: failWithIssues !== undefined ? failWithIssues : DEFAULT_FAIL_WITH_ISSUES,
2120
pa11yOpts: {

src/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ const pico = require('picocolors')
77
module.exports = {
88
async onPostBuild({ constants, inputs, utils: { build } }) {
99
try {
10-
const { absolutePublishDir, checkPaths, debugMode, ignoreDirectories, pa11yOpts, failWithIssues } =
11-
getConfiguration({ constants, inputs })
10+
const { absolutePublishDir, checkPaths, ignoreDirectories, pa11yOpts, failWithIssues } = getConfiguration({
11+
constants,
12+
inputs,
13+
})
1214
const htmlFilePaths = await pluginCore.generateFilePaths({
1315
absolutePublishDir,
1416
ignoreDirectories,
1517
fileAndDirPaths: checkPaths,
1618
})
17-
if (debugMode) {
18-
console.log({ htmlFilePaths })
19-
}
2019

2120
const { report, issueCount } = await pluginCore.runPa11y({
2221
build,

0 commit comments

Comments
 (0)