We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 208e197 commit 48824b2Copy full SHA for 48824b2
1 file changed
index.js
@@ -47,11 +47,20 @@ function configureAxe (options = {}) {
47
48
const { globalOptions = {}, ...runnerOptions } = options
49
50
- // Set the global configuration for
51
- // axe-core
+ // Set the global configuration for axe-core
52
// https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#api-name-axeconfigure
53
- axeCore.configure(globalOptions)
54
-
+ const { checks = [], ...otherGlobalOptions } = globalOptions
+ axeCore.configure({
+ checks: [
55
+ {
56
+ // color contrast checking doesnt work in a jsdom environment.
57
+ id: 'color-contrast',
58
+ enabled: false
59
+ },
60
+ ...checks
61
+ ],
62
+ ...otherGlobalOptions
63
+ })
64
65
/**
66
* Small wrapper for axe-core#run that enables promises (required for Jest),
0 commit comments