testing-library / dom-testing-library

🐙 Simple and complete DOM testing utilities that encourage good testing practices.
https://testing-library.com/dom
MIT License
3.28k stars 467 forks source link

fix: Match declared types of `waitFor` with runtime behavior #1267

Closed eps1lon closed 7 months ago

eps1lon commented 1 year ago
codesandbox-ci[bot] commented 1 year ago

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

Sandbox Source
react-testing-library-examples Configuration
codecov[bot] commented 1 year ago

Codecov Report

Merging #1267 (b97173c) into alpha (37ccada) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             alpha     #1267   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines         1041      1042    +1     
  Branches       346       345    -1     
=========================================
+ Hits          1041      1042    +1     
Flag Coverage Δ
node-14 100.00% <100.00%> (ø)
node-16 100.00% <100.00%> (ø)
node-18 100.00% <100.00%> (ø)
node-20 100.00% <100.00%> (ø)

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

Files Coverage Δ
src/helpers.ts 100.00% <100.00%> (ø)
src/wait-for.ts 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more