Resolved path for axe.min.js
incorrect when using Cypress Component Testing (with Vite) and npm workspaces
#146
Labels
axe.min.js
incorrect when using Cypress Component Testing (with Vite) and npm workspaces
#146
cypress-axe uses
require.resolve
to generate the path toaxe-core/axe.min.js
. Vite does not implementrequire.resolve
(see vitejs/vite#4385) so cypress-axe falls back tonode_modules/axe-core/axe.min.js
for the location. This works fine in normal circumstances, but fails if thenode_modules
directory is at a different level, for example when using npm workspaces.The text was updated successfully, but these errors were encountered: