-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Only transform file import path if not already transformed #4901
Only transform file import path if not already transformed #4901
Conversation
@christian-bromann let's get the linting fixed (spaces vs tabs issue?) and hopefully the team will look at this :) |
This PR hasn't had any recent activity, and I'm labeling it |
This PR hasn't had any recent activity, and I'm labeling it |
Closing as it seems the project is not interested in the change. |
👋 coming back to this @christian-bromann, are you still interested in working on this PR? As of #5027 there are maintainers who can review it now. No worries if you no longer have time - but if you do that'd be great! Note that I don't see any linked issues. The contributing guidelines right now ask for that so that folks can discuss the change first. We'll continue to require that after #5038. Was there any impetus for this PR besides what's in the description and linked webdriverio issues? |
Hey @JoshuaKGoldberg 👋 thanks so much for reaching out. Unfortunately I am not exactly sure what the underlying issue was. I think I struggled with path issues in Windows when porting the WebdriverIO code base to ESM. I am not sure how I worked around it but there isn't any issue anymore, for me at least. Thanks for picking up the maintenance on this 🙏 |
Requirements
Description of the Change
Passing in a file path, e.g.
file:///foo/bar
in Node causes problems as Mocha tries to resolve the path, e.g.:Alternate Designs
n/a
Why should this be in core?
This seems to be a bug in core.
Benefits
It allows Mocha to use file urls. This is important for Windows where
import('d:\foo\bar.spec.js')
is not possible.Possible Drawbacks
n/a
Applicable issues
n/a