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

fix(types): remove wait types #971

Merged
merged 1 commit into from
Jun 6, 2021
Merged

fix(types): remove wait types #971

merged 1 commit into from
Jun 6, 2021

Conversation

timdeschryver
Copy link
Member

What:

Removes wait types, which we've forgot to do in #966.

Why:

To keep the types up-to-date.

How:

Checklist:

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

BREAKING CHANGE: Remove deprecated waitFormDOMChange

BREAKING CHANGE: The timeout in waitFor(callback, { interval, timeout } ) now uses the same clock as interval. Previously timeout was always using the real clock while interval was using the global clock which could've been mocked out. For the old behavior I'd recommend waitFor(callback, { interval, timeout: Number.PositiveInfinity }) and rely on your test runner to timeout considering real timers.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 4, 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 67ae89a:

Sandbox Source
react-testing-library-examples Configuration

@codecov
Copy link

codecov bot commented Jun 4, 2021

Codecov Report

Merging #971 (67ae89a) into alpha (ce06299) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             alpha      #971   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines          914       914           
  Branches       282       282           
=========================================
  Hits           914       914           
Flag Coverage Δ
node-10.14.2 100.00% <ø> (ø)
node-12 100.00% <ø> (ø)
node-14 100.00% <ø> (ø)
node-15 100.00% <ø> (ø)
node-16 100.00% <ø> (ø)

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


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 ce06299...67ae89a. Read the comment docs.

@timdeschryver timdeschryver changed the title fix: Only use a single clock (#966) fix(types): remove wait types Jun 4, 2021
@eps1lon eps1lon merged commit 0f8d912 into alpha Jun 6, 2021
@eps1lon eps1lon deleted the remove-wait-types branch June 6, 2021 11:00
@github-actions
Copy link

github-actions bot commented Jun 8, 2021

🎉 This PR is included in version 8.0.0-alpha.3 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants