Skip to content
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

Resolved path for axe.min.js incorrect when using Cypress Component Testing (with Vite) and npm workspaces #146

Closed
dhulme opened this issue Dec 7, 2022 · 1 comment
Labels

Comments

@dhulme
Copy link

dhulme commented Dec 7, 2022

cypress-axe uses require.resolve to generate the path to axe-core/axe.min.js. Vite does not implement require.resolve (see vitejs/vite#4385) so cypress-axe falls back to node_modules/axe-core/axe.min.js for the location. This works fine in normal circumstances, but fails if the node_modules directory is at a different level, for example when using npm workspaces.

@github-actions
Copy link

🎉 This issue has been resolved in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant