Skip to content

Commit b2948f6

Browse files
renovate[bot]jtoar
andauthored
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/) | --- ### Release Notes <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) ##### Bug Fixes - 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) ##### Bug Fixes - 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) ##### Bug Fixes - 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) ##### Bug Fixes - 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) ##### Bug Fixes - **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) ##### Features - 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) ##### Bug Fixes - 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) ##### Features - 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)) ##### 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: - [@&#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> --- ### 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. --- - [ ] <!-- 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 f7c7613 commit b2948f6

21 files changed

+49
-36
lines changed

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@redwoodjs/project-config": "6.0.7",
3535
"@redwoodjs/router": "6.0.7",
3636
"@redwoodjs/web": "6.0.7",
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@apollo/experimental-nextjs-app-support": "0.5.1",
5353
"@babel/cli": "7.23.4",
5454
"@babel/core": "^7.22.20",
55-
"@testing-library/jest-dom": "5.17.0",
55+
"@testing-library/jest-dom": "6.1.5",
5656
"@testing-library/react": "14.1.2",
5757
"@types/react": "18.2.37",
5858
"@types/react-dom": "18.2.15",

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/cell/createCell.test.tsx

Lines changed: 1 addition & 1 deletion
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 { GraphQLHooksProvider } from '../GraphQLHooksProvider'
99

packages/web/src/components/cell/createSuspendingCell.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import type { useReadQuery, useBackgroundQuery } from '@apollo/client'
55
import { loadErrorMessages, loadDevMessages } from '@apollo/client/dev'
66
import { render, screen } from '@testing-library/react'
7-
import '@testing-library/jest-dom/extend-expect'
7+
import '@testing-library/jest-dom/jest-globals'
88

99
import { GraphQLHooksProvider } from '../GraphQLHooksProvider'
1010

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

Lines changed: 1 addition & 1 deletion
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 { render } from '@testing-library/react'
55

66
import PortalHead from './PortalHead'

yarn.lock

Lines changed: 29 additions & 16 deletions
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.3.1
91-
resolution: "@adobe/css-tools@npm:4.3.1"
92-
checksum: 05672719b544cc0c21ae3ed0eb6349bf458e9d09457578eeeb07cf0f696469ac6417e9c9be1b129e5d6a18098a061c1db55b2275591760ef30a79822436fcbfa
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

@@ -8668,7 +8668,7 @@ __metadata:
86688668
"@babel/cli": 7.23.4
86698669
"@babel/core": ^7.22.20
86708670
"@babel/runtime-corejs3": 7.23.5
8671-
"@testing-library/jest-dom": 5.17.0
8671+
"@testing-library/jest-dom": 6.1.5
86728672
"@testing-library/react": 14.1.2
86738673
core-js: 3.33.3
86748674
jest: 29.7.0
@@ -9037,7 +9037,7 @@ __metadata:
90379037
"@babel/core": ^7.22.20
90389038
"@babel/runtime-corejs3": 7.23.5
90399039
"@testing-library/dom": 9.3.3
9040-
"@testing-library/jest-dom": 5.17.0
9040+
"@testing-library/jest-dom": 6.1.5
90419041
"@testing-library/react": 14.1.2
90429042
"@testing-library/user-event": 14.5.1
90439043
"@types/pascalcase": 1.0.3
@@ -9510,7 +9510,7 @@ __metadata:
95109510
"@redwoodjs/project-config": 6.0.7
95119511
"@redwoodjs/router": 6.0.7
95129512
"@redwoodjs/web": 6.0.7
9513-
"@testing-library/jest-dom": 5.17.0
9513+
"@testing-library/jest-dom": 6.1.5
95149514
"@testing-library/react": 14.1.2
95159515
"@testing-library/user-event": 14.5.1
95169516
"@types/aws-lambda": 8.10.126
@@ -9619,7 +9619,7 @@ __metadata:
96199619
"@babel/core": ^7.22.20
96209620
"@babel/runtime-corejs3": 7.23.5
96219621
"@redwoodjs/auth": 6.0.7
9622-
"@testing-library/jest-dom": 5.17.0
9622+
"@testing-library/jest-dom": 6.1.5
96239623
"@testing-library/react": 14.1.2
96249624
"@types/react": 18.2.37
96259625
"@types/react-dom": 18.2.15
@@ -11172,20 +11172,33 @@ __metadata:
1117211172
languageName: node
1117311173
linkType: hard
1117411174

11175-
"@testing-library/jest-dom@npm:5.17.0":
11176-
version: 5.17.0
11177-
resolution: "@testing-library/jest-dom@npm:5.17.0"
11175+
"@testing-library/jest-dom@npm:6.1.5":
11176+
version: 6.1.5
11177+
resolution: "@testing-library/jest-dom@npm:6.1.5"
1117811178
dependencies:
11179-
"@adobe/css-tools": ^4.0.1
11179+
"@adobe/css-tools": ^4.3.1
1118011180
"@babel/runtime": ^7.9.2
11181-
"@types/testing-library__jest-dom": ^5.9.1
1118211181
aria-query: ^5.0.0
1118311182
chalk: ^3.0.0
1118411183
css.escape: ^1.5.1
1118511184
dom-accessibility-api: ^0.5.6
1118611185
lodash: ^4.17.15
1118711186
redent: ^3.0.0
11188-
checksum: 24e09c5779ea44644945ec26f2e4e5f48aecfe57d469decf2317a3253a5db28d865c55ad0ea4818d8d1df7572a6486c45daa06fa09644a833a7dd84563881939
11187+
peerDependencies:
11188+
"@jest/globals": ">= 28"
11189+
"@types/jest": ">= 28"
11190+
jest: ">= 28"
11191+
vitest: ">= 0.32"
11192+
peerDependenciesMeta:
11193+
"@jest/globals":
11194+
optional: true
11195+
"@types/jest":
11196+
optional: true
11197+
jest:
11198+
optional: true
11199+
vitest:
11200+
optional: true
11201+
checksum: f3643a56fcd970b5c7e8fd10faf3c4817d8ab0e74fb1198d726643bdc5ac675ceaac3b0068c5b4fbad254470e8f98ed50028741de875a29ceaa2f854570979c9
1118911202
languageName: node
1119011203
linkType: hard
1119111204

@@ -12568,7 +12581,7 @@ __metadata:
1256812581
languageName: node
1256912582
linkType: hard
1257012583

12571-
"@types/testing-library__jest-dom@npm:5.14.9, @types/testing-library__jest-dom@npm:^5.9.1":
12584+
"@types/testing-library__jest-dom@npm:5.14.9":
1257212585
version: 5.14.9
1257312586
resolution: "@types/testing-library__jest-dom@npm:5.14.9"
1257412587
dependencies:
@@ -31798,7 +31811,7 @@ __metadata:
3179831811
"@faker-js/faker": 8.0.2
3179931812
"@npmcli/arborist": 7.2.2
3180031813
"@playwright/test": 1.40.1
31801-
"@testing-library/jest-dom": 5.17.0
31814+
"@testing-library/jest-dom": 6.1.5
3180231815
"@testing-library/react": 14.1.2
3180331816
"@testing-library/user-event": 14.5.1
3180431817
"@types/babel__generator": 7.6.7

0 commit comments

Comments
 (0)