-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Fix] no-extraneous-dependencies
: add ESM intermediate package.json
support
#2121
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
Conversation
1 similar comment
fix looks good; now we just need a regression test :-) |
I don't know how to enter in this case, so don't know what to add on unit
tests...
Le mar. 8 juin 2021 à 16:50, Jordan Harband ***@***.***> a
écrit :
… fix looks good; now we just need a regression test :-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2121 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIKMMJOXYLUS4IKBNKBDTLTRYU5HANCNFSM46JC6D3A>
.
|
Hopefully the issue OP can provide repro details |
correct fix with test case added now, as described by @ertrzyiks in #2120 |
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.
Works like a charm in my case 👍
@paztis thanks! I've rebased this (please reset your local master to the remote one before making further changes, so the rebase isn't lost), but the tests don't fail when the changes are backed out, so they're not actually testing the changes. |
You wait an action from me to do the merge ? Or it is ok ? |
@paztis what Jordan is saying is that the PR is good but the test isn't since if he reverts those changes (but keeps the test) the test passes. |
Hi! 👋 . I adjusted the tests on this branch so that they're true regression tests. I made a PR against @paztis 's fork, so if you merge that PR into |
I’ll check later today; if the tests fail without the fix, and pass with it, we’re good to go :-) |
I've added a valid test that is now passing without the fix. |
Sorry just see you message after I rebate from upstream to avoir rebate unit test failure... So I delete and recommit all my job. |
@paztis unfortunately the tests now seem to pass even without the fix. We can't merge this until there's tests that fail without the fix. |
Really ? They were failing with a null pointer on my side... |
cae387f
to
532e0ec
Compare
Ok again update the unit tests (and simplify also the process)
{ I again face rebase problematics... sorry for that ^^ |
Shouldn't the test fail with |
Yes it is supposed |
@paztis the test I made does just that:
I've separated the commits into 1 commit that adds the test, and 1 commit that contains your change: feel free to cherry-pick from this branch however you like. https://github.com/JCB-K/eslint-plugin-import/commits/fix-tests |
@JCB-K the branch you show me didn't include the last changes, nor the last unit tests |
there's 2 fixes in fact: one about the NPE in case of undefined name, and another about a recursion in the name search in case of intermediary package.json found in esm modules. |
Indeed and both are still fixed on that branch, and its up-to-date with benmosher:master. Either way, feel free to take the tests as you see fit, either by merging JCB-K:fix-tests into your branch, into |
no-extraneous-dependencies
: add ESM intermediate package.json
support
Hi @ljharb, I was wondering if there are plans to ship a new release which contains this fix? This bug currently bites us when we refresh our |
No description provided.