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
Support JavaScript URL imports #624
Support JavaScript URL imports #624
Conversation
5130b09
to
16d28c6
Compare
Not sure what's wrong with the snapshots, |
First, thanks for taking the time to submit this feature. The snapshot is failing on Travis, because by default Jest does not write and snapshot changes when running on CI. I checked out your branch locally and running +exports[`normaliseResolverResults converts [object Object] 1`] = `
+Array [
+ Object {
+ "registry": "npm",
+ "target": "foo",
+ "type": "registry",
+ },
+]
+`; I wonder why this changed. Anyway, maybe best to just revert the snapshot change which solved the issue for me. I'll have a closer look at the other changes later today. Just one thing upfront, do you mind to add an End2End test or two for this change. It's super easy to add and described here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one tiny comment related to the url handling, but apart from that this looks good to me.
|
||
it("does not resolve 'https://example.org/'", () => { | ||
// TODO: Currently resolves incorrectly as 'https' module, | ||
// but should not resolve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how to fix this. ^
Sure, will do.
No, I didn't know you had e2e tests. Will add some tomorrow!
Awesome. :) |
I deleted the snapshot file, then re-ran Also, if I undo the snapshot changes manually, and re-run |
16d28c6
to
088a6ed
Compare
I added 1 simple e2e test - I hope that's fine. PS: Many props to you for making it so simple to add an e2e test, and to the great documentation in general! :) |
I added two addtional commits on top. The first is reverting the snapshot (I have no idea what is happening on your end). Anyway, let's see if this work on Travis. The other is using is-url which also enabled to fix the other test. |
Mhhh still failing 😕 The latest master is passing so something must be odd with this branch. I'll give it another try tomorrow. What do you think about the other changes I made? |
That is weird indeed. At the weekend, I would have time to debug as well.
I think using |
Looks like the last commit 4d132be fix it. My other commit form yesterday 0cd1aae was intended to do the same, but I failed 😄 Anyway, all good now. Regarding the |
Awesome! Thank you for fixing the snapshots!
True. I think a better reason for using
I agree, that's fine. Again, thanks a lot! |
Is this ready to be merged yet, @stefanbuck? Or is there anything I still need to do? |
Nope, all good. I will release a new version later this weekend. |
Thanks again for adding this feature |
See: #613
Looking for feedback, @stefanbuck.