Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Fix - selector prop to filter queries #76

Merged
merged 8 commits into from
Nov 5, 2019
Merged

Fix - selector prop to filter queries #76

merged 8 commits into from
Nov 5, 2019

Conversation

ajsmth
Copy link
Contributor

@ajsmth ajsmth commented Nov 4, 2019

What:

Updated the implementation for queries to use the selector prop to filter results

Why:

The selector prop was incorrectly named in the implementation, does not reflect docs and the testing-library API

How:

Updated named filter arguments to be selector

Checklist:

  • Documentation added to the
    docs site
  • Typescript definitions updated
  • Tests
  • Ready to be merged

This resolves #71

@codecov
Copy link

codecov bot commented Nov 4, 2019

Codecov Report

Merging #76 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #76   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          20     20           
  Lines         268    268           
  Branches       67     67           
=====================================
  Hits          268    268
Impacted Files Coverage Δ
src/lib/queries/text.js 100% <100%> (ø) ⬆️
src/lib/query-helpers.js 100% <100%> (ø) ⬆️
src/lib/queries/role.js 100% <100%> (ø) ⬆️
src/lib/queries/display-value.js 100% <100%> (ø) ⬆️
src/lib/queries/title.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c9344ab...73f0365. Read the comment docs.

@bcarroll22
Copy link
Collaborator

Awesome! Thanks for this!

@bcarroll22
Copy link
Collaborator

So, actually I just realized this is a breaking change. We'll be doing a major version bump here so folks in the current version can update at their own pace.

So for anyone who comes across this, it'll be in the 5.0 release 👍

@bcarroll22 bcarroll22 merged commit 2097cc7 into testing-library:master Nov 5, 2019
@bcarroll22
Copy link
Collaborator

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

selector? option is not typed properly
2 participants