diff --git a/apps/ledger-live-desktop/package.json b/apps/ledger-live-desktop/package.json index 48c20c846170..fe9e4bec6cb7 100644 --- a/apps/ledger-live-desktop/package.json +++ b/apps/ledger-live-desktop/package.json @@ -148,7 +148,7 @@ "@testing-library/dom": "^9.3.1", "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "12", - "@testing-library/react-hooks": "^4.0.1", + "@testing-library/react-hooks": "^8.0.0", "@testing-library/user-event": "^14.4.3", "@types/chart.js": "2.9.37", "@types/color": "^3.0.3", diff --git a/libs/domain-service/package.json b/libs/domain-service/package.json index 68f07c1e63a1..78abdca6eec2 100644 --- a/libs/domain-service/package.json +++ b/libs/domain-service/package.json @@ -76,7 +76,7 @@ "@ledgerhq/types-cryptoassets": "workspace:^", "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "12", - "@testing-library/react-hooks": "^4.0.1", + "@testing-library/react-hooks": "^8.0.0", "@types/jest": "^28.1.3", "@types/node": "^18.15.7", "@types/testing-library__jest-dom": "^5.14.5", diff --git a/libs/ledger-live-common/package.json b/libs/ledger-live-common/package.json index 8c732d7e1297..7abadb2e5dd7 100644 --- a/libs/ledger-live-common/package.json +++ b/libs/ledger-live-common/package.json @@ -273,7 +273,7 @@ "@ledgerhq/types-live": "workspace:^", "@svgr/core": "^5.5.0", "@testing-library/react": "12", - "@testing-library/react-hooks": "^4.0.1", + "@testing-library/react-hooks": "^8.0.0", "@types/bn.js": "^5.1.1", "@types/bs58": "^4.0.1", "@types/cbor": "^6.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1376f01326d0..589baf916b85 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -534,8 +534,8 @@ importers: specifier: '12' version: 12.1.5(@types/react@17.0.53)(react-dom@17.0.2)(react@17.0.2) '@testing-library/react-hooks': - specifier: ^4.0.1 - version: 4.0.1(@types/react@17.0.53)(react-test-renderer@17.0.2)(react@17.0.2) + specifier: ^8.0.0 + version: 8.0.1(@types/react@17.0.53)(react-dom@17.0.2)(react-test-renderer@17.0.2)(react@17.0.2) '@testing-library/user-event': specifier: ^14.4.3 version: 14.4.3(@testing-library/dom@9.3.1) @@ -1711,8 +1711,8 @@ importers: specifier: '12' version: 12.1.5(react-dom@17.0.2)(react@17.0.2) '@testing-library/react-hooks': - specifier: ^4.0.1 - version: 4.0.1(react-test-renderer@17.0.2)(react@17.0.2) + specifier: ^8.0.0 + version: 8.0.1(react-dom@17.0.2)(react-test-renderer@17.0.2)(react@17.0.2) '@types/jest': specifier: ^28.1.3 version: 28.1.8 @@ -2272,8 +2272,8 @@ importers: specifier: '12' version: 12.1.5(@types/react@17.0.53)(react-dom@17.0.2)(react@17.0.2) '@testing-library/react-hooks': - specifier: ^4.0.1 - version: 4.0.1(@types/react@17.0.53)(react-test-renderer@17.0.2)(react@17.0.2) + specifier: ^8.0.0 + version: 8.0.1(@types/react@17.0.53)(react-dom@17.0.2)(react-test-renderer@17.0.2)(react@17.0.2) '@types/bn.js': specifier: ^5.1.1 version: 5.1.1 @@ -23991,36 +23991,50 @@ packages: redent: 3.0.0 dev: true - /@testing-library/react-hooks@4.0.1(@types/react@17.0.53)(react-test-renderer@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-DufI8Q2GOM7W2yFEEfz85VNVNaHZL0tPZyBT6ytV7HK+1A4frL1ty+W5NBE0u0K3EFV/Pg5O28HGNEtp9D5EyA==} + /@testing-library/react-hooks@8.0.1(@types/react@17.0.53)(react-dom@17.0.2)(react-test-renderer@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-Aqhl2IVmLt8IovEVarNDFuJDVWVvhnr9/GCU6UUnrYXwgDFF9h2L2o2P9KBni1AST5sT6riAyoukFLyjQUgD/g==} + engines: {node: '>=12'} peerDependencies: - '@types/react': '*' - react: '>=16.9.0' - react-test-renderer: '>=16.9.0' + '@types/react': ^16.9.0 || ^17.0.0 + react: ^16.9.0 || ^17.0.0 + react-dom: ^16.9.0 || ^17.0.0 + react-test-renderer: ^16.9.0 || ^17.0.0 peerDependenciesMeta: '@types/react': optional: true + react-dom: + optional: true + react-test-renderer: + optional: true dependencies: - '@babel/runtime': 7.20.13 + '@babel/runtime': 7.22.10 '@types/react': 17.0.53 - '@types/react-test-renderer': 17.0.2(@types/react@17.0.53) react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-error-boundary: 3.1.4(react@17.0.2) react-test-renderer: 17.0.2(react@17.0.2) dev: true - /@testing-library/react-hooks@4.0.1(react-test-renderer@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-DufI8Q2GOM7W2yFEEfz85VNVNaHZL0tPZyBT6ytV7HK+1A4frL1ty+W5NBE0u0K3EFV/Pg5O28HGNEtp9D5EyA==} + /@testing-library/react-hooks@8.0.1(react-dom@17.0.2)(react-test-renderer@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-Aqhl2IVmLt8IovEVarNDFuJDVWVvhnr9/GCU6UUnrYXwgDFF9h2L2o2P9KBni1AST5sT6riAyoukFLyjQUgD/g==} + engines: {node: '>=12'} peerDependencies: - '@types/react': '*' - react: '>=16.9.0' - react-test-renderer: '>=16.9.0' + '@types/react': ^16.9.0 || ^17.0.0 + react: ^16.9.0 || ^17.0.0 + react-dom: ^16.9.0 || ^17.0.0 + react-test-renderer: ^16.9.0 || ^17.0.0 peerDependenciesMeta: '@types/react': optional: true + react-dom: + optional: true + react-test-renderer: + optional: true dependencies: - '@babel/runtime': 7.20.13 - '@types/react-test-renderer': 17.0.2 + '@babel/runtime': 7.22.10 react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-error-boundary: 3.1.4(react@17.0.2) react-test-renderer: 17.0.2(react@17.0.2) dev: true @@ -25039,26 +25053,6 @@ packages: optional: true dev: false - /@types/react-test-renderer@17.0.2: - resolution: {integrity: sha512-+F1KONQTBHDBBhbHuT2GNydeMpPuviduXIVJRB7Y4nma4NR5DrTJfMMZ+jbhEHbpwL+Uqhs1WXh4KHiyrtYTPg==} - peerDependencies: - '@types/react': '*' - peerDependenciesMeta: - '@types/react': - optional: true - dev: true - - /@types/react-test-renderer@17.0.2(@types/react@17.0.53): - resolution: {integrity: sha512-+F1KONQTBHDBBhbHuT2GNydeMpPuviduXIVJRB7Y4nma4NR5DrTJfMMZ+jbhEHbpwL+Uqhs1WXh4KHiyrtYTPg==} - peerDependencies: - '@types/react': '*' - peerDependenciesMeta: - '@types/react': - optional: true - dependencies: - '@types/react': 17.0.53 - dev: true - /@types/react-test-renderer@18.0.0(@types/react@17.0.53): resolution: {integrity: sha512-C7/5FBJ3g3sqUahguGi03O79b8afNeSD6T8/GU50oQrJCU0bVCCGQHaGKUbg2Ce8VQEEqTw8/HiS6lXHHdgkdQ==} peerDependencies: @@ -52490,6 +52484,16 @@ packages: react-is: 17.0.2 dev: true + /react-error-boundary@3.1.4(react@17.0.2): + resolution: {integrity: sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==} + engines: {node: '>=10', npm: '>=6'} + peerDependencies: + react: '>=16.13.1' + dependencies: + '@babel/runtime': 7.22.10 + react: 17.0.2 + dev: true + /react-error-overlay@6.0.11: resolution: {integrity: sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==}