Skip to content

Commit 08800fe

Browse files
committed
Upgrade testing-library/jest-dom
1 parent 8f52eac commit 08800fe

File tree

3 files changed

+52
-4
lines changed

3 files changed

+52
-4
lines changed

code/lib/test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@storybook/instrumenter": "workspace:*",
4949
"@storybook/preview-api": "workspace:*",
5050
"@testing-library/dom": "^9.3.1",
51-
"@testing-library/jest-dom": "^6.1.3",
51+
"@testing-library/jest-dom": "^6.4.0",
5252
"@testing-library/user-event": "14.3.0",
5353
"@vitest/expect": "1.1.3",
5454
"@vitest/spy": "^1.1.3",

code/lib/test/src/expect.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ import {
1616
} from '@vitest/expect';
1717
import * as matchers from '@testing-library/jest-dom/matchers';
1818
import type { PromisifyObject } from './utils';
19+
import type { TestingLibraryMatchers } from '@testing-library/jest-dom/types/matchers';
1920

2021
type Matchers<T> = PromisifyObject<JestAssertion<T>> &
21-
matchers.TestingLibraryMatchers<ReturnType<ExpectStatic['stringContaining']>, Promise<void>>;
22+
TestingLibraryMatchers<ReturnType<ExpectStatic['stringContaining']>, Promise<void>>;
2223

2324
// We only expose the jest compatible API for now
2425
export interface Assertion<T> extends Matchers<T> {

code/yarn.lock

+49-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ __metadata:
3131
languageName: node
3232
linkType: hard
3333

34+
"@adobe/css-tools@npm:^4.3.2":
35+
version: 4.3.3
36+
resolution: "@adobe/css-tools@npm:4.3.3"
37+
checksum: e76e712df713964b87cdf2aca1f0477f19bebd845484d5fcba726d3ec7782366e2f26ec8cb2dcfaf47081a5c891987d8a9f5c3f30d11e1eb3c1848adc27fcb24
38+
languageName: node
39+
linkType: hard
40+
3441
"@ampproject/remapping@npm:2.2.1, @ampproject/remapping@npm:^2.2.0, @ampproject/remapping@npm:^2.2.1":
3542
version: 2.2.1
3643
resolution: "@ampproject/remapping@npm:2.2.1"
@@ -6663,7 +6670,7 @@ __metadata:
66636670
"@storybook/instrumenter": "workspace:*"
66646671
"@storybook/preview-api": "workspace:*"
66656672
"@testing-library/dom": "npm:^9.3.1"
6666-
"@testing-library/jest-dom": "npm:^6.1.3"
6673+
"@testing-library/jest-dom": "npm:^6.4.0"
66676674
"@testing-library/user-event": "npm:14.3.0"
66686675
"@vitest/expect": "npm:1.1.3"
66696676
"@vitest/spy": "npm:^1.1.3"
@@ -6925,7 +6932,7 @@ __metadata:
69256932
languageName: node
69266933
linkType: hard
69276934

6928-
"@testing-library/jest-dom@npm:^6.1.3, @testing-library/jest-dom@npm:^6.1.4":
6935+
"@testing-library/jest-dom@npm:^6.1.4":
69296936
version: 6.1.5
69306937
resolution: "@testing-library/jest-dom@npm:6.1.5"
69316938
dependencies:
@@ -6955,6 +6962,39 @@ __metadata:
69556962
languageName: node
69566963
linkType: hard
69576964

6965+
"@testing-library/jest-dom@npm:^6.4.0":
6966+
version: 6.4.0
6967+
resolution: "@testing-library/jest-dom@npm:6.4.0"
6968+
dependencies:
6969+
"@adobe/css-tools": "npm:^4.3.2"
6970+
"@babel/runtime": "npm:^7.9.2"
6971+
aria-query: "npm:^5.0.0"
6972+
chalk: "npm:^3.0.0"
6973+
css.escape: "npm:^1.5.1"
6974+
dom-accessibility-api: "npm:^0.6.3"
6975+
lodash: "npm:^4.17.15"
6976+
redent: "npm:^3.0.0"
6977+
peerDependencies:
6978+
"@jest/globals": ">= 28"
6979+
"@types/bun": "*"
6980+
"@types/jest": ">= 28"
6981+
jest: ">= 28"
6982+
vitest: ">= 0.32"
6983+
peerDependenciesMeta:
6984+
"@jest/globals":
6985+
optional: true
6986+
"@types/bun":
6987+
optional: true
6988+
"@types/jest":
6989+
optional: true
6990+
jest:
6991+
optional: true
6992+
vitest:
6993+
optional: true
6994+
checksum: 6b7eba9ca388986a721fb12f84adf0f5534bf7ec5851982023a889c4a0afac6e9e91291bdac39e1f59a05adefd7727e30463d98b21c3da32fbfec229ccb11ef1
6995+
languageName: node
6996+
linkType: hard
6997+
69586998
"@testing-library/react@npm:^11.2.2":
69596999
version: 11.2.7
69607000
resolution: "@testing-library/react@npm:11.2.7"
@@ -12993,6 +13033,13 @@ __metadata:
1299313033
languageName: node
1299413034
linkType: hard
1299513035

13036+
"dom-accessibility-api@npm:^0.6.3":
13037+
version: 0.6.3
13038+
resolution: "dom-accessibility-api@npm:0.6.3"
13039+
checksum: 10bee5aa514b2a9a37c87cd81268db607a2e933a050074abc2f6fa3da9080ebed206a320cbc123567f2c3087d22292853bdfdceaffdd4334ffe2af9510b29360
13040+
languageName: node
13041+
linkType: hard
13042+
1299613043
"dom-converter@npm:^0.2.0":
1299713044
version: 0.2.0
1299813045
resolution: "dom-converter@npm:0.2.0"

0 commit comments

Comments
 (0)