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 dependency @testing-library/jest-dom to v6 #9673

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 13, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@testing-library/jest-dom 5.17.0 -> 6.1.5 age adoption passing confidence

Release Notes

testing-library/jest-dom (@​testing-library/jest-dom)

v6.1.5

Compare Source

Bug Fixes

v6.1.4

Compare Source

Bug Fixes
  • upgrade @adobe/css-tools to 4.3.1 to address vulnerability (#​532) (44f1eab)

v6.1.3

Compare Source

Bug Fixes

v6.1.2

Compare Source

Bug Fixes

v6.1.1

Compare Source

Bug Fixes

v6.1.0

Compare Source

Features

v6.0.1

Compare Source

Bug Fixes
  • matchers type is making the global expect unsafe (#​513) (bdb34f1)

v6.0.0

Compare Source

Features
BREAKING CHANGES
  • Removes the extend-expect script. Users should use
    the default import path or one of the new test platform-specific
    paths to automatically extend the appropriate "expect" instance.

extend-expect was not documented in the Readme, so this change should
have minimal impact.

Users can now use the following import paths to automatically extend
"expect" for their chosen test platform:

For example:

import '@​testing-library/jest-dom/jest-globals'

Importing from one of the above paths will augment the appropriate
matcher interface for the given test platform, assuming the import
is done in a .ts file that is included in the user's tsconfig.json.

It's also (still) possible to import the matchers directly without
side effects:

import * as matchers from '@​testing-library/jest-dom/matchers'

  • Update kcd-scripts
  • Drop node < 14

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


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

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

@jtoar jtoar added the release:breaking This PR is a breaking change label Dec 13, 2023
@jtoar jtoar added this to the v7.0.0 milestone Dec 13, 2023
@renovate renovate bot force-pushed the renovate/testing-library-jest-dom-6.x branch from adc0d9a to dc7c950 Compare December 14, 2023 01:45
@renovate renovate bot force-pushed the renovate/testing-library-jest-dom-6.x branch from dc7c950 to 5fe900b Compare December 14, 2023 01:49
@jtoar jtoar enabled auto-merge (squash) December 14, 2023 05:18
Copy link
Contributor Author

renovate bot commented Dec 14, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@jtoar jtoar merged commit b2948f6 into main Dec 14, 2023
32 checks passed
@jtoar jtoar deleted the renovate/testing-library-jest-dom-6.x branch December 14, 2023 05:26
jtoar added a commit that referenced this pull request Dec 15, 2023
jtoar added a commit that referenced this pull request Dec 15, 2023
This reverts #9673 and
#9711.

With v6 of `@testing-library/jest-dom`, `yarn rw type-check` fails in
Redwood projects because it can't locate the types for
`@testing-libary/jest-dom`. They absorbed the definitely types package
(`@types/testing-library__jest-dom`) in this PR:
testing-library/jest-dom#511. Here's an example
of a failing run:
https://github.com/redwoodjs/redwood/actions/runs/7213177056/job/19668365614?pr=9708.

The logical thing to do is remove `@testing-libary/jest-dom` from the
`types` array in `web/tsconfig.json`, but when we do that we get a
different failure from TS saying that it doesn't understand the extended
matchers provided by `testing-library/jest-dom` like
`toBeInTheDocument`.

@Tobbe filed an issue in their repo here
testing-library/jest-dom#559.

In the PR I linked to, the maintainer notes that...

> But in my local testing with the changes in this PR, following the
Readme was sufficient to get full auto-complete support even for JS-only
users. As long as they have a jest-setup file that imports the bare
export and add a dependency on @types/jest, recent versions of VS Code
will figure it out.

Users don't have jest setup files in their project (we just point to a
jest preset) or `@types/jest` as an explicit dev dependency.

I took a look at it but couldn't crack it today. Instead of holding up
other PRs in CI, better to revert it for now and come back to later when
we have more leads.
Tobbe pushed a commit that referenced this pull request Dec 22, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@testing-library/jest-dom](https://togithub.com/testing-library/jest-dom)
| [`5.17.0` ->
`6.1.5`](https://renovatebot.com/diffs/npm/@testing-library%2fjest-dom/5.17.0/6.1.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@testing-library%2fjest-dom/6.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@testing-library%2fjest-dom/6.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@testing-library%2fjest-dom/5.17.0/6.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@testing-library%2fjest-dom/5.17.0/6.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

<details>
<summary>testing-library/jest-dom
(@&#8203;testing-library/jest-dom)</summary>

[`v6.1.5`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.1.5)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.1.4...v6.1.5)

- support uppercase custom props in toHaveStyle
([#&#8203;552](https://togithub.com/testing-library/jest-dom/issues/552))
([b7b7c6a](https://togithub.com/testing-library/jest-dom/commit/b7b7c6a9652f259434d13a22e4319826a4bd4d8b))

[`v6.1.4`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.1.4)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.1.3...v6.1.4)

- upgrade `@adobe/css-tools` to `4.3.1` to address vulnerability
([#&#8203;532](https://togithub.com/testing-library/jest-dom/issues/532))
([44f1eab](https://togithub.com/testing-library/jest-dom/commit/44f1eabc79b848f45daffac21c5f7383424e893c))

[`v6.1.3`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.1.3)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.1.2...v6.1.3)

- proper [@&#8203;jest/globals](https://togithub.com/jest/globals)
import
([#&#8203;530](https://togithub.com/testing-library/jest-dom/issues/530))
([5b492ac](https://togithub.com/testing-library/jest-dom/commit/5b492ace23d52b7cb7d3f91913ed0b5311905a26))

[`v6.1.2`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.1.2)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.1.1...v6.1.2)

- bump [@&#8203;adobe/css-tools](https://togithub.com/adobe/css-tools)
for ESM support
([#&#8203;525](https://togithub.com/testing-library/jest-dom/issues/525))
([b959a68](https://togithub.com/testing-library/jest-dom/commit/b959a681386164bf5d64f5b2b9c8bf891301bc12))

[`v6.1.1`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.1.1)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.1.0...v6.1.1)

- **package.json:** update main and module file paths
([#&#8203;523](https://togithub.com/testing-library/jest-dom/issues/523))
([853a3e5](https://togithub.com/testing-library/jest-dom/commit/853a3e51ba6757a34780e32953525b6142eadcf9))

[`v6.1.0`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.1.0)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.0.1...v6.1.0)

- Publish ESM and CJS
([https://github.com/testing-library/jest-dom/pull/519](https://togithub.com/testing-library/jest-dom/pull/519))

[`v6.0.1`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.0.1)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v6.0.0...v6.0.1)

- matchers type is making the global expect unsafe
([#&#8203;513](https://togithub.com/testing-library/jest-dom/issues/513))
([bdb34f1](https://togithub.com/testing-library/jest-dom/commit/bdb34f12959578c77b18b0c0910d512768b20ab0))

[`v6.0.0`](https://togithub.com/testing-library/jest-dom/releases/tag/v6.0.0)

[Compare
Source](https://togithub.com/testing-library/jest-dom/compare/v5.17.0...v6.0.0)

- local types, supporting jest,
[@&#8203;jest/globals](https://togithub.com/jest/globals), vitest
([#&#8203;511](https://togithub.com/testing-library/jest-dom/issues/511))
([4b764b9](https://togithub.com/testing-library/jest-dom/commit/4b764b9f6a7b564d7f8ec0e9b0c6ba9cc875f2b8))

-   Removes the extend-expect script. Users should use
    the default import path or one of the new test platform-specific
    paths to automatically extend the appropriate "expect" instance.

extend-expect was not documented in the Readme, so this change should
have minimal impact.

Users can now use the following import paths to automatically extend
"expect" for their chosen test platform:

-
[@&#8203;testing-library/jest-dom](https://togithub.com/testing-library/jest-dom)
- jest ([@&#8203;types/jest](https://togithub.com/types/jest))
- @&#8203;testing-library/jest-dom/jest-globals -
[@&#8203;jest/globals](https://togithub.com/jest/globals)
-   @&#8203;testing-library/jest-dom/vitest - vitest

For example:

import '@&#8203;testing-library/jest-dom/jest-globals'

Importing from one of the above paths will augment the appropriate
matcher interface for the given test platform, assuming the import
is done in a .ts file that is included in the user's tsconfig.json.

It's also (still) possible to import the matchers directly without
side effects:

import \* as matchers from '@&#8203;testing-library/jest-dom/matchers'

-   Update kcd-scripts
-   Drop node < 14

</details>

---

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:breaking This PR is a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant