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(deps): update testing library (major) #32656

Merged
merged 5 commits into from
Oct 13, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 1, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@testing-library/dom ^7.31.2 -> ^8.5.0 age adoption passing confidence
@testing-library/react ^11.2.7 -> ^12.1.0 age adoption passing confidence
@testing-library/react ^9.5.0 -> ^12.1.0 age adoption passing confidence

Release Notes

testing-library/dom-testing-library

v8.5.0

Compare Source

Features

v8.4.0

Compare Source

Bug Fixes
  • Use syntax compatible with older TypeScript versions (#​1026) (8311c8d)
Features

v8.3.0

Compare Source

Features

v8.2.0

Compare Source

Features

v8.1.1

Compare Source

Bug Fixes

v8.1.0

Compare Source

Features

v8.0.0

Compare Source

Recommendations
  1. If you're using jest fake timers make sure you use modern timers
    jest 27:
    -jest.useFakeTimers('legacy')
    +jest.useFakeTimers('modern')
     // jest.config.js
    -"timers": "legacy",
    +"timers": "modern",
    jest 26:
    -jest.useFakeTimers()
    +jest.useFakeTimers('modern')
     // jest.config.js
    -"timers": "legacy",
    +"timers": "modern",
chore
BREAKING CHANGES
  • Remove deprecated waitFormDOMChange
  • Remove deprecated waitForElement
  • 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.POSITIVE_INFINITY }) and rely on your test runner to timeout considering real timers.
  • <script />, <style /> and comment nodes are now ignored by default in prettyDOM .If you whish to return to the old behavior, use a custom filterNode function. In this case prettyDOM(element, { filterNode: () => true }).
  • node 10 is no longer supported. It reached its end-of-life on 30.04.2021.
testing-library/react-testing-library

v12.1.0

Compare Source

Features

v12.0.0

Compare Source

Bug Fixes
Features
BREAKING CHANGES

Configuration

📅 Schedule: "before 7am on the first day of the month" in timezone GMT.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot added the topic: automation Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot label Aug 1, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 1, 2021
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 2, 2021
@renovate renovate bot force-pushed the renovate/major-testing-library branch 2 times, most recently from c5290dd to 28151b2 Compare August 12, 2021 19:33
@renovate renovate bot force-pushed the renovate/major-testing-library branch 4 times, most recently from de4b7b1 to f5d1bd1 Compare August 27, 2021 13:14
@wardpeet wardpeet added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Sep 1, 2021
@renovate renovate bot force-pushed the renovate/major-testing-library branch 4 times, most recently from 3167a47 to a435134 Compare September 7, 2021 23:11
@renovate renovate bot force-pushed the renovate/major-testing-library branch 4 times, most recently from 68362fa to 0461690 Compare September 15, 2021 01:43
@renovate renovate bot force-pushed the renovate/major-testing-library branch from 0461690 to 3a4ed9d Compare September 16, 2021 00:19
@pragmaticpat pragmaticpat added the breaking change If implemented, this proposed work would break functionality for older versions of Gatsby label Sep 20, 2021
@LekoArts LekoArts merged commit ab2902b into master Oct 13, 2021
@LekoArts LekoArts deleted the renovate/major-testing-library branch October 13, 2021 07:15
wardpeet pushed a commit to herecydev/gatsby that referenced this pull request Oct 29, 2021
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: gatsbybot <[email protected]>
Co-authored-by: LekoArts <[email protected]>
axe312ger pushed a commit that referenced this pull request Nov 9, 2021
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: gatsbybot <[email protected]>
Co-authored-by: LekoArts <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes breaking change If implemented, this proposed work would break functionality for older versions of Gatsby topic: automation Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants