component-driven/cypress-axe

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

dhulme opened this issue ยท 1 comments

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.

๐ŸŽ‰ This issue has been resolved in version 1.3.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€