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

Ignore import type for extract_requires #4079

Merged
merged 1 commit into from
Jul 19, 2017
Merged

Conversation

elicwhite
Copy link
Contributor

extract_requires shouldn't be looking at dependencies only used for flow types.

Test plan

Unit tests

@elicwhite
Copy link
Contributor Author

cc @cpojer @davidaurelio

@@ -12,8 +12,8 @@ const blockCommentRe = /\/\*[^]*?\*\//g;
const lineCommentRe = /\/\/.*/g;

const replacePatterns = {
EXPORT_RE: /(\bexport\s+(?:[^'"]+\s+from\s+)??)(['"])([^'"]+)(\2)/g,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are there any tests that cover this currently? I didn't see anything and I'm not sure how it is used so I wasn't able to add a test for this.

Copy link
Member

Choose a reason for hiding this comment

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

Nope, probably no tests :) Feel free to send one, it's the same as import, just that it exports also:

export foo from 'foo-module';
export type foo from 'foo-module';

we want to ignore the latter.

@cpojer cpojer merged commit 458dc42 into jestjs:master Jul 19, 2017
@cpojer
Copy link
Member

cpojer commented Jul 19, 2017

Thank you! Feel free to send a follow-up PR with more tests.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants