Skip to content

Commit

Permalink
馃敟 Drop dependency @testing-library/jest-dom (#4136)
Browse files Browse the repository at this point in the history
* 猬嗭笍 Update dependency @testing-library/jest-dom to v6

* fix import

* follow official doc

* fix

* Drop unneeded lib

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nicolas DUBIEN <github@dubien.org>
  • Loading branch information
renovate[bot] and dubzzz committed Aug 26, 2023
1 parent e7dea54 commit e0530e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 84 deletions.
1 change: 0 additions & 1 deletion examples/005-race/autocomplete/main.spec.tsx
Expand Up @@ -6,7 +6,6 @@ import AutocompleteField from './src/AutocompleteField';
//import AutocompleteField from './src/AutocompleteFieldSimple';

import { render, cleanup, fireEvent, act, getNodeText, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';

import { search } from './src/Api';

Expand Down
1 change: 0 additions & 1 deletion examples/005-race/userProfile/main.spec.tsx
Expand Up @@ -4,7 +4,6 @@ import * as React from 'react';
import UserProfilePage from './src/UserProfilePage';

import { render, cleanup, act, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';

// If you want to test the behaviour of fast-check in case of a bug:
const bugId = undefined; // = 1; // to enable bug
Expand Down
1 change: 0 additions & 1 deletion examples/package.json
Expand Up @@ -8,7 +8,6 @@
},
"dependencies": {
"@testing-library/dom": "^9.3.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"express": "^4.18.2",
Expand Down
85 changes: 4 additions & 81 deletions yarn.lock
Expand Up @@ -12,13 +12,6 @@ __metadata:
languageName: node
linkType: hard

"@adobe/css-tools@npm:^4.0.1":
version: 4.2.0
resolution: "@adobe/css-tools@npm:4.2.0"
checksum: dc5cc92ba3d562e7ffddb79d6d222c7e00b65f255fd2725b3d71490ff268844be322f917415d8c4ab39eca646343b632058db8bd5b1d646193fcc94d1d3e420b
languageName: node
linkType: hard

"@algolia/autocomplete-core@npm:1.7.4":
version: 1.7.4
resolution: "@algolia/autocomplete-core@npm:1.7.4"
Expand Down Expand Up @@ -1623,7 +1616,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.3, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.18.6, @babel/runtime@npm:^7.18.9, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2":
"@babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.3, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.18.6, @babel/runtime@npm:^7.18.9, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4":
version: 7.21.0
resolution: "@babel/runtime@npm:7.21.0"
dependencies:
Expand Down Expand Up @@ -2646,7 +2639,6 @@ __metadata:
resolution: "@fast-check/examples@workspace:examples"
dependencies:
"@testing-library/dom": ^9.3.1
"@testing-library/jest-dom": ^5.17.0
"@testing-library/react": ^14.0.0
"@testing-library/user-event": ^14.4.3
"@types/express": ^4.17.17
Expand Down Expand Up @@ -3945,23 +3937,6 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/jest-dom@npm:^5.17.0":
version: 5.17.0
resolution: "@testing-library/jest-dom@npm:5.17.0"
dependencies:
"@adobe/css-tools": ^4.0.1
"@babel/runtime": ^7.9.2
"@types/testing-library__jest-dom": ^5.9.1
aria-query: ^5.0.0
chalk: ^3.0.0
css.escape: ^1.5.1
dom-accessibility-api: ^0.5.6
lodash: ^4.17.15
redent: ^3.0.0
checksum: 9f28dbca8b50d7c306aae40c3aa8e06f0e115f740360004bd87d57f95acf7ab4b4f4122a7399a76dbf2bdaaafb15c99cc137fdcb0ae457a92e2de0f3fbf9b03b
languageName: node
linkType: hard

"@testing-library/react@npm:^14.0.0":
version: 14.0.0
resolution: "@testing-library/react@npm:14.0.0"
Expand Down Expand Up @@ -4272,7 +4247,7 @@ __metadata:
languageName: node
linkType: hard

"@types/jest@npm:*, @types/jest@npm:^29.5.4":
"@types/jest@npm:^29.5.4":
version: 29.5.4
resolution: "@types/jest@npm:29.5.4"
dependencies:
Expand Down Expand Up @@ -4593,15 +4568,6 @@ __metadata:
languageName: node
linkType: hard

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

"@types/tough-cookie@npm:*":
version: 4.0.2
resolution: "@types/tough-cookie@npm:4.0.2"
Expand Down Expand Up @@ -5374,7 +5340,7 @@ __metadata:
languageName: node
linkType: hard

"aria-query@npm:5.1.3, aria-query@npm:^5.0.0":
"aria-query@npm:5.1.3":
version: 5.1.3
resolution: "aria-query@npm:5.1.3"
dependencies:
Expand Down Expand Up @@ -6163,16 +6129,6 @@ __metadata:
languageName: node
linkType: hard

"chalk@npm:^3.0.0":
version: 3.0.0
resolution: "chalk@npm:3.0.0"
dependencies:
ansi-styles: ^4.1.0
supports-color: ^7.1.0
checksum: 8e3ddf3981c4da405ddbd7d9c8d91944ddf6e33d6837756979f7840a29272a69a5189ecae0ff84006750d6d1e92368d413335eab4db5476db6e6703a1d1e0505
languageName: node
linkType: hard

"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.2":
version: 4.1.2
resolution: "chalk@npm:4.1.2"
Expand Down Expand Up @@ -7051,13 +7007,6 @@ __metadata:
languageName: node
linkType: hard

"css.escape@npm:^1.5.1":
version: 1.5.1
resolution: "css.escape@npm:1.5.1"
checksum: f6d38088d870a961794a2580b2b2af1027731bb43261cfdce14f19238a88664b351cc8978abc20f06cc6bbde725699dec8deb6fe9816b139fc3f2af28719e774
languageName: node
linkType: hard

"cssesc@npm:^3.0.0":
version: 3.0.0
resolution: "cssesc@npm:3.0.0"
Expand Down Expand Up @@ -7539,7 +7488,7 @@ __metadata:
languageName: node
linkType: hard

"dom-accessibility-api@npm:^0.5.6, dom-accessibility-api@npm:^0.5.9":
"dom-accessibility-api@npm:^0.5.9":
version: 0.5.14
resolution: "dom-accessibility-api@npm:0.5.14"
checksum: 782c813f75a09ba6735ef03b5e1624406a3829444ae49d5bdedd272a49d437ae3354f53e02ffc8c9fd9165880250f41546538f27461f839dd4ea1234e77e8d5e
Expand Down Expand Up @@ -11822,13 +11771,6 @@ __metadata:
languageName: node
linkType: hard

"min-indent@npm:^1.0.0":
version: 1.0.1
resolution: "min-indent@npm:1.0.1"
checksum: bfc6dd03c5eaf623a4963ebd94d087f6f4bbbfd8c41329a7f09706b0cb66969c4ddd336abeb587bc44bc6f08e13bf90f0b374f9d71f9f01e04adc2cd6f083ef1
languageName: node
linkType: hard

"mini-css-extract-plugin@npm:^2.6.1":
version: 2.7.5
resolution: "mini-css-extract-plugin@npm:2.7.5"
Expand Down Expand Up @@ -14307,16 +14249,6 @@ __metadata:
languageName: node
linkType: hard

"redent@npm:^3.0.0":
version: 3.0.0
resolution: "redent@npm:3.0.0"
dependencies:
indent-string: ^4.0.0
strip-indent: ^3.0.0
checksum: fa1ef20404a2d399235e83cc80bd55a956642e37dd197b4b612ba7327bf87fa32745aeb4a1634b2bab25467164ab4ed9c15be2c307923dd08b0fe7c52431ae6b
languageName: node
linkType: hard

"regenerate-unicode-properties@npm:^10.1.0":
version: 10.1.0
resolution: "regenerate-unicode-properties@npm:10.1.0"
Expand Down Expand Up @@ -15574,15 +15506,6 @@ __metadata:
languageName: node
linkType: hard

"strip-indent@npm:^3.0.0":
version: 3.0.0
resolution: "strip-indent@npm:3.0.0"
dependencies:
min-indent: ^1.0.0
checksum: 18f045d57d9d0d90cd16f72b2313d6364fd2cb4bf85b9f593523ad431c8720011a4d5f08b6591c9d580f446e78855c5334a30fb91aa1560f5d9f95ed1b4a0530
languageName: node
linkType: hard

"strip-json-comments@npm:^3.1.1, strip-json-comments@npm:~3.1.1":
version: 3.1.1
resolution: "strip-json-comments@npm:3.1.1"
Expand Down

0 comments on commit e0530e3

Please sign in to comment.