You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,21 @@ beforeEach(() => {
76
76
})
77
77
```
78
78
79
+
The `injectAxe` function receives an optional argument `injectOptions` of type `InjectOptions`.
80
+
81
+
This `injectOptions` object can have a property `axeCorePath` of type `string`, which allows the user to specify the file from which `axe-core` will be injected.
82
+
83
+
If `axeCorePath` is not provided, the function will try to resolve the path to `axe-core/axe.min.js` using the `require.resolve` function, if it is available.
84
+
85
+
If `require.resolve` is not available, the default path `node_modules/axe-core/axe.min.js` will be used.
0 commit comments