Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

🐛[react-testing] explicitly typing findWhere and findAllWhere#795

Merged
patsissons merged 1 commit intomasterfrom
react-testing-fix-find-typing
Jul 16, 2019
Merged

🐛[react-testing] explicitly typing findWhere and findAllWhere#795
patsissons merged 1 commit intomasterfrom
react-testing-fix-find-typing

Conversation

@patsissons
Copy link
Contributor

@patsissons patsissons commented Jul 16, 2019

Description

the findWhere() and findAllWhere() operators are currently untyped due to re-entrancy issues.

    findWhere(predicate: Predicate): any;
    findAllWhere(predicate: Predicate): any;

This PR is explicitly typing these operators to deal with the issue.

Type of change

  • react-testing Patch: Bug/ Documentation fix (non-breaking change which fixes an issue or adds documentation)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have prefixed my pull request title with the corresponding emoji from this guide

@patsissons patsissons changed the title 🐛 [react-testing] explicitly typing findWhere and findAllWhere 🐛[react-testing] explicitly typing findWhere and findAllWhere Jul 16, 2019
@patsissons patsissons force-pushed the react-testing-fix-find-typing branch from 2c54e8e to 412ac34 Compare July 16, 2019 16:26
@patsissons patsissons marked this pull request as ready for review July 16, 2019 16:26
@patsissons patsissons requested a review from lemonmade July 16, 2019 16:26
Copy link
Member

@lemonmade lemonmade left a comment

Choose a reason for hiding this comment

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

❤️ thanks for the fix!

@patsissons patsissons merged commit 1bc8156 into master Jul 16, 2019
@patsissons patsissons temporarily deployed to production July 16, 2019 17:19 Inactive
@BPScott BPScott deleted the react-testing-fix-find-typing branch May 22, 2021 00:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants