diff --git a/.pnp.cjs b/.pnp.cjs index 1d44a78ca..a13abd867 100644 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -38,7 +38,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@react-native-community/eslint-plugin", "npm:1.3.0"],\ ["@react-native/metro-config", "npm:0.72.7"],\ ["@sinonjs/fake-timers", "npm:11.1.0"],\ - ["@testing-library/react-native", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:8.0.0"],\ + ["@testing-library/react-native", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:12.3.0"],\ ["@turf/along", "npm:6.5.0"],\ ["@turf/distance", "npm:6.5.0"],\ ["@turf/helpers", "npm:6.5.0"],\ @@ -6179,7 +6179,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@react-native-community/eslint-plugin", "npm:1.3.0"],\ ["@react-native/metro-config", "npm:0.72.7"],\ ["@sinonjs/fake-timers", "npm:11.1.0"],\ - ["@testing-library/react-native", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:8.0.0"],\ + ["@testing-library/react-native", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:12.3.0"],\ ["@turf/along", "npm:6.5.0"],\ ["@turf/distance", "npm:6.5.0"],\ ["@turf/helpers", "npm:6.5.0"],\ @@ -6770,29 +6770,35 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@testing-library/react-native", [\ - ["npm:8.0.0", {\ - "packageLocation": "./.yarn/cache/@testing-library-react-native-npm-8.0.0-c53d89e22a-15cb8deea5.zip/node_modules/@testing-library/react-native/",\ + ["npm:12.3.0", {\ + "packageLocation": "./.yarn/cache/@testing-library-react-native-npm-12.3.0-798640199d-409b64207b.zip/node_modules/@testing-library/react-native/",\ "packageDependencies": [\ - ["@testing-library/react-native", "npm:8.0.0"]\ + ["@testing-library/react-native", "npm:12.3.0"]\ ],\ "linkType": "SOFT"\ }],\ - ["virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:8.0.0", {\ - "packageLocation": "./.yarn/__virtual__/@testing-library-react-native-virtual-56bdb7e590/0/cache/@testing-library-react-native-npm-8.0.0-c53d89e22a-15cb8deea5.zip/node_modules/@testing-library/react-native/",\ + ["virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:12.3.0", {\ + "packageLocation": "./.yarn/__virtual__/@testing-library-react-native-virtual-726bbccc36/0/cache/@testing-library-react-native-npm-12.3.0-798640199d-409b64207b.zip/node_modules/@testing-library/react-native/",\ "packageDependencies": [\ - ["@testing-library/react-native", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:8.0.0"],\ + ["@testing-library/react-native", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:12.3.0"],\ + ["@types/jest", "npm:27.5.2"],\ ["@types/react", "npm:18.2.15"],\ ["@types/react-native", "npm:0.67.8"],\ ["@types/react-test-renderer", null],\ - ["pretty-format", "npm:27.5.1"],\ + ["jest", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:29.6.0"],\ + ["jest-matcher-utils", "npm:29.7.0"],\ + ["pretty-format", "npm:29.7.0"],\ ["react", "npm:18.2.0"],\ ["react-native", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:0.72.1"],\ - ["react-test-renderer", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:18.2.0"]\ + ["react-test-renderer", "virtual:cce37341f1bd47a997e98e1a7d65a55e905402214e20352cf4048df3a7edd8e59456ea74ef47c4f395a6d5154d4005d441272de1beea6bfd91d8e1d39ae76247#npm:18.2.0"],\ + ["redent", "npm:3.0.0"]\ ],\ "packagePeers": [\ + "@types/jest",\ "@types/react-native",\ "@types/react-test-renderer",\ "@types/react",\ + "jest",\ "react-native",\ "react-test-renderer",\ "react"\ @@ -10200,6 +10206,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["diff-sequences", "npm:29.4.3"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:29.6.3", {\ + "packageLocation": "./.yarn/cache/diff-sequences-npm-29.6.3-18ab2c9949-f4914158e1.zip/node_modules/diff-sequences/",\ + "packageDependencies": [\ + ["diff-sequences", "npm:29.6.3"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["dir-glob", [\ @@ -14061,6 +14074,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["pretty-format", "npm:29.6.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:29.7.0", {\ + "packageLocation": "./.yarn/cache/jest-diff-npm-29.7.0-0149e01930-08e24a9dd4.zip/node_modules/jest-diff/",\ + "packageDependencies": [\ + ["jest-diff", "npm:29.7.0"],\ + ["chalk", "npm:4.1.2"],\ + ["diff-sequences", "npm:29.6.3"],\ + ["jest-get-type", "npm:29.6.3"],\ + ["pretty-format", "npm:29.7.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["jest-docblock", [\ @@ -14134,6 +14158,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["jest-get-type", "npm:29.4.3"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:29.6.3", {\ + "packageLocation": "./.yarn/cache/jest-get-type-npm-29.6.3-500477292e-88ac9102d4.zip/node_modules/jest-get-type/",\ + "packageDependencies": [\ + ["jest-get-type", "npm:29.6.3"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["jest-haste-map", [\ @@ -14230,6 +14261,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["pretty-format", "npm:29.6.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:29.7.0", {\ + "packageLocation": "./.yarn/cache/jest-matcher-utils-npm-29.7.0-dfc74b630e-d7259e5f99.zip/node_modules/jest-matcher-utils/",\ + "packageDependencies": [\ + ["jest-matcher-utils", "npm:29.7.0"],\ + ["chalk", "npm:4.1.2"],\ + ["jest-diff", "npm:29.7.0"],\ + ["jest-get-type", "npm:29.6.3"],\ + ["pretty-format", "npm:29.7.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["jest-message-util", [\ @@ -17579,6 +17621,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["react-is", "npm:18.2.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:29.7.0", {\ + "packageLocation": "./.yarn/cache/pretty-format-npm-29.7.0-7d330b2ea2-032c160238.zip/node_modules/pretty-format/",\ + "packageDependencies": [\ + ["pretty-format", "npm:29.7.0"],\ + ["@jest/schemas", "npm:29.6.3"],\ + ["ansi-styles", "npm:5.2.0"],\ + ["react-is", "npm:18.2.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["process-nextick-args", [\ @@ -18081,6 +18133,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["redent", [\ + ["npm:3.0.0", {\ + "packageLocation": "./.yarn/cache/redent-npm-3.0.0-31892f4906-fa1ef20404.zip/node_modules/redent/",\ + "packageDependencies": [\ + ["redent", "npm:3.0.0"],\ + ["indent-string", "npm:4.0.0"],\ + ["strip-indent", "npm:3.0.0"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["reflect.getprototypeof", [\ ["npm:1.0.4", {\ "packageLocation": "./.yarn/cache/reflect.getprototypeof-npm-1.0.4-fa901640c3-16e2361988.zip/node_modules/reflect.getprototypeof/",\ diff --git a/package.json b/package.json index 38213cdc3..277868003 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@react-native-community/eslint-plugin": "^1.3.0", "@react-native/metro-config": "^0.72.7", "@sinonjs/fake-timers": "^11.1.0", - "@testing-library/react-native": "^8.0.0", + "@testing-library/react-native": "^12.3.0", "@types/debounce": "^1.2.1", "@types/jest": "^27.4.1", "@types/mapbox__geo-viewport": "^0.4.1", diff --git a/yarn.lock b/yarn.lock index cf394b8b8..1384dcb19 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2734,7 +2734,7 @@ __metadata: "@react-native-community/eslint-plugin": ^1.3.0 "@react-native/metro-config": ^0.72.7 "@sinonjs/fake-timers": ^11.1.0 - "@testing-library/react-native": ^8.0.0 + "@testing-library/react-native": ^12.3.0 "@turf/along": 6.5.0 "@turf/distance": 6.5.0 "@turf/helpers": 6.5.0 @@ -3240,16 +3240,22 @@ __metadata: languageName: node linkType: hard -"@testing-library/react-native@npm:^8.0.0": - version: 8.0.0 - resolution: "@testing-library/react-native@npm:8.0.0" +"@testing-library/react-native@npm:^12.3.0": + version: 12.3.0 + resolution: "@testing-library/react-native@npm:12.3.0" dependencies: - pretty-format: ^27.0.0 + jest-matcher-utils: ^29.6.2 + pretty-format: ^29.6.2 + redent: ^3.0.0 peerDependencies: - react: ">=16.0.0" + jest: ">=28.0.0" + react: ">=16.8.0" react-native: ">=0.59" - react-test-renderer: ">=16.0.0" - checksum: 15cb8deea536bcd29d091a23c51dfa36e74a5cf4176fd897e33e318a46bed6306dd9334c90589943c41ae0fc39107d8c36d927f08400fb817303b585a81b2c09 + react-test-renderer: ">=16.8.0" + peerDependenciesMeta: + jest: + optional: true + checksum: 409b64207b4c7319926e5ce590adf84fe7ddb17ebdec4a92d4562c2ddcb3c23d7cf2ffd8f1810ab3241590817296b019869116f6d91f4125b452bb88c90e9031 languageName: node linkType: hard @@ -5748,6 +5754,13 @@ __metadata: languageName: node linkType: hard +"diff-sequences@npm:^29.6.3": + version: 29.6.3 + resolution: "diff-sequences@npm:29.6.3" + checksum: f4914158e1f2276343d98ff5b31fc004e7304f5470bf0f1adb2ac6955d85a531a6458d33e87667f98f6ae52ebd3891bb47d420bb48a5bd8b7a27ee25b20e33aa + languageName: node + linkType: hard + "diff@npm:^5.0.0, diff@npm:^5.1.0": version: 5.1.0 resolution: "diff@npm:5.1.0" @@ -8756,6 +8769,18 @@ __metadata: languageName: node linkType: hard +"jest-diff@npm:^29.7.0": + version: 29.7.0 + resolution: "jest-diff@npm:29.7.0" + dependencies: + chalk: ^4.0.0 + diff-sequences: ^29.6.3 + jest-get-type: ^29.6.3 + pretty-format: ^29.7.0 + checksum: 08e24a9dd43bfba1ef07a6374e5af138f53137b79ec3d5cc71a2303515335898888fa5409959172e1e05de966c9e714368d15e8994b0af7441f0721ee8e1bb77 + languageName: node + linkType: hard + "jest-docblock@npm:^29.4.3": version: 29.4.3 resolution: "jest-docblock@npm:29.4.3" @@ -8825,6 +8850,13 @@ __metadata: languageName: node linkType: hard +"jest-get-type@npm:^29.6.3": + version: 29.6.3 + resolution: "jest-get-type@npm:29.6.3" + checksum: 88ac9102d4679d768accae29f1e75f592b760b44277df288ad76ce5bf038c3f5ce3719dea8aa0f035dac30e9eb034b848ce716b9183ad7cc222d029f03e92205 + languageName: node + linkType: hard + "jest-haste-map@npm:^26.6.2": version: 26.6.2 resolution: "jest-haste-map@npm:26.6.2" @@ -8930,6 +8962,18 @@ __metadata: languageName: node linkType: hard +"jest-matcher-utils@npm:^29.6.2": + version: 29.7.0 + resolution: "jest-matcher-utils@npm:29.7.0" + dependencies: + chalk: ^4.0.0 + jest-diff: ^29.7.0 + jest-get-type: ^29.6.3 + pretty-format: ^29.7.0 + checksum: d7259e5f995d915e8a37a8fd494cb7d6af24cd2a287b200f831717ba0d015190375f9f5dc35393b8ba2aae9b2ebd60984635269c7f8cff7d85b077543b7744cd + languageName: node + linkType: hard + "jest-message-util@npm:^27.5.1": version: 27.5.1 resolution: "jest-message-util@npm:27.5.1" @@ -11985,6 +12029,17 @@ __metadata: languageName: node linkType: hard +"pretty-format@npm:^29.6.2, pretty-format@npm:^29.7.0": + version: 29.7.0 + resolution: "pretty-format@npm:29.7.0" + dependencies: + "@jest/schemas": ^29.6.3 + ansi-styles: ^5.0.0 + react-is: ^18.0.0 + checksum: 032c1602383e71e9c0c02a01bbd25d6759d60e9c7cf21937dde8357aa753da348fcec5def5d1002c9678a8524d5fe099ad98861286550ef44de8808cc61e43b6 + languageName: node + linkType: hard + "process-nextick-args@npm:~2.0.0": version: 2.0.1 resolution: "process-nextick-args@npm:2.0.1" @@ -12361,6 +12416,16 @@ __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 + "reflect.getprototypeof@npm:^1.0.4": version: 1.0.4 resolution: "reflect.getprototypeof@npm:1.0.4"