Skip to content

chore: Remove unused Nullish type #953

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

Merged
merged 1 commit into from
May 6, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented May 5, 2021

What:

Remove Nullish helper type

Why:

Seems to be unused. So if we don't need the helper type let's remove the indirection.

How:

Replace usage of Nullish<T> with T | null.

Checklist:

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 5, 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 efabd96:

Sandbox Source
react-testing-library-examples Configuration

@codecov
Copy link

codecov bot commented May 5, 2021

Codecov Report

Merging #953 (efabd96) into main (e061cd1) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #953   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines          962       962           
  Branches       290       290           
=========================================
  Hits           962       962           
Flag Coverage Δ
node-10.14.2 100.00% <100.00%> (ø)
node-12 100.00% <100.00%> (ø)
node-14 100.00% <100.00%> (ø)
node-15 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/matches.ts 100.00% <ø> (ø)
src/label-helpers.ts 100.00% <100.00%> (ø)
src/queries/label-text.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 e061cd1...efabd96. Read the comment docs.

@eps1lon eps1lon requested a review from marcosvega91 May 5, 2021 15:28
@eps1lon eps1lon marked this pull request as ready for review May 5, 2021 15:28
Copy link
Member

@marcosvega91 marcosvega91 left a comment

Choose a reason for hiding this comment

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

Hey @eps1lon it looks good :)

@eps1lon eps1lon merged commit 13efbb3 into testing-library:main May 6, 2021
@eps1lon eps1lon deleted the chore/nullish branch May 6, 2021 14:29
@github-actions
Copy link

🎉 This PR is included in version 7.31.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.

3 participants