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 [import/named] for importing from a module which re-exports named exports from a node_modules module #1447

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

kentcdodds
Copy link
Contributor

This adds a failing test for #1446

I'm not sure how to proceed, but hopefully this helps someone diagnose the issue.

@@ -26,6 +26,7 @@ ruleTester.run('named', rule, {
test({code: 'import { destructingRenamedAssign } from "./named-exports"'}),
test({code: 'import { ActionTypes } from "./qc"'}),
test({code: 'import {a, b, c, d} from "./re-export"'}),
test({code: 'import {RuleTester} from "./re-export-node_modules"'}),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I chose eslint as the node_module and RuleTester as the import because I figured that'd be pretty stable. It's unlikely that export would change, and in the event that it does, we'll need to update this test file quite a bit anyway.

@coveralls
Copy link

coveralls commented Aug 7, 2019

Coverage Status

Coverage decreased (-4.1%) to 93.717% when pulling cc5bde5 on kentcdodds:pr/export-star-named into aff3a46 on benmosher:master.

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

Successfully merging this pull request may close these issues.

3 participants