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(refactor): move queries to TS / prettify some code according ABC #948

Merged
merged 1 commit into from
May 5, 2021

Conversation

simcha90
Copy link
Contributor

@simcha90 simcha90 commented May 5, 2021

What:
#494

Why:
Move to TS

How:
Moved js files to TS files and prettified some code according ABC order

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 d893896:

Sandbox Source
react-testing-library-examples Configuration

).filter(node => {
if (node.tagName === 'SELECT') {
const selectedOptions = Array.from(
(node as HTMLSelectElement).options,

Choose a reason for hiding this comment

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

', ' in the end seems redandant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's their eslint standard because saw it in other places, also it passed my eslint precommit

@eps1lon eps1lon changed the title refactor: move queries to TS / prettify some code according ABC chore(refactor): move queries to TS / prettify some code according ABC May 5, 2021
@codecov
Copy link

codecov bot commented May 5, 2021

Codecov Report

Merging #948 (d893896) into master (ffc8f26) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #948   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines          953       962    +9     
  Branches       289       290    +1     
=========================================
+ Hits           953       962    +9     
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/config.ts 100.00% <100.00%> (ø)
src/get-node-text.ts 100.00% <100.00%> (ø)
src/label-helpers.ts 100.00% <100.00%> (ø)
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%> (ø)

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 ffc8f26...d893896. Read the comment docs.

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@eps1lon eps1lon merged commit b00dff9 into testing-library:master May 5, 2021
@eps1lon
Copy link
Member

eps1lon commented May 5, 2021

@all-contributors add @simcha90 for code

@allcontributors
Copy link
Contributor

@eps1lon

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

@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