Skip to content

Commit

Permalink
Update @testing-library/jest-dom to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Nov 8, 2023
1 parent 7bd76ed commit 4065713
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 205 deletions.
2 changes: 1 addition & 1 deletion packages/react-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
"devDependencies": {
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@types/node": "*",
"@types/react": "*",
Expand Down
6 changes: 2 additions & 4 deletions packages/react-pdf/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { expect, afterEach } from 'vitest';
import { afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import matchers from '@testing-library/jest-dom/matchers';
import '@testing-library/jest-dom/vitest';
import 'vitest-canvas-mock';

expect.extend(matchers);

afterEach(() => {
cleanup();
});
Expand Down
225 changes: 25 additions & 200 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ __metadata:
languageName: node
linkType: hard

"@adobe/css-tools@npm:^4.0.1":
"@adobe/css-tools@npm:^4.3.1":
version: 4.3.1
resolution: "@adobe/css-tools@npm:4.3.1"
checksum: 05672719b544cc0c21ae3ed0eb6349bf458e9d09457578eeeb07cf0f696469ac6417e9c9be1b129e5d6a18098a061c1db55b2275591760ef30a79822436fcbfa
Expand All @@ -29,7 +29,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.22.13":
"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.22.13":
version: 7.22.13
resolution: "@babel/code-frame@npm:7.22.13"
dependencies:
Expand Down Expand Up @@ -520,15 +520,6 @@ __metadata:
languageName: node
linkType: hard

"@jest/expect-utils@npm:^29.5.0":
version: 29.5.0
resolution: "@jest/expect-utils@npm:29.5.0"
dependencies:
jest-get-type: "npm:^29.4.3"
checksum: e7f44de651b5ef71c6e1b7a0350a704258167c20b6e8165b3100346d5c7f8eb4cd2c229ea2c048e9161666d1c086fbbc422f111f3b77da3fb89a99d52d4b3690
languageName: node
linkType: hard

"@jest/schemas@npm:^29.4.3":
version: 29.4.3
resolution: "@jest/schemas@npm:29.4.3"
Expand All @@ -538,20 +529,6 @@ __metadata:
languageName: node
linkType: hard

"@jest/types@npm:^29.5.0":
version: 29.5.0
resolution: "@jest/types@npm:29.5.0"
dependencies:
"@jest/schemas": "npm:^29.4.3"
"@types/istanbul-lib-coverage": "npm:^2.0.0"
"@types/istanbul-reports": "npm:^3.0.0"
"@types/node": "npm:*"
"@types/yargs": "npm:^17.0.8"
chalk: "npm:^4.0.0"
checksum: f1cccd2e9b00a985bfdac03517f906cdf7a481be3606c335f8ec08a7272b7cf700b23484ce323a912b374defb90d3ab88c643cf2a2f47635c1c4feacfa1c1b2d
languageName: node
linkType: hard

"@jridgewell/gen-mapping@npm:^0.1.0":
version: 0.1.1
resolution: "@jridgewell/gen-mapping@npm:0.1.1"
Expand Down Expand Up @@ -721,20 +698,33 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/jest-dom@npm:^5.15.0":
version: 5.16.5
resolution: "@testing-library/jest-dom@npm:5.16.5"
"@testing-library/jest-dom@npm:^6.0.0":
version: 6.1.4
resolution: "@testing-library/jest-dom@npm:6.1.4"
dependencies:
"@adobe/css-tools": "npm:^4.0.1"
"@adobe/css-tools": "npm:^4.3.1"
"@babel/runtime": "npm:^7.9.2"
"@types/testing-library__jest-dom": "npm:^5.9.1"
aria-query: "npm:^5.0.0"
chalk: "npm:^3.0.0"
css.escape: "npm:^1.5.1"
dom-accessibility-api: "npm:^0.5.6"
lodash: "npm:^4.17.15"
redent: "npm:^3.0.0"
checksum: 0925fda78096cca355d164d5358b84b9371c4fb6ba60ce60c2263446ac6d9c6aaca75e2792cdb42699fe78c379924c53db672a3510361b577ebb89a0c6e1c629
peerDependencies:
"@jest/globals": ">= 28"
"@types/jest": ">= 28"
jest: ">= 28"
vitest: ">= 0.32"
peerDependenciesMeta:
"@jest/globals":
optional: true
"@types/jest":
optional: true
jest:
optional: true
vitest:
optional: true
checksum: 2e23f120613fd8ae6d5169bbc94f1a2e4c82b07182057dc94db8ec54ebf32555833442e6c43a187e59715d83704ffb5df49ba88a71f6f32d2683f3d95ba721c7
languageName: node
linkType: hard

Expand Down Expand Up @@ -823,41 +813,6 @@ __metadata:
languageName: node
linkType: hard

"@types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0":
version: 2.0.4
resolution: "@types/istanbul-lib-coverage@npm:2.0.4"
checksum: af5f6b64e788331ed3f7b2e2613cb6ca659c58b8500be94bbda8c995ad3da9216c006f1cfe6f66b321c39392b1bda18b16e63cef090a77d24a00b4bd5ba3b018
languageName: node
linkType: hard

"@types/istanbul-lib-report@npm:*":
version: 3.0.0
resolution: "@types/istanbul-lib-report@npm:3.0.0"
dependencies:
"@types/istanbul-lib-coverage": "npm:*"
checksum: 7ced458631276a28082ee40645224c3cdd8b861961039ff811d841069171c987ec7e50bc221845ec0d04df0022b2f457a21fb2f816dab2fbe64d59377b32031f
languageName: node
linkType: hard

"@types/istanbul-reports@npm:^3.0.0":
version: 3.0.1
resolution: "@types/istanbul-reports@npm:3.0.1"
dependencies:
"@types/istanbul-lib-report": "npm:*"
checksum: e147f0db9346a0cae9a359220bc76f7c78509fb6979a2597feb24d64b6e8328d2d26f9d152abbd59c6bca721e4ea2530af20116d01df50815efafd1e151fd777
languageName: node
linkType: hard

"@types/jest@npm:*":
version: 29.5.0
resolution: "@types/jest@npm:29.5.0"
dependencies:
expect: "npm:^29.0.0"
pretty-format: "npm:^29.0.0"
checksum: e77f88cbdf867838320767bf42915570bcebbf7c378578d60654b9ea8c15981b6c2c06e4e56985e35467d0cdb673d9129fd49e21a485fda9db4bb0a152f2cb86
languageName: node
linkType: hard

"@types/json-schema@npm:^7.0.11":
version: 7.0.12
resolution: "@types/json-schema@npm:7.0.12"
Expand Down Expand Up @@ -927,38 +882,6 @@ __metadata:
languageName: node
linkType: hard

"@types/stack-utils@npm:^2.0.0":
version: 2.0.1
resolution: "@types/stack-utils@npm:2.0.1"
checksum: 3327ee919a840ffe907bbd5c1d07dfd79137dd9732d2d466cf717ceec5bb21f66296173c53bb56cff95fae4185b9cd6770df3e9745fe4ba528bbc4975f54d13f
languageName: node
linkType: hard

"@types/testing-library__jest-dom@npm:^5.9.1":
version: 5.14.5
resolution: "@types/testing-library__jest-dom@npm:5.14.5"
dependencies:
"@types/jest": "npm:*"
checksum: f4c82418fdc129806d413d48064049ab3b099635dad06c40be2188134d15135b0b053044de7b0e032867b1ec754e7446046d8fdf6863b9454f8f757f1cac702d
languageName: node
linkType: hard

"@types/yargs-parser@npm:*":
version: 21.0.0
resolution: "@types/yargs-parser@npm:21.0.0"
checksum: cb89f3bb2e8002f1479a65a934e825be4cc18c50b350bbc656405d41cf90b8a299b105e7da497d7eb1aa460472a07d1e5a389f3af0862f1d1252279cfcdd017c
languageName: node
linkType: hard

"@types/yargs@npm:^17.0.8":
version: 17.0.24
resolution: "@types/yargs@npm:17.0.24"
dependencies:
"@types/yargs-parser": "npm:*"
checksum: fbebf57e1d04199e5e7eb0c67a402566fa27177ee21140664e63da826408793d203d262b48f8f41d4a7665126393d2e952a463e960e761226def247d9bbcdbd0
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^6.0.0":
version: 6.0.0
resolution: "@typescript-eslint/eslint-plugin@npm:6.0.0"
Expand Down Expand Up @@ -1691,13 +1614,6 @@ __metadata:
languageName: node
linkType: hard

"ci-info@npm:^3.2.0":
version: 3.8.0
resolution: "ci-info@npm:3.8.0"
checksum: 0d3052193b58356372b34ab40d2668c3e62f1006d5ca33726d1d3c423853b19a85508eadde7f5908496fb41448f465263bf61c1ee58b7832cb6a924537e3863a
languageName: node
linkType: hard

"clean-stack@npm:^2.0.0":
version: 2.2.0
resolution: "clean-stack@npm:2.2.0"
Expand Down Expand Up @@ -2284,13 +2200,6 @@ __metadata:
languageName: node
linkType: hard

"escape-string-regexp@npm:^2.0.0":
version: 2.0.0
resolution: "escape-string-regexp@npm:2.0.0"
checksum: 2530479fe8db57eace5e8646c9c2a9c80fa279614986d16dcc6bcaceb63ae77f05a851ba6c43756d816c61d7f4534baf56e3c705e3e0d884818a46808811c507
languageName: node
linkType: hard

"escape-string-regexp@npm:^4.0.0":
version: 4.0.0
resolution: "escape-string-regexp@npm:4.0.0"
Expand Down Expand Up @@ -2632,19 +2541,6 @@ __metadata:
languageName: node
linkType: hard

"expect@npm:^29.0.0":
version: 29.5.0
resolution: "expect@npm:29.5.0"
dependencies:
"@jest/expect-utils": "npm:^29.5.0"
jest-get-type: "npm:^29.4.3"
jest-matcher-utils: "npm:^29.5.0"
jest-message-util: "npm:^29.5.0"
jest-util: "npm:^29.5.0"
checksum: 3c9382967217ad1453e9271e0da3f83c4aeb12272968007b90fc5873340e7fb64bf4852e1522bdf27556623d031ce62f82aaac09e485a15c6d0589d50999422d
languageName: node
linkType: hard

"fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3":
version: 3.1.3
resolution: "fast-deep-equal@npm:3.1.3"
Expand Down Expand Up @@ -2951,7 +2847,7 @@ __metadata:
languageName: node
linkType: hard

"graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9":
"graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.10, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6":
version: 4.2.11
resolution: "graceful-fs@npm:4.2.11"
checksum: 386d011a553e02bc594ac2ca0bd6d9e4c22d7fa8cfbfc448a6d148c59ea881b092db9dbe3547ae4b88e55f1b01f7c4a2ecc53b310c042793e63aa44cf6c257f2
Expand Down Expand Up @@ -3340,68 +3236,6 @@ __metadata:
languageName: node
linkType: hard

"jest-diff@npm:^29.5.0":
version: 29.5.0
resolution: "jest-diff@npm:29.5.0"
dependencies:
chalk: "npm:^4.0.0"
diff-sequences: "npm:^29.4.3"
jest-get-type: "npm:^29.4.3"
pretty-format: "npm:^29.5.0"
checksum: 00fda597fa6ee22774453c3cd35c2210bd7f749cf48ad7a41c13b898b2943c9c047842720eb928cdb949b9de87204d8d8987bf12aefdb2f0504f5f4112cab5b0
languageName: node
linkType: hard

"jest-get-type@npm:^29.4.3":
version: 29.4.3
resolution: "jest-get-type@npm:29.4.3"
checksum: 874b0ced6b1cc677ff7fcf0dc86d02674617a7d0b73d47097604fb3ca460178d16104efdd3837e8b8bf0520ad5d210838c07483b058802b457b8413e60628fd0
languageName: node
linkType: hard

"jest-matcher-utils@npm:^29.5.0":
version: 29.5.0
resolution: "jest-matcher-utils@npm:29.5.0"
dependencies:
chalk: "npm:^4.0.0"
jest-diff: "npm:^29.5.0"
jest-get-type: "npm:^29.4.3"
pretty-format: "npm:^29.5.0"
checksum: 0a3ae95ef5c5c4ac2b2c503c2f57e173fa82725722e1fadcd902fd801afe17d9d36e9366820959465f553627bf1e481a0e4a540125f3b4371eec674b3557f7f3
languageName: node
linkType: hard

"jest-message-util@npm:^29.5.0":
version: 29.5.0
resolution: "jest-message-util@npm:29.5.0"
dependencies:
"@babel/code-frame": "npm:^7.12.13"
"@jest/types": "npm:^29.5.0"
"@types/stack-utils": "npm:^2.0.0"
chalk: "npm:^4.0.0"
graceful-fs: "npm:^4.2.9"
micromatch: "npm:^4.0.4"
pretty-format: "npm:^29.5.0"
slash: "npm:^3.0.0"
stack-utils: "npm:^2.0.3"
checksum: 706e89cacc89c090af584f4687c4e7f0616706481e468ec7c88270e07ae7458a829e477b7b3dff56b75d801f799d65eb2c28d6453c25dd02bea0fd98f0809dbb
languageName: node
linkType: hard

"jest-util@npm:^29.5.0":
version: 29.5.0
resolution: "jest-util@npm:29.5.0"
dependencies:
"@jest/types": "npm:^29.5.0"
"@types/node": "npm:*"
chalk: "npm:^4.0.0"
ci-info: "npm:^3.2.0"
graceful-fs: "npm:^4.2.9"
picomatch: "npm:^2.2.3"
checksum: c7f1dc8ae82cd9614a31e09806499560b4812beb57589b214241dd213d3cc6d24417593aef2caf2d3d9694925438849fec371ff36ca8a7f1be8438fd41e83373
languageName: node
linkType: hard

"js-sdsl@npm:^4.1.4":
version: 4.4.0
resolution: "js-sdsl@npm:4.4.0"
Expand Down Expand Up @@ -4577,7 +4411,7 @@ __metadata:
languageName: node
linkType: hard

"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.3, picomatch@npm:^2.3.1":
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
checksum: 26c02b8d06f03206fc2ab8d16f19960f2ff9e81a658f831ecb656d8f17d9edc799e8364b1f4a7873e89d9702dff96204be0fa26fe4181f6843f040f819dac4be
Expand Down Expand Up @@ -4642,7 +4476,7 @@ __metadata:
languageName: node
linkType: hard

"pretty-format@npm:^29.0.0, pretty-format@npm:^29.5.0":
"pretty-format@npm:^29.5.0":
version: 29.5.0
resolution: "pretty-format@npm:29.5.0"
dependencies:
Expand Down Expand Up @@ -4771,7 +4605,7 @@ __metadata:
resolution: "react-pdf@workspace:packages/react-pdf"
dependencies:
"@testing-library/dom": "npm:^9.0.0"
"@testing-library/jest-dom": "npm:^5.15.0"
"@testing-library/jest-dom": "npm:^6.0.0"
"@testing-library/react": "npm:^14.0.0"
"@types/node": "npm:*"
"@types/react": "npm:*"
Expand Down Expand Up @@ -5270,15 +5104,6 @@ __metadata:
languageName: node
linkType: hard

"stack-utils@npm:^2.0.3":
version: 2.0.6
resolution: "stack-utils@npm:2.0.6"
dependencies:
escape-string-regexp: "npm:^2.0.0"
checksum: 651c9f87667e077584bbe848acaecc6049bc71979f1e9a46c7b920cad4431c388df0f51b8ad7cfd6eed3db97a2878d0fc8b3122979439ea8bac29c61c95eec8a
languageName: node
linkType: hard

"stackback@npm:0.0.2":
version: 0.0.2
resolution: "stackback@npm:0.0.2"
Expand Down

0 comments on commit 4065713

Please sign in to comment.