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

Fix path resolution for axe.min.js #14

Merged

Conversation

justafish
Copy link
Contributor

The current path resolution doesn't work for package managers that don't use that path scheme (e.g. Yarn > 2). This PR replaces the hard coded path with the correct function for resolving module files.

You can reproduce this error by installing the latest version of Nightwatch with the latest version of Yarn.

@@ -1,26 +1,8 @@
const fs = require('fs');
const path = require('path');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Would you be able to remove the unused path variable on line 2 and resubmit @justafish ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reallymello done! 👍

@reallymello reallymello merged commit 6e38cad into reallymello:master Jul 5, 2023
3 checks passed
@reallymello
Copy link
Owner

Thanks 2.2.2 should have your changes

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

Successfully merging this pull request may close these issues.

None yet

2 participants