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

Make ignorePattern optional in HasteMap #7166

Merged

Conversation

rubennorte
Copy link
Contributor

Summary

This removes the need to pass an ignore pattern to new instances of HasteMap and updates jest-runtime so it doesn't pass one unless it's necessary.

Test plan

Updated the current tests and tested in FB infra.

Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@rubennorte rubennorte force-pushed the make-ignore-pattern-optional-in-haste-map branch from 03199e5 to c3bef12 Compare October 15, 2018 16:36
@@ -54,7 +54,7 @@ type Options = {
extensions: Array<string>,
forceNodeFilesystemAPI?: boolean,
hasteImplModulePath?: string,
ignorePattern: HasteRegExp,
ignorePattern?: ?HasteRegExp,
Copy link
Member

Choose a reason for hiding this comment

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

Both?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was just convenient to avoid handling optional properties in the options passed from jest-runtime. Options has it as an optional nullable property and InternalOptions has it only nullable (not optional). Not sure if this is considered a bad practice though.

@rubennorte rubennorte merged commit 081e155 into jestjs:master Oct 16, 2018
@rubennorte rubennorte deleted the make-ignore-pattern-optional-in-haste-map branch October 16, 2018 09:37
@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 12, 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.

4 participants