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

chore(types): Convert src/query-helpers to TS #1016

Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Aug 25, 2021

Built on top of #1009 with the goal of having the file marked as moved (for git-blame and git-diff). #1009 had so many changes the GitHub no longer recognized the file as moved.

What:

Type-check query-helpers.js

Why:

  • code safety
  • eventually these will be used to create the published declarations

How:

Convert query-helpers.js to TypeScript. No runtime changes.

Checklist:

  • [ ] Documentation added to the
    docs site
  • [ ] Tests
  • [ ] TypeScript definitions updated
    Will investigate further if the declarations for query-helpers are actually incorrect
  • Ready to be merged

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 25, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 49f5605:

Sandbox Source
react-testing-library-examples Configuration

@codecov
Copy link

codecov bot commented Sep 5, 2021

Codecov Report

Merging #1016 (49f5605) into main (ff84a50) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main     #1016   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines          924       927    +3     
  Branches       289       294    +5     
=========================================
+ Hits           924       927    +3     
Flag Coverage Δ
node-12 100.00% <100.00%> (ø)
node-14 100.00% <100.00%> (ø)
node-16 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/queries/alt-text.ts 100.00% <100.00%> (ø)
src/queries/display-value.ts 100.00% <100.00%> (ø)
src/queries/label-text.ts 100.00% <100.00%> (ø)
src/queries/placeholder-text.ts 100.00% <100.00%> (ø)
src/queries/test-id.ts 100.00% <100.00%> (ø)
src/queries/text.ts 100.00% <100.00%> (ø)
src/queries/title.ts 100.00% <100.00%> (ø)
src/query-helpers.ts 100.00% <100.00%> (ø)

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 ff84a50...49f5605. Read the comment docs.

@eps1lon eps1lon marked this pull request as ready for review September 5, 2021 09:50
src/queries/alt-text.ts Outdated Show resolved Hide resolved
src/queries/placeholder-text.ts Outdated Show resolved Hide resolved
src/query-helpers.ts Show resolved Hide resolved
Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com>
@eps1lon eps1lon merged commit bb79e30 into testing-library:main Sep 7, 2021
@eps1lon eps1lon mentioned this pull request Sep 7, 2021
4 tasks
@eps1lon eps1lon deleted the chore/query-helpers/typescript branch September 7, 2021 08:00
@github-actions
Copy link

github-actions bot commented Sep 7, 2021

🎉 This PR is included in version 8.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants