-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typescript/webpack configuration to readme #10
Comments
I ran into this issue. After digging into it, I have no idea why
import * as axe from 'axe-core';
declare global {
interface Window {
axe: typeof axe
}
}
Cypress.Commands.add('injectAxe', () => {
cy.window({ log: false }).then(window => {
window.axe = axe;
})
}) This will simply assign the value returned by the import rather than running I'll open a PR to this repo since this should work for both browserify and webpack. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am creating a new issue for #7 as the original owner closed it despite the issue not being resolved. If you are having issues getting cypress-axe to work with Typescript/Webpack, please look at that issue for solutions.
The text was updated successfully, but these errors were encountered: