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

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,

0 commit comments

Comments
 (0)