Skip to content

Commit ddfc166

Browse files
renovate[bot]jtoar
authored andcommitted
chore(deps): update dependency @testing-library/jest-dom to v6 (#9673)
[![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 <[email protected]>
1 parent b4b469f commit ddfc166

19 files changed

+47
-34
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@faker-js/faker": "8.0.2",
6767
"@npmcli/arborist": "7.2.2",
6868
"@playwright/test": "1.40.1",
69-
"@testing-library/jest-dom": "5.17.0",
69+
"@testing-library/jest-dom": "6.1.5",
7070
"@testing-library/react": "14.1.2",
7171
"@testing-library/user-event": "14.5.1",
7272
"@types/babel__generator": "7.6.7",

packages/auth/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"devDependencies": {
3030
"@babel/cli": "7.23.4",
3131
"@babel/core": "^7.22.20",
32-
"@testing-library/jest-dom": "5.17.0",
32+
"@testing-library/jest-dom": "6.1.5",
3333
"@testing-library/react": "14.1.2",
3434
"jest": "29.7.0",
3535
"msw": "1.3.2",

packages/auth/src/__tests__/AuthProvider.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
configure,
1111
} from '@testing-library/react'
1212
import { renderHook, act } from '@testing-library/react'
13-
import '@testing-library/jest-dom/extend-expect'
13+
import '@testing-library/jest-dom/jest-globals'
1414
import { graphql } from 'msw'
1515
import { setupServer } from 'msw/node'
1616

packages/forms/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@babel/cli": "7.23.4",
3232
"@babel/core": "^7.22.20",
3333
"@testing-library/dom": "9.3.3",
34-
"@testing-library/jest-dom": "5.17.0",
34+
"@testing-library/jest-dom": "6.1.5",
3535
"@testing-library/react": "14.1.2",
3636
"@testing-library/user-event": "14.5.1",
3737
"@types/pascalcase": "1.0.3",

packages/router/src/__tests__/location.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render } from '@testing-library/react'
2-
import '@testing-library/jest-dom/extend-expect'
2+
import '@testing-library/jest-dom/jest-globals'
33

44
import { LocationProvider, useLocation } from '../location'
55

packages/router/src/__tests__/nestedSets.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22
import type { ReactNode } from 'react'
33

4-
import '@testing-library/jest-dom/extend-expect'
4+
import '@testing-library/jest-dom/jest-globals'
55
import { act, render } from '@testing-library/react'
66

77
import { navigate, Route, Router } from '../'

packages/router/src/__tests__/route-announcer.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22

33
import { render, waitFor, act } from '@testing-library/react'
4-
import '@testing-library/jest-dom/extend-expect'
4+
import '@testing-library/jest-dom/jest-globals'
55

66
import { getAnnouncement } from '../a11yUtils'
77
import { navigate } from '../history'

packages/router/src/__tests__/route-focus.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render, waitFor } from '@testing-library/react'
2-
import '@testing-library/jest-dom/extend-expect'
2+
import '@testing-library/jest-dom/jest-globals'
33

44
import { getFocus } from '../a11yUtils'
55
import RouteFocus from '../route-focus'

packages/router/src/__tests__/routeScrollReset.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
import '@testing-library/jest-dom/extend-expect'
3+
import '@testing-library/jest-dom/jest-globals'
44
import { act, cleanup, render, screen } from '@testing-library/react'
55

66
import { navigate } from '../history'

packages/router/src/__tests__/router.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jest.mock('../util', () => {
2020

2121
import React, { useEffect, useState } from 'react'
2222

23-
import '@testing-library/jest-dom/extend-expect'
23+
import '@testing-library/jest-dom/jest-globals'
2424
import {
2525
act,
2626
configure,

packages/router/src/__tests__/set.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react'
22
import type { ReactNode } from 'react'
33

44
import { act, render, waitFor } from '@testing-library/react'
5-
import '@testing-library/jest-dom/extend-expect'
5+
import '@testing-library/jest-dom/jest-globals'
66

77
import { navigate } from '../history'
88
import { Route, Router } from '../router'

packages/router/src/__tests__/setContextReuse.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { act, render, waitFor } from '@testing-library/react'
55
import { Route, Router, navigate } from '../'
66
import { Set } from '../Set'
77

8-
import '@testing-library/jest-dom/extend-expect'
8+
import '@testing-library/jest-dom/jest-globals'
99

1010
const HomePage = () => {
1111
return <p>Home Page</p>

packages/testing/jest.setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '@testing-library/jest-dom/extend-expect'
1+
import '@testing-library/jest-dom/jest-globals'
22
import '@testing-library/jest-dom'
33

44
import { startMSW } from './src/web/mockRequests'

packages/testing/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@redwoodjs/project-config": "6.6.0",
3535
"@redwoodjs/router": "6.6.0",
3636
"@redwoodjs/web": "6.6.0",
37-
"@testing-library/jest-dom": "5.17.0",
37+
"@testing-library/jest-dom": "6.1.5",
3838
"@testing-library/react": "14.1.2",
3939
"@testing-library/user-event": "14.5.1",
4040
"@types/aws-lambda": "8.10.126",

packages/web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"devDependencies": {
5252
"@babel/cli": "7.23.4",
5353
"@babel/core": "^7.22.20",
54-
"@testing-library/jest-dom": "5.17.0",
54+
"@testing-library/jest-dom": "6.1.5",
5555
"@testing-library/react": "14.1.2",
5656
"@types/react": "18.2.37",
5757
"@types/react-dom": "18.2.15",

packages/web/src/components/FetchConfigProvider.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import React from 'react'
77
import { render, screen, waitFor } from '@testing-library/react'
88

99
import type { AuthContextInterface } from '@redwoodjs/auth'
10-
import '@testing-library/jest-dom/extend-expect'
10+
import '@testing-library/jest-dom/jest-globals'
1111

1212
globalThis.RWJS_API_GRAPHQL_URL = 'https://api.example.com/graphql'
1313

packages/web/src/components/GraphQLHooksProvider.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import { render, screen, waitFor } from '@testing-library/react'
6-
import '@testing-library/jest-dom/extend-expect'
6+
import '@testing-library/jest-dom/jest-globals'
77

88
import {
99
GraphQLHooksProvider,

packages/web/src/components/createCell.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import { render, screen } from '@testing-library/react'
6-
import '@testing-library/jest-dom/extend-expect'
6+
import '@testing-library/jest-dom/jest-globals'
77

88
import { createCell } from './createCell'
99
import { GraphQLHooksProvider } from './GraphQLHooksProvider'

yarn.lock

+29-16
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ __metadata:
8686
languageName: node
8787
linkType: hard
8888

89-
"@adobe/css-tools@npm:^4.0.1":
90-
version: 4.2.0
91-
resolution: "@adobe/css-tools@npm:4.2.0"
92-
checksum: b8dbfd9c54df73a398e9b20c922abe26c67732e16afc50668402af0e3d101409e0c944baf69bf814343eb8639014637b96f209426088b06943cea288c1ef1486
89+
"@adobe/css-tools@npm:^4.3.1":
90+
version: 4.3.2
91+
resolution: "@adobe/css-tools@npm:4.3.2"
92+
checksum: 296a03dd29f227c60500d2da8c7f64991fecf1d8b456ce2b4adb8cec7363d9c08b5b03f1463673fc8cbfe54b538745588e7a13c736d2dd14a80c01a20f127f39
9393
languageName: node
9494
linkType: hard
9595

@@ -8254,7 +8254,7 @@ __metadata:
82548254
"@babel/cli": "npm:7.23.4"
82558255
"@babel/core": "npm:^7.22.20"
82568256
"@babel/runtime-corejs3": "npm:7.23.6"
8257-
"@testing-library/jest-dom": "npm:5.17.0"
8257+
"@testing-library/jest-dom": "npm:6.1.5"
82588258
"@testing-library/react": "npm:14.1.2"
82598259
core-js: "npm:3.34.0"
82608260
jest: "npm:29.7.0"
@@ -8620,7 +8620,7 @@ __metadata:
86208620
"@babel/core": "npm:^7.22.20"
86218621
"@babel/runtime-corejs3": "npm:7.23.6"
86228622
"@testing-library/dom": "npm:9.3.3"
8623-
"@testing-library/jest-dom": "npm:5.17.0"
8623+
"@testing-library/jest-dom": "npm:6.1.5"
86248624
"@testing-library/react": "npm:14.1.2"
86258625
"@testing-library/user-event": "npm:14.5.1"
86268626
"@types/pascalcase": "npm:1.0.3"
@@ -9087,7 +9087,7 @@ __metadata:
90879087
"@redwoodjs/project-config": "npm:6.6.0"
90889088
"@redwoodjs/router": "npm:6.6.0"
90899089
"@redwoodjs/web": "npm:6.6.0"
9090-
"@testing-library/jest-dom": "npm:5.17.0"
9090+
"@testing-library/jest-dom": "npm:6.1.5"
90919091
"@testing-library/react": "npm:14.1.2"
90929092
"@testing-library/user-event": "npm:14.5.1"
90939093
"@types/aws-lambda": "npm:8.10.126"
@@ -9181,7 +9181,7 @@ __metadata:
91819181
"@babel/core": "npm:^7.22.20"
91829182
"@babel/runtime-corejs3": "npm:7.23.6"
91839183
"@redwoodjs/auth": "npm:6.6.0"
9184-
"@testing-library/jest-dom": "npm:5.17.0"
9184+
"@testing-library/jest-dom": "npm:6.1.5"
91859185
"@testing-library/react": "npm:14.1.2"
91869186
"@types/react": "npm:18.2.37"
91879187
"@types/react-dom": "npm:18.2.15"
@@ -10734,20 +10734,33 @@ __metadata:
1073410734
languageName: node
1073510735
linkType: hard
1073610736

10737-
"@testing-library/jest-dom@npm:5.17.0":
10738-
version: 5.17.0
10739-
resolution: "@testing-library/jest-dom@npm:5.17.0"
10737+
"@testing-library/jest-dom@npm:6.1.5":
10738+
version: 6.1.5
10739+
resolution: "@testing-library/jest-dom@npm:6.1.5"
1074010740
dependencies:
10741-
"@adobe/css-tools": "npm:^4.0.1"
10741+
"@adobe/css-tools": "npm:^4.3.1"
1074210742
"@babel/runtime": "npm:^7.9.2"
10743-
"@types/testing-library__jest-dom": "npm:^5.9.1"
1074410743
aria-query: "npm:^5.0.0"
1074510744
chalk: "npm:^3.0.0"
1074610745
css.escape: "npm:^1.5.1"
1074710746
dom-accessibility-api: "npm:^0.5.6"
1074810747
lodash: "npm:^4.17.15"
1074910748
redent: "npm:^3.0.0"
10750-
checksum: 24e09c5779ea44644945ec26f2e4e5f48aecfe57d469decf2317a3253a5db28d865c55ad0ea4818d8d1df7572a6486c45daa06fa09644a833a7dd84563881939
10749+
peerDependencies:
10750+
"@jest/globals": ">= 28"
10751+
"@types/jest": ">= 28"
10752+
jest: ">= 28"
10753+
vitest: ">= 0.32"
10754+
peerDependenciesMeta:
10755+
"@jest/globals":
10756+
optional: true
10757+
"@types/jest":
10758+
optional: true
10759+
jest:
10760+
optional: true
10761+
vitest:
10762+
optional: true
10763+
checksum: f3643a56fcd970b5c7e8fd10faf3c4817d8ab0e74fb1198d726643bdc5ac675ceaac3b0068c5b4fbad254470e8f98ed50028741de875a29ceaa2f854570979c9
1075110764
languageName: node
1075210765
linkType: hard
1075310766

@@ -12096,7 +12109,7 @@ __metadata:
1209612109
languageName: node
1209712110
linkType: hard
1209812111

12099-
"@types/testing-library__jest-dom@npm:5.14.9, @types/testing-library__jest-dom@npm:^5.9.1":
12112+
"@types/testing-library__jest-dom@npm:5.14.9":
1210012113
version: 5.14.9
1210112114
resolution: "@types/testing-library__jest-dom@npm:5.14.9"
1210212115
dependencies:
@@ -31244,7 +31257,7 @@ __metadata:
3124431257
"@faker-js/faker": "npm:8.0.2"
3124531258
"@npmcli/arborist": "npm:7.2.2"
3124631259
"@playwright/test": "npm:1.40.1"
31247-
"@testing-library/jest-dom": "npm:5.17.0"
31260+
"@testing-library/jest-dom": "npm:6.1.5"
3124831261
"@testing-library/react": "npm:14.1.2"
3124931262
"@testing-library/user-event": "npm:14.5.1"
3125031263
"@types/babel__generator": "npm:7.6.7"

0 commit comments

Comments
 (0)