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

Fix type for normalizer filter function #13

Merged
merged 1 commit into from
May 5, 2019

Conversation

elyalvarado
Copy link
Contributor

What:

Changed the options normalizer filter function typescript defintion to receive a node element instead of a string.

Why:

This is needed to pass an options object with a filter function to the queries when using javascript. Without this change is not possible to pass a filter function when using javascript without adding a ts-ignore comment.

How:

I changed the typescript definition to use a NativeTestInstance instead of string for the first argument of the FilterFn type. I also changed the parameter name from value to node, to match the actual code.

Checklist:

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

The options normalizer filter function receives the node element instead of a string.
Fixed the typescript definition for it.
@codecov-io
Copy link

codecov-io commented May 5, 2019

Codecov Report

Merging #13 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #13   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          23     23           
  Lines         287    287           
  Branches       49     49           
=====================================
  Hits          287    287

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 49f2b0d...92da8ab. Read the comment docs.

@bcarroll22 bcarroll22 merged commit 910bcfc into testing-library:master May 5, 2019
@bcarroll22
Copy link
Collaborator

Thanks! @allcontributors[bot] please add @elyalvarado for code

@allcontributors
Copy link
Contributor

@bcarroll22

I've put up a pull request to add @elyalvarado! 🎉

@bcarroll22
Copy link
Collaborator

🎉 This PR is included in version 2.0.1 🎉

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.

3 participants