2018-11-28 18:02:20 +00:00
|
|
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
|
|
# yarn lockfile v1
|
|
|
|
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@ampproject/remapping@^2.1.0", "@ampproject/remapping@^2.2.0":
|
|
|
|
version "2.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630"
|
|
|
|
integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jridgewell/gen-mapping" "^0.3.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
"@jridgewell/trace-mapping" "^0.3.9"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e"
|
|
|
|
integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/highlight" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a"
|
|
|
|
integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/highlight" "^7.18.6"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/code-frame@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789"
|
|
|
|
integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/highlight" "^7.16.7"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/code-frame@^7.22.13":
|
|
|
|
version "7.22.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e"
|
|
|
|
integrity sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==
|
|
|
|
dependencies:
|
|
|
|
"@babel/highlight" "^7.22.13"
|
|
|
|
chalk "^2.4.2"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.20.5":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.0.tgz#c241dc454e5b5917e40d37e525e2f4530c399298"
|
|
|
|
integrity sha512-gMuZsmsgxk/ENC3O/fRw5QY8A9/uxQbbCEypnLIiYYc/qVJtEV7ouxC3EllIIwNzMqAQee5tanFabWsUOutS7g==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.22.9":
|
|
|
|
version "7.22.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730"
|
|
|
|
integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.13.16":
|
2023-12-11 15:52:23 +00:00
|
|
|
version "7.17.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.12.tgz#b4eb2d7ebc3449b062381644c93050db545b70ee"
|
|
|
|
integrity sha512-44ODe6O1IVz9s2oJE3rZ4trNNKTX9O7KpQpfAP4t8QII/zwrVRHL7i2pxhqtcY7tqMLrrKfMlBKnm1QlrRFs5w==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@ampproject/remapping" "^2.1.0"
|
|
|
|
"@babel/code-frame" "^7.16.7"
|
|
|
|
"@babel/generator" "^7.17.12"
|
|
|
|
"@babel/helper-compilation-targets" "^7.17.10"
|
|
|
|
"@babel/helper-module-transforms" "^7.17.12"
|
|
|
|
"@babel/helpers" "^7.17.9"
|
|
|
|
"@babel/parser" "^7.17.12"
|
|
|
|
"@babel/template" "^7.16.7"
|
|
|
|
"@babel/traverse" "^7.17.12"
|
|
|
|
"@babel/types" "^7.17.12"
|
2023-06-14 01:47:41 +00:00
|
|
|
convert-source-map "^1.7.0"
|
|
|
|
debug "^4.1.0"
|
|
|
|
gensync "^1.0.0-beta.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
json5 "^2.2.1"
|
2023-06-14 01:47:41 +00:00
|
|
|
semver "^6.3.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/core@^7.20.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.0.tgz#f8259ae0e52a123eb40f552551e647b506a94d83"
|
|
|
|
integrity sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
|
|
|
"@ampproject/remapping" "^2.2.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/code-frame" "^7.22.13"
|
|
|
|
"@babel/generator" "^7.23.0"
|
|
|
|
"@babel/helper-compilation-targets" "^7.22.15"
|
|
|
|
"@babel/helper-module-transforms" "^7.23.0"
|
|
|
|
"@babel/helpers" "^7.23.0"
|
|
|
|
"@babel/parser" "^7.23.0"
|
|
|
|
"@babel/template" "^7.22.15"
|
|
|
|
"@babel/traverse" "^7.23.0"
|
|
|
|
"@babel/types" "^7.23.0"
|
|
|
|
convert-source-map "^2.0.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
debug "^4.1.0"
|
|
|
|
gensync "^1.0.0-beta.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
json5 "^2.2.3"
|
|
|
|
semver "^6.3.1"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/generator@^7.17.12", "@babel/generator@^7.23.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.0.tgz#df5c386e2218be505b34837acbcb874d7a983420"
|
|
|
|
integrity sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types" "^7.23.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
"@jridgewell/gen-mapping" "^0.3.2"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.17"
|
|
|
|
jsesc "^2.5.1"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/generator@^7.18.2":
|
|
|
|
version "7.18.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.2.tgz#33873d6f89b21efe2da63fe554460f3df1c5880d"
|
|
|
|
integrity sha512-W1lG5vUwFvfMd8HVXqdfbuG7RuaSrTCCD8cl8fP8wOivdbtbIg2Db3IWUcgvfxKbbn6ZBGYRW/Zk1MIwK49mgw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.18.2"
|
|
|
|
"@jridgewell/gen-mapping" "^0.3.0"
|
|
|
|
jsesc "^2.5.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/generator@^7.20.0", "@babel/generator@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.15.tgz#1564189c7ec94cb8f77b5e8a90c4d200d21b2339"
|
|
|
|
integrity sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types" "^7.22.15"
|
|
|
|
"@jridgewell/gen-mapping" "^0.3.2"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.17"
|
|
|
|
jsesc "^2.5.1"
|
|
|
|
|
|
|
|
"@babel/generator@^7.21.3":
|
|
|
|
version "7.21.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.3.tgz#232359d0874b392df04045d72ce2fd9bb5045fce"
|
|
|
|
integrity sha512-QS3iR1GYC/YGUnW7IdggFeN5c1poPUurnGttOV/bZgPGV+izC/D8HnD6DLwod0fsatNyVn1G3EVWMYIF0nHbeA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.21.3"
|
2023-06-14 01:47:41 +00:00
|
|
|
"@jridgewell/gen-mapping" "^0.3.2"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.17"
|
|
|
|
jsesc "^2.5.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/generator@^7.4.0", "@babel/generator@^7.9.5":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.9.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.9.5.tgz#27f0917741acc41e6eaaced6d68f96c3fa9afaf9"
|
|
|
|
integrity sha512-GbNIxVB3ZJe3tLeDm1HSn2AhuD/mVcyLDpgtLXa5tplmWrJdF/elxB56XNqCuD6szyNkDi6wuoKXln3QeBmCHQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/types" "^7.9.5"
|
|
|
|
jsesc "^2.5.1"
|
|
|
|
lodash "^4.17.13"
|
|
|
|
source-map "^0.5.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/generator@^7.7.2":
|
|
|
|
version "7.23.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.6.tgz#9e1fca4811c77a10580d17d26b57b036133f3c2e"
|
|
|
|
integrity sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.23.6"
|
|
|
|
"@jridgewell/gen-mapping" "^0.3.2"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.17"
|
|
|
|
jsesc "^2.5.1"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-annotate-as-pure@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz#bb2339a7534a9c128e3102024c60760a3a7f3862"
|
|
|
|
integrity sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.16.7"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@babel/helper-annotate-as-pure@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb"
|
|
|
|
integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.18.6"
|
|
|
|
|
2023-09-04 09:41:26 +00:00
|
|
|
"@babel/helper-annotate-as-pure@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882"
|
|
|
|
integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.22.5"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/helper-annotate-as-pure@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz#60bc0bc657f63a0924ff9a4b4a0b24a13cf4deee"
|
|
|
|
integrity sha512-6o+mJrZBxOoEX77Ezv9zwW7WV8DdluouRKNY/IR5u/YTMuKHgugHOzYWlYvYLpLA9nPsQCAAASpCIbjI9Mv+Uw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/types" "^7.8.3"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-builder-binary-assignment-operator-visitor@^7.22.5":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz#5426b109cf3ad47b91120f8328d8ab1be8b0b956"
|
|
|
|
integrity sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types" "^7.22.15"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-builder-react-jsx@^7.20.0":
|
|
|
|
version "7.22.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.22.10.tgz#591b1b44a80eb16123b46ad55e9ba42335d6f103"
|
|
|
|
integrity sha512-cZr0nzCwrMp7Z8owt+YN8OncOqhG1eZLp/aRT5ftBnkLJTCB3Dnq/t52vSfWc6sGRWdDeawbksuh3pYQGCzVwA==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
"@babel/types" "^7.22.10"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-compilation-targets@^7.17.10", "@babel/helper-compilation-targets@^7.22.15", "@babel/helper-compilation-targets@^7.22.5", "@babel/helper-compilation-targets@^7.22.6":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz#0698fc44551a26cf29f18d4662d5bf545a6cfc52"
|
|
|
|
integrity sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/compat-data" "^7.22.9"
|
|
|
|
"@babel/helper-validator-option" "^7.22.15"
|
|
|
|
browserslist "^4.21.9"
|
|
|
|
lru-cache "^5.1.1"
|
|
|
|
semver "^6.3.1"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.7":
|
|
|
|
version "7.20.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz#a6cd33e93629f5eb473b021aac05df62c4cd09bb"
|
|
|
|
integrity sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/compat-data" "^7.20.5"
|
|
|
|
"@babel/helper-validator-option" "^7.18.6"
|
|
|
|
browserslist "^4.21.3"
|
|
|
|
lru-cache "^5.1.1"
|
|
|
|
semver "^6.3.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-create-class-features-plugin@^7.18.0":
|
|
|
|
version "7.18.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.18.0.tgz#fac430912606331cb075ea8d82f9a4c145a4da19"
|
|
|
|
integrity sha512-Kh8zTGR9de3J63e5nS0rQUdRs/kbtwoeQQ0sriS0lItjC96u8XXZN6lKpuyWd2coKSU13py/y+LTmThLuVX0Pg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.16.7"
|
|
|
|
"@babel/helper-environment-visitor" "^7.16.7"
|
|
|
|
"@babel/helper-function-name" "^7.17.9"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.17.7"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.16.7"
|
|
|
|
"@babel/helper-replace-supers" "^7.16.7"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.16.7"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.21.0":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.0.tgz#64f49ecb0020532f19b1d014b03bccaa1ab85fb9"
|
|
|
|
integrity sha512-Q8wNiMIdwsv5la5SPxNYzzkPnjgC0Sy0i7jLkVOCdllu/xcVNkr3TeZzbHBJrj+XXRqzX5uCyCoV9eu6xUG7KQ==
|
2020-05-01 07:20:06 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.9"
|
|
|
|
"@babel/helper-function-name" "^7.21.0"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.21.0"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.18.6"
|
|
|
|
"@babel/helper-replace-supers" "^7.20.7"
|
|
|
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.20.0"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.18.6"
|
2020-05-01 07:20:06 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-create-class-features-plugin@^7.22.11", "@babel/helper-create-class-features-plugin@^7.22.5":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz#97a61b385e57fe458496fad19f8e63b63c867de4"
|
|
|
|
integrity sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-function-name" "^7.22.5"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.22.15"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.22.5"
|
|
|
|
"@babel/helper-replace-supers" "^7.22.9"
|
|
|
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
|
|
|
semver "^6.3.1"
|
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/helper-create-class-features-plugin@^7.23.6":
|
|
|
|
version "7.23.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.6.tgz#b04d915ce92ce363666f816a884cdcfc9be04953"
|
|
|
|
integrity sha512-cBXU1vZni/CpGF29iTu4YRbOZt3Wat6zCoMDxRF1MayiEc4URxOj31tT65HUM0CRpMowA3HCJaAOVOUnMf96cw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.20"
|
|
|
|
"@babel/helper-function-name" "^7.23.0"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.23.0"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.22.5"
|
|
|
|
"@babel/helper-replace-supers" "^7.22.20"
|
|
|
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
|
|
|
semver "^6.3.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-create-regexp-features-plugin@^7.18.6":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz#5ee90093914ea09639b01c711db0d6775e558be1"
|
|
|
|
integrity sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
regexpu-core "^5.3.1"
|
|
|
|
semver "^6.3.1"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/helper-create-regexp-features-plugin@^7.20.5":
|
|
|
|
version "7.21.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.21.4.tgz#40411a8ab134258ad2cf3a3d987ec6aa0723cee5"
|
|
|
|
integrity sha512-M00OuhU+0GyZ5iBBN9czjugzWrEq2vDpf/zCYHxxf93ul/Q5rv+a5h+/+0WnI1AebHNVtl5bFV0qsJoH23DbfA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
regexpu-core "^5.3.1"
|
|
|
|
|
2023-09-04 09:41:26 +00:00
|
|
|
"@babel/helper-create-regexp-features-plugin@^7.22.5":
|
|
|
|
version "7.22.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.9.tgz#9d8e61a8d9366fe66198f57c40565663de0825f6"
|
|
|
|
integrity sha512-+svjVa/tFwsNSG4NEy1h85+HQ5imbT92Q5/bgtS7P0GTQlP8WuFdqsiABmQouhiFGyV66oGxZFpeYHza1rNsKw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
regexpu-core "^5.3.1"
|
|
|
|
semver "^6.3.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-create-regexp-features-plugin@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz#5d84180b588f560b7864efaeea89243e58312087"
|
|
|
|
integrity sha512-LYVPdwkrQEiX9+1R29Ld/wTrmQu1SSKYnuOk3g0CkcZMA1p0gsNxJFj/3gBdaJ7Cg0Fnek5z0DsMULePP7Lrqg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-annotate-as-pure" "^7.8.3"
|
|
|
|
"@babel/helper-regex" "^7.8.3"
|
|
|
|
regexpu-core "^4.7.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-define-polyfill-provider@^0.3.3":
|
|
|
|
version "0.3.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz#8612e55be5d51f0cd1f36b4a5a83924e89884b7a"
|
|
|
|
integrity sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-compilation-targets" "^7.17.7"
|
|
|
|
"@babel/helper-plugin-utils" "^7.16.7"
|
|
|
|
debug "^4.1.1"
|
|
|
|
lodash.debounce "^4.0.8"
|
|
|
|
resolve "^1.14.2"
|
|
|
|
semver "^6.1.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-define-polyfill-provider@^0.4.2":
|
|
|
|
version "0.4.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.2.tgz#82c825cadeeeee7aad237618ebbe8fa1710015d7"
|
|
|
|
integrity sha512-k0qnnOqHn5dK9pZpfD5XXZ9SojAITdCKRn2Lp6rnDGzIbaP0rHyMPk/4wsSxVBVz4RfN0q6VpXWP2pDGIoQ7hw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-compilation-targets" "^7.22.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
debug "^4.1.1"
|
|
|
|
lodash.debounce "^4.0.8"
|
|
|
|
resolve "^1.14.2"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-environment-visitor@^7.16.7", "@babel/helper-environment-visitor@^7.18.2":
|
|
|
|
version "7.18.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.2.tgz#8a6d2dedb53f6bf248e31b4baf38739ee4a637bd"
|
|
|
|
integrity sha512-14GQKWkX9oJzPiQQ7/J36FTXcD4kSp8egKjO9nINlSKiHITRA9q/R74qu8S9xlc/b/yjsJItQUeeh3xnGN0voQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-environment-visitor@^7.18.9":
|
|
|
|
version "7.18.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be"
|
|
|
|
integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-environment-visitor@^7.22.20":
|
|
|
|
version "7.22.20"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167"
|
|
|
|
integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-environment-visitor@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz#f06dd41b7c1f44e1f8da6c4055b41ab3a09a7e98"
|
|
|
|
integrity sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-function-name@^7.17.9":
|
|
|
|
version "7.17.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz#136fcd54bc1da82fcb47565cf16fd8e444b1ff12"
|
|
|
|
integrity sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/template" "^7.16.7"
|
|
|
|
"@babel/types" "^7.17.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0", "@babel/helper-function-name@^7.21.0":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz#d552829b10ea9f120969304023cd0645fa00b1b4"
|
|
|
|
integrity sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/template" "^7.20.7"
|
|
|
|
"@babel/types" "^7.21.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-function-name@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz#ede300828905bb15e582c037162f99d5183af1be"
|
|
|
|
integrity sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/template" "^7.22.5"
|
|
|
|
"@babel/types" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/helper-function-name@^7.23.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759"
|
|
|
|
integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/template" "^7.22.15"
|
|
|
|
"@babel/types" "^7.23.0"
|
|
|
|
|
|
|
|
"@babel/helper-function-name@^7.9.5":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.9.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz#2b53820d35275120e1874a82e5aabe1376920a5c"
|
|
|
|
integrity sha512-JVcQZeXM59Cd1qanDUxv9fgJpt3NeKUaqBqUEvfmQ+BCOKq2xUgaWZW2hr0dkbyJgezYuplEoh5knmrnS68efw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-get-function-arity" "^7.8.3"
|
|
|
|
"@babel/template" "^7.8.3"
|
|
|
|
"@babel/types" "^7.9.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/helper-get-function-arity@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz#b894b947bd004381ce63ea1db9f08547e920abd5"
|
|
|
|
integrity sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/types" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-hoist-variables@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz#86bcb19a77a509c7b77d0e22323ef588fa58c246"
|
|
|
|
integrity sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.16.7"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-hoist-variables@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678"
|
|
|
|
integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.18.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-hoist-variables@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb"
|
|
|
|
integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-member-expression-to-functions@^7.17.7":
|
|
|
|
version "7.17.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.17.7.tgz#a34013b57d8542a8c4ff8ba3f747c02452a4d8c4"
|
|
|
|
integrity sha512-thxXgnQ8qQ11W2wVUObIqDL4p148VMxkt5T/qpN5k2fboRyzFGFmKsTGViquyM5QHKUy48OZoca8kw4ajaDPyw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.17.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-member-expression-to-functions@^7.20.7", "@babel/helper-member-expression-to-functions@^7.21.0":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.21.0.tgz#319c6a940431a133897148515877d2f3269c3ba5"
|
|
|
|
integrity sha512-Muu8cdZwNN6mRRNG6lAYErJ5X3bRevgYR2O8wN0yn7jJSnGDu6eG59RfT29JHxGUovyfrh6Pj0XzmR7drNVL3Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.21.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-member-expression-to-functions@^7.22.15", "@babel/helper-member-expression-to-functions@^7.22.5":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.15.tgz#b95a144896f6d491ca7863576f820f3628818621"
|
|
|
|
integrity sha512-qLNsZbgrNh0fDQBCPocSL8guki1hcPvltGDv/NxvUoABwFq7GkKSu1nRXeJkVZc+wJvne2E0RKQz+2SQrz6eAA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types" "^7.22.15"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/helper-member-expression-to-functions@^7.23.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366"
|
|
|
|
integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.23.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/helper-module-imports@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e"
|
|
|
|
integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.18.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-module-imports@^7.22.15", "@babel/helper-module-imports@^7.22.5":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz#16146307acdc40cc00c3b2c647713076464bdbf0"
|
|
|
|
integrity sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.22.15"
|
|
|
|
|
|
|
|
"@babel/helper-module-transforms@^7.17.12", "@babel/helper-module-transforms@^7.23.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz#3ec246457f6c842c0aee62a01f60739906f7047e"
|
|
|
|
integrity sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.20"
|
|
|
|
"@babel/helper-module-imports" "^7.22.15"
|
|
|
|
"@babel/helper-simple-access" "^7.22.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
|
|
|
"@babel/helper-validator-identifier" "^7.22.20"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-module-transforms@^7.21.2":
|
|
|
|
version "7.21.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz#160caafa4978ac8c00ac66636cb0fa37b024e2d2"
|
|
|
|
integrity sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.9"
|
|
|
|
"@babel/helper-module-imports" "^7.18.6"
|
|
|
|
"@babel/helper-simple-access" "^7.20.2"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.18.6"
|
|
|
|
"@babel/helper-validator-identifier" "^7.19.1"
|
|
|
|
"@babel/template" "^7.20.7"
|
|
|
|
"@babel/traverse" "^7.21.2"
|
|
|
|
"@babel/types" "^7.21.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-module-transforms@^7.22.15", "@babel/helper-module-transforms@^7.22.5", "@babel/helper-module-transforms@^7.22.9":
|
|
|
|
version "7.22.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.22.17.tgz#7edf129097a51ccc12443adbc6320e90eab76693"
|
|
|
|
integrity sha512-XouDDhQESrLHTpnBtCKExJdyY4gJCdrvH2Pyv8r8kovX2U8G0dRUOT45T9XlbLtuu9CLXP15eusnkprhoPV5iQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-environment-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-module-imports" "^7.22.15"
|
|
|
|
"@babel/helper-simple-access" "^7.22.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
|
|
|
"@babel/helper-validator-identifier" "^7.22.15"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/helper-module-transforms@^7.23.3":
|
|
|
|
version "7.23.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz#d7d12c3c5d30af5b3c0fcab2a6d5217773e2d0f1"
|
|
|
|
integrity sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.20"
|
|
|
|
"@babel/helper-module-imports" "^7.22.15"
|
|
|
|
"@babel/helper-simple-access" "^7.22.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
|
|
|
"@babel/helper-validator-identifier" "^7.22.20"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-optimise-call-expression@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz#a34e3560605abbd31a18546bd2aad3e6d9a174f2"
|
|
|
|
integrity sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.16.7"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-optimise-call-expression@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe"
|
|
|
|
integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.18.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-optimise-call-expression@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e"
|
|
|
|
integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
|
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670"
|
|
|
|
integrity sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2021-01-07 12:59:57 +00:00
|
|
|
"@babel/helper-plugin-utils@^7.10.4":
|
|
|
|
version "7.10.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz#2f75a831269d4f677de49986dff59927533cf375"
|
|
|
|
integrity sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==
|
|
|
|
|
2021-05-24 14:25:05 +00:00
|
|
|
"@babel/helper-plugin-utils@^7.12.13":
|
|
|
|
version "7.13.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz#806526ce125aed03373bc416a828321e3a6a33af"
|
|
|
|
integrity sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.20.2":
|
2022-11-23 13:59:18 +00:00
|
|
|
version "7.20.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz#d1b9000752b18d0877cff85a5c376ce5c3121629"
|
|
|
|
integrity sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==
|
2022-11-20 23:46:04 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-plugin-utils@^7.17.12":
|
|
|
|
version "7.17.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.17.12.tgz#86c2347da5acbf5583ba0a10aed4c9bf9da9cf96"
|
|
|
|
integrity sha512-JDkf04mqtN3y4iAbO1hv9U2ARpPyPL1zqyWs/2WG1pgSq9llHFjStX5jdxb84himgJm+8Ng+x0oiWF/nw/XQKA==
|
|
|
|
|
2023-09-04 09:41:26 +00:00
|
|
|
"@babel/helper-plugin-utils@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295"
|
|
|
|
integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==
|
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-regex@^7.8.3":
|
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.8.3.tgz#139772607d51b93f23effe72105b319d2a4c6965"
|
|
|
|
integrity sha512-BWt0QtYv/cg/NecOAZMdcn/waj/5P26DR4mVLXfFtDokSR6fyuG0Pj+e2FqtSME+MqED1khnSMulkmGl8qWiUQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
lodash "^4.17.13"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-remap-async-to-generator@^7.18.9":
|
|
|
|
version "7.18.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519"
|
|
|
|
integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.9"
|
|
|
|
"@babel/helper-wrap-function" "^7.18.9"
|
|
|
|
"@babel/types" "^7.18.9"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-remap-async-to-generator@^7.22.5", "@babel/helper-remap-async-to-generator@^7.22.9":
|
|
|
|
version "7.22.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.17.tgz#dabaa50622b3b4670bd6546fc8db23eb12d89da0"
|
|
|
|
integrity sha512-bxH77R5gjH3Nkde6/LuncQoLaP16THYPscurp1S8z7S9ZgezCyV3G8Hc+TZiCmY8pz4fp8CvKSgtJMW0FkLAxA==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-wrap-function" "^7.22.17"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-replace-supers@^7.16.7":
|
|
|
|
version "7.18.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.18.2.tgz#41fdfcc9abaf900e18ba6e5931816d9062a7b2e0"
|
|
|
|
integrity sha512-XzAIyxx+vFnrOxiQrToSUOzUOn0e1J2Li40ntddek1Y69AXUTXoDJ40/D5RdjFu7s7qHiaeoTiempZcbuVXh2Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.2"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.17.7"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.16.7"
|
|
|
|
"@babel/traverse" "^7.18.2"
|
|
|
|
"@babel/types" "^7.18.2"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/helper-replace-supers@^7.20.7":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.20.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.20.7.tgz#243ecd2724d2071532b2c8ad2f0f9f083bcae331"
|
|
|
|
integrity sha512-vujDMtB6LVfNW13jhlCrp48QNslK6JXi7lQG736HVbHz/mbf4Dc7tIRh1Xf5C0rF7BP8iiSxGMCmY6Ci1ven3A==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.9"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.20.7"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.18.6"
|
|
|
|
"@babel/template" "^7.20.7"
|
|
|
|
"@babel/traverse" "^7.20.7"
|
|
|
|
"@babel/types" "^7.20.7"
|
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/helper-replace-supers@^7.22.20":
|
|
|
|
version "7.22.20"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz#e37d367123ca98fe455a9887734ed2e16eb7a793"
|
|
|
|
integrity sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.20"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.22.15"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.22.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-replace-supers@^7.22.5", "@babel/helper-replace-supers@^7.22.9":
|
|
|
|
version "7.22.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.9.tgz#cbdc27d6d8d18cd22c81ae4293765a5d9afd0779"
|
|
|
|
integrity sha512-LJIKvvpgPOPUThdYqcX6IXRuIcTkcAub0IaDRGCZH0p5GPUp7PhRU9QVgFcDDd51BaPkk77ZjqFwh6DZTAEmGg==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-environment-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-member-expression-to-functions" "^7.22.5"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.22.5"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-simple-access@^7.20.2":
|
|
|
|
version "7.20.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9"
|
|
|
|
integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==
|
2020-05-01 07:20:06 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/types" "^7.20.2"
|
2020-05-01 07:20:06 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-simple-access@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz#4938357dc7d782b80ed6dbb03a0fba3d22b1d5de"
|
|
|
|
integrity sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types" "^7.22.5"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-skip-transparent-expression-wrappers@^7.20.0":
|
|
|
|
version "7.20.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz#fbe4c52f60518cab8140d77101f0e63a8a230684"
|
|
|
|
integrity sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.20.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-skip-transparent-expression-wrappers@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847"
|
|
|
|
integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.22.5"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-split-export-declaration@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz#0b648c0c42da9d3920d85ad585f2778620b8726b"
|
|
|
|
integrity sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.16.7"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-split-export-declaration@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075"
|
|
|
|
integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.18.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-split-export-declaration@^7.22.6":
|
|
|
|
version "7.22.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c"
|
|
|
|
integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.22.5"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/helper-split-export-declaration@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz#31a9f30070f91368a7182cf05f831781065fc7a9"
|
|
|
|
integrity sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.8.3"
|
|
|
|
|
2023-09-04 09:41:26 +00:00
|
|
|
"@babel/helper-string-parser@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f"
|
|
|
|
integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/helper-string-parser@^7.23.4":
|
|
|
|
version "7.23.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83"
|
|
|
|
integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-validator-identifier@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad"
|
|
|
|
integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1":
|
|
|
|
version "7.19.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2"
|
|
|
|
integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-validator-identifier@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz#601fa28e4cc06786c18912dca138cec73b882044"
|
|
|
|
integrity sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==
|
|
|
|
|
|
|
|
"@babel/helper-validator-identifier@^7.22.20":
|
|
|
|
version "7.22.20"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0"
|
|
|
|
integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==
|
|
|
|
|
2023-09-04 09:41:26 +00:00
|
|
|
"@babel/helper-validator-identifier@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz#9544ef6a33999343c8740fa51350f30eeaaaf193"
|
|
|
|
integrity sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-validator-identifier@^7.9.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.9.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz#90977a8e6fbf6b431a7dc31752eee233bf052d80"
|
|
|
|
integrity sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/helper-validator-option@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23"
|
|
|
|
integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/helper-validator-option@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8"
|
|
|
|
integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-validator-option@^7.21.0":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz#8224c7e13ace4bafdc4004da2cf064ef42673180"
|
|
|
|
integrity sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-validator-option@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz#694c30dfa1d09a6534cdfcafbe56789d36aba040"
|
|
|
|
integrity sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-wrap-function@^7.18.9":
|
|
|
|
version "7.20.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz#75e2d84d499a0ab3b31c33bcfe59d6b8a45f62e3"
|
|
|
|
integrity sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-function-name" "^7.19.0"
|
|
|
|
"@babel/template" "^7.18.10"
|
|
|
|
"@babel/traverse" "^7.20.5"
|
|
|
|
"@babel/types" "^7.20.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-wrap-function@^7.22.17":
|
|
|
|
version "7.22.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.22.17.tgz#222ac3ff9cc8f9b617cc1e5db75c0b538e722801"
|
|
|
|
integrity sha512-nAhoheCMlrqU41tAojw9GpVEKDlTS8r3lzFmF0lP52LwblCPbuFSO7nGIZoIcoU5NIm1ABrna0cJExE4Ay6l2Q==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-function-name" "^7.22.5"
|
|
|
|
"@babel/template" "^7.22.15"
|
|
|
|
"@babel/types" "^7.22.17"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helpers@^7.17.9", "@babel/helpers@^7.23.0":
|
|
|
|
version "7.23.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.23.1.tgz#44e981e8ce2b9e99f8f0b703f3326a4636c16d15"
|
|
|
|
integrity sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/template" "^7.22.15"
|
|
|
|
"@babel/traverse" "^7.23.0"
|
|
|
|
"@babel/types" "^7.23.0"
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/highlight@^7.16.7":
|
|
|
|
version "7.17.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.17.12.tgz#257de56ee5afbd20451ac0a75686b6b404257351"
|
|
|
|
integrity sha512-7yykMVF3hfZY2jsHZEEgLc+3x4o1O+fYyULu11GynEUQNwB6lua+IIQn1FiJxNucd5UlyJryrwsOh8PL9Sn8Qg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-validator-identifier" "^7.16.7"
|
|
|
|
chalk "^2.0.0"
|
|
|
|
js-tokens "^4.0.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/highlight@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf"
|
|
|
|
integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-validator-identifier" "^7.18.6"
|
|
|
|
chalk "^2.0.0"
|
|
|
|
js-tokens "^4.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/highlight@^7.22.13":
|
|
|
|
version "7.22.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.13.tgz#9cda839e5d3be9ca9e8c26b6dd69e7548f0cbf16"
|
|
|
|
integrity sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-validator-identifier" "^7.22.5"
|
|
|
|
chalk "^2.4.2"
|
|
|
|
js-tokens "^4.0.0"
|
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/highlight@^7.8.3":
|
|
|
|
version "7.9.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.9.0.tgz#4e9b45ccb82b79607271b2979ad82c7b68163079"
|
|
|
|
integrity sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-validator-identifier" "^7.9.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
chalk "^2.0.0"
|
|
|
|
js-tokens "^4.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.8.6", "@babel/parser@^7.9.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.9.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.9.4.tgz#68a35e6b0319bbc014465be43828300113f2f2e8"
|
|
|
|
integrity sha512-bC49otXX6N0/VYhgOMh4gnP26E9xnDZK3TmbNpxYzzz9BQLBosQwfyOe9/cXUU3txYhTzLCbcqd5c8y/OmCjHA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/parser@^7.13.16":
|
2023-06-14 01:47:41 +00:00
|
|
|
version "7.21.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.4.tgz#94003fdfc520bbe2875d4ae557b43ddb6d880f17"
|
|
|
|
integrity sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/parser@^7.14.7", "@babel/parser@^7.20.0", "@babel/parser@^7.22.15", "@babel/parser@^7.22.16":
|
|
|
|
version "7.22.16"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.16.tgz#180aead7f247305cce6551bea2720934e2fa2c95"
|
|
|
|
integrity sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/parser@^7.16.7", "@babel/parser@^7.18.0":
|
|
|
|
version "7.18.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.4.tgz#6774231779dd700e0af29f6ad8d479582d7ce5ef"
|
|
|
|
integrity sha512-FDge0dFazETFcxGw/EXzOkN8uJp0PC7Qbm+Pe9T+av2zlBpOgunFHkQPPn+eRuClU73JF+98D531UgayY89tow==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/parser@^7.17.12", "@babel/parser@^7.23.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.0.tgz#da950e622420bf96ca0d0f2909cdddac3acd8719"
|
|
|
|
integrity sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@babel/parser@^7.18.10":
|
|
|
|
version "7.20.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.3.tgz#5358cf62e380cf69efcb87a7bb922ff88bfac6e2"
|
|
|
|
integrity sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/parser@^7.20.7", "@babel/parser@^7.21.3":
|
|
|
|
version "7.21.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.3.tgz#1d285d67a19162ff9daa358d4cb41d50c06220b3"
|
|
|
|
integrity sha512-lobG0d7aOfQRXh8AyklEAgZGvA4FShxo6xQbUrrT/cNBPUdIDojlokwJsQyCC/eKia7ifqM0yP+2DRZ4WKw2RQ==
|
|
|
|
|
|
|
|
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz#02dc8a03f613ed5fdc29fb2f728397c78146c962"
|
|
|
|
integrity sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz#2aeb91d337d4e1a1e7ce85b76a37f5301781200f"
|
|
|
|
integrity sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-optional-chaining" "^7.22.15"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-proposal-async-generator-functions@^7.0.0":
|
|
|
|
version "7.20.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz#bfb7276d2d573cb67ba379984a2334e262ba5326"
|
|
|
|
integrity sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.9"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/helper-remap-async-to-generator" "^7.18.9"
|
|
|
|
"@babel/plugin-syntax-async-generators" "^7.8.4"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.18.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3"
|
|
|
|
integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-create-class-features-plugin" "^7.18.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
2019-03-04 12:38:41 +00:00
|
|
|
|
|
|
|
"@babel/plugin-proposal-export-default-from@^7.0.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.18.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz#091f4794dbce4027c03cf4ebc64d3fb96b75c206"
|
|
|
|
integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.18.9"
|
|
|
|
"@babel/plugin-syntax-export-default-from" "^7.18.6"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8", "@babel/plugin-proposal-nullish-coalescing-operator@^7.18.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1"
|
|
|
|
integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-proposal-numeric-separator@^7.0.0":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz#899b14fbafe87f053d2c5ff05b36029c62e13c75"
|
|
|
|
integrity sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
|
|
|
|
|
|
|
|
"@babel/plugin-proposal-object-rest-spread@^7.20.0":
|
|
|
|
version "7.20.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz#aa662940ef425779c75534a5c41e9d936edc390a"
|
|
|
|
integrity sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/compat-data" "^7.20.5"
|
|
|
|
"@babel/helper-compilation-targets" "^7.20.7"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
|
|
|
|
"@babel/plugin-transform-parameters" "^7.20.7"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"@babel/plugin-proposal-optional-catch-binding@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz#9dee96ab1650eed88646ae9734ca167ac4a9c5c9"
|
|
|
|
integrity sha512-0gkX7J7E+AtAw9fcwlVQj8peP61qhdg/89D5swOkjYbkboA2CVckn3kiyum1DE0wskGb7KJJxBdyEBApDLLVdw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-proposal-optional-chaining@^7.13.12", "@babel/plugin-proposal-optional-chaining@^7.20.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz#886f5c8978deb7d30f678b2e24346b287234d3ea"
|
|
|
|
integrity sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.20.0"
|
|
|
|
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2":
|
|
|
|
version "7.21.0-placeholder-for-preset-env.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703"
|
|
|
|
integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-async-generators@^7.8.4":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d"
|
|
|
|
integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/plugin-syntax-bigint@^7.8.3":
|
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea"
|
|
|
|
integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/plugin-syntax-class-properties@^7.12.13":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.12.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10"
|
|
|
|
integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.12.13"
|
|
|
|
|
|
|
|
"@babel/plugin-syntax-class-properties@^7.8.3":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.8.3.tgz#6cb933a8872c8d359bfde69bbeaae5162fd1e8f7"
|
|
|
|
integrity sha512-UcAyQWg2bAN647Q+O811tG9MrJ38Z10jjhQdKNAL8fsyPzE3cCN/uT+f55cFVY4aGO4jqJAvmqsuY3GQDwAoXg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-class-static-block@^7.14.5":
|
|
|
|
version "7.14.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406"
|
|
|
|
integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.14.5"
|
|
|
|
|
|
|
|
"@babel/plugin-syntax-dynamic-import@^7.8.0", "@babel/plugin-syntax-dynamic-import@^7.8.3":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3"
|
|
|
|
integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-syntax-export-default-from@^7.0.0", "@babel/plugin-syntax-export-default-from@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz#8df076711a4818c4ce4f23e61d622b0ba2ff84bc"
|
|
|
|
integrity sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
2019-03-04 12:38:41 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-export-namespace-from@^7.8.3":
|
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a"
|
|
|
|
integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
|
|
|
|
|
|
|
"@babel/plugin-syntax-flow@^7.12.1", "@babel/plugin-syntax-flow@^7.18.0", "@babel/plugin-syntax-flow@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.22.5.tgz#163b820b9e7696ce134df3ee716d9c0c98035859"
|
|
|
|
integrity sha512-9RdCl0i+q0QExayk2nOS7853w08yLucnnPML6EN9S8fgMPVtdLDCdx/cOQ/i44Lb9UeQX9A35yaqBBOMMZxPxQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/plugin-syntax-flow@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1"
|
|
|
|
integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-import-assertions@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz#07d252e2aa0bc6125567f742cd58619cb14dce98"
|
|
|
|
integrity sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-syntax-import-attributes@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz#ab840248d834410b829f569f5262b9e517555ecb"
|
|
|
|
integrity sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-syntax-import-meta@^7.10.4", "@babel/plugin-syntax-import-meta@^7.8.3":
|
2022-11-20 23:46:04 +00:00
|
|
|
version "7.10.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51"
|
|
|
|
integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.10.4"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-json-strings@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a"
|
|
|
|
integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/plugin-syntax-jsx@^7.18.6":
|
2022-11-23 13:59:18 +00:00
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0"
|
|
|
|
integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-syntax-jsx@^7.21.4":
|
|
|
|
version "7.21.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz#f264ed7bf40ffc9ec239edabc17a50c4f5b6fea2"
|
|
|
|
integrity sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/plugin-syntax-jsx@^7.23.3", "@babel/plugin-syntax-jsx@^7.7.2":
|
2023-12-18 04:14:53 +00:00
|
|
|
version "7.23.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz#8f2e4f8a9b5f9aa16067e142c1ac9cd9f810f473"
|
|
|
|
integrity sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-logical-assignment-operators@^7.10.4":
|
|
|
|
version "7.10.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699"
|
|
|
|
integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.10.4"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/plugin-syntax-logical-assignment-operators@^7.8.3":
|
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.8.3.tgz#3995d7d7ffff432f6ddc742b47e730c054599897"
|
|
|
|
integrity sha512-Zpg2Sgc++37kuFl6ppq2Q7Awc6E6AIW671x5PY8E/f7MCIyPPGK/EoeZXvvY3P42exZ3Q4/t3YOzP/HiN79jDg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-syntax-nullish-coalescing-operator@^7.0.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9"
|
|
|
|
integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-numeric-separator@^7.10.4":
|
|
|
|
version "7.10.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97"
|
|
|
|
integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.10.4"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/plugin-syntax-numeric-separator@^7.8.3":
|
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.8.3.tgz#0e3fb63e09bea1b11e96467271c8308007e7c41f"
|
|
|
|
integrity sha512-H7dCMAdN83PcCmqmkHB5dtp+Xa9a6LKSvA2hiFBC/5alSHxM5VgWZXFqDi0YFe8XNGT6iCa+z4V4zSt/PdZ7Dw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/plugin-syntax-object-rest-spread@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871"
|
|
|
|
integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-optional-catch-binding@^7.8.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.3":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1"
|
|
|
|
integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-syntax-optional-chaining@^7.0.0", "@babel/plugin-syntax-optional-chaining@^7.8.3":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a"
|
|
|
|
integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-private-property-in-object@^7.14.5":
|
|
|
|
version "7.14.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad"
|
|
|
|
integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.14.5"
|
|
|
|
|
|
|
|
"@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3":
|
2022-11-20 23:46:04 +00:00
|
|
|
version "7.14.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c"
|
|
|
|
integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.14.5"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/plugin-syntax-typescript@^7.17.12":
|
|
|
|
version "7.17.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.17.12.tgz#b54fc3be6de734a56b87508f99d6428b5b605a7b"
|
|
|
|
integrity sha512-TYY0SXFiO31YXtNg3HtFwNJHjLsAyIIhAhNWkQ5whPPS7HWUFlg9z0Ta4qAQNjQbP1wsSt/oKkmZ/4/WWdMUpw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.17.12"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-syntax-typescript@^7.20.0":
|
|
|
|
version "7.20.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7"
|
|
|
|
integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.19.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/plugin-syntax-typescript@^7.23.3", "@babel/plugin-syntax-typescript@^7.7.2":
|
2023-12-18 04:14:53 +00:00
|
|
|
version "7.23.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz#24f460c85dbbc983cd2b9c4994178bcc01df958f"
|
|
|
|
integrity sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-syntax-unicode-sets-regex@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357"
|
|
|
|
integrity sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.18.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"@babel/plugin-transform-arrow-functions@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz#82776c2ed0cd9e1a49956daeb896024c9473b8b6"
|
|
|
|
integrity sha512-0MRF+KC8EqH4dbuITCWwPSzsyO3HIWWlm30v8BbbpOrS1B++isGxPnnuq/IZvOX5J2D/p7DQalQm+/2PnlKGxg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-arrow-functions@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz#e5ba566d0c58a5b2ba2a8b795450641950b71958"
|
|
|
|
integrity sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-async-generator-functions@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.15.tgz#3b153af4a6b779f340d5b80d3f634f55820aefa3"
|
|
|
|
integrity sha512-jBm1Es25Y+tVoTi5rfd5t1KLmL8ogLKpXszboWOTTtGFGz2RKnQe2yn7HbZ+kb/B8N0FVSGQo874NSlOU1T4+w==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-environment-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-remap-async-to-generator" "^7.22.9"
|
|
|
|
"@babel/plugin-syntax-async-generators" "^7.8.4"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-async-to-generator@^7.20.0", "@babel/plugin-transform-async-to-generator@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz#c7a85f44e46f8952f6d27fe57c2ed3cc084c3775"
|
|
|
|
integrity sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-module-imports" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-remap-async-to-generator" "^7.22.5"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-block-scoped-functions@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz#27978075bfaeb9fa586d3cb63a3d30c1de580024"
|
|
|
|
integrity sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
"@babel/plugin-transform-block-scoping@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz#97d35dab66857a437c166358b91d09050c868f3a"
|
|
|
|
integrity sha512-pGnYfm7RNRgYRi7bids5bHluENHqJhrV4bCZRwc5GamaWIIs07N4rZECcmJL6ZClwjDz1GbdMZFtPs27hTB06w==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2019-09-05 18:21:37 +00:00
|
|
|
lodash "^4.17.13"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-block-scoping@^7.20.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.0.tgz#8744d02c6c264d82e1a4bc5d2d501fd8aff6f022"
|
|
|
|
integrity sha512-cOsrbmIOXmf+5YbL99/S49Y3j46k/T16b9ml8bm9lP6N9US5iQ2yBK7gpui1pg0V/WMcXdkfKbTb7HXq9u+v4g==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-block-scoping@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.22.15.tgz#494eb82b87b5f8b1d8f6f28ea74078ec0a10a841"
|
|
|
|
integrity sha512-G1czpdJBZCtngoK1sJgloLiOHUnkb/bLZwqVZD8kXmq0ZnVfTTWUcs9OWtp0mBtYJ+4LQY1fllqBkOIPhXmFmw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-class-properties@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz#97a56e31ad8c9dc06a0b3710ce7803d5a48cca77"
|
|
|
|
integrity sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-class-features-plugin" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-class-static-block@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.11.tgz#dc8cc6e498f55692ac6b4b89e56d87cec766c974"
|
|
|
|
integrity sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-class-features-plugin" "^7.22.11"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-class-static-block" "^7.14.5"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-transform-classes@^7.0.0":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz#f469d0b07a4c5a7dbb21afad9e27e57b47031665"
|
|
|
|
integrity sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
"@babel/helper-compilation-targets" "^7.20.7"
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.9"
|
|
|
|
"@babel/helper-function-name" "^7.21.0"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.18.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/helper-replace-supers" "^7.20.7"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.18.6"
|
|
|
|
globals "^11.1.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-classes@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz#aaf4753aee262a232bbc95451b4bdf9599c65a0b"
|
|
|
|
integrity sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
"@babel/helper-compilation-targets" "^7.22.15"
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-function-name" "^7.22.5"
|
|
|
|
"@babel/helper-optimise-call-expression" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-replace-supers" "^7.22.9"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
2020-04-28 08:57:17 +00:00
|
|
|
globals "^11.1.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"@babel/plugin-transform-computed-properties@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz#96d0d28b7f7ce4eb5b120bb2e0e943343c86f81b"
|
|
|
|
integrity sha512-O5hiIpSyOGdrQZRQ2ccwtTVkgUDBBiCuK//4RJ6UfePllUTCENOzKxfh6ulckXKc0DixTFLCfb2HVkNA7aDpzA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-computed-properties@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz#cd1e994bf9f316bd1c2dafcd02063ec261bb3869"
|
|
|
|
integrity sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/template" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-destructuring@^7.20.0", "@babel/plugin-transform-destructuring@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.22.15.tgz#e7404ea5bb3387073b9754be654eecb578324694"
|
|
|
|
integrity sha512-HzG8sFl1ZVGTme74Nw+X01XsUTqERVQ6/RLHo3XjGRzm7XD6QTtfS3NJotVgCGy8BzkDqRjRBD8dAyJn5TuvSQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-dotall-regex@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz#dbb4f0e45766eb544e193fb00e65a1dd3b2a4165"
|
|
|
|
integrity sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-duplicate-keys@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz#b6e6428d9416f5f0bba19c70d1e6e7e0b88ab285"
|
|
|
|
integrity sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-dynamic-import@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.11.tgz#2c7722d2a5c01839eaf31518c6ff96d408e447aa"
|
|
|
|
integrity sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-dynamic-import" "^7.8.3"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-exponentiation-operator@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz#402432ad544a1f9a480da865fda26be653e48f6a"
|
|
|
|
integrity sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-export-namespace-from@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.11.tgz#b3c84c8f19880b6c7440108f8929caf6056db26c"
|
|
|
|
integrity sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-flow-strip-types@^7.20.0":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.22.5.tgz#0bb17110c7bf5b35a60754b2f00c58302381dee2"
|
|
|
|
integrity sha512-tujNbZdxdG0/54g/oua8ISToaXTFBf8EnSb5PgQSciIXWOWKX3S4+JR7ZE9ol8FZwf9kxitzkGQ+QWeov/mCiA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-flow" "^7.22.5"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/plugin-transform-flow-strip-types@^7.21.0":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz#6aeca0adcb81dc627c8986e770bfaa4d9812aff5"
|
|
|
|
integrity sha512-FlFA2Mj87a6sDkW4gfGrQQqwY/dLlBAyJa2dJEZ+FHXUVHBflO2wyKvg+OOEzXfrKYIa4HWl0mgmbCzt0cMb7w==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/plugin-syntax-flow" "^7.18.6"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-for-of@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz#f64b4ccc3a4f131a996388fae7680b472b306b29"
|
|
|
|
integrity sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-transform-function-name@^7.0.0":
|
|
|
|
version "7.18.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0"
|
|
|
|
integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-compilation-targets" "^7.18.9"
|
|
|
|
"@babel/helper-function-name" "^7.18.9"
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.9"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-function-name@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz#935189af68b01898e0d6d99658db6b164205c143"
|
|
|
|
integrity sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-compilation-targets" "^7.22.5"
|
|
|
|
"@babel/helper-function-name" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-json-strings@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.11.tgz#689a34e1eed1928a40954e37f74509f48af67835"
|
|
|
|
integrity sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-json-strings" "^7.8.3"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"@babel/plugin-transform-literals@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz#aef239823d91994ec7b68e55193525d76dbd5dc1"
|
|
|
|
integrity sha512-3Tqf8JJ/qB7TeldGl+TT55+uQei9JfYaregDcEAyBZ7akutriFrt6C/wLYIer6OYhleVQvH/ntEhjE/xMmy10A==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-literals@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz#e9341f4b5a167952576e23db8d435849b1dd7920"
|
|
|
|
integrity sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-logical-assignment-operators@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.11.tgz#24c522a61688bde045b7d9bc3c2597a4d948fc9c"
|
|
|
|
integrity sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-member-expression-literals@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz#4fcc9050eded981a468347dd374539ed3e058def"
|
|
|
|
integrity sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-modules-amd@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.22.5.tgz#4e045f55dcf98afd00f85691a68fc0780704f526"
|
|
|
|
integrity sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-module-transforms" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.21.2":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.21.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.2.tgz#6ff5070e71e3192ef2b7e39820a06fb78e3058e7"
|
|
|
|
integrity sha512-Cln+Yy04Gxua7iPdj6nOV96smLGjpElir5YwzF0LBPKoPlLDNJePNlrGGaybAJkd0zKRnOVXOgizSqPYMNYkzA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-module-transforms" "^7.21.2"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/helper-simple-access" "^7.20.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-modules-commonjs@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.22.15.tgz#b11810117ed4ee7691b29bd29fd9f3f98276034f"
|
|
|
|
integrity sha512-jWL4eh90w0HQOTKP2MoXXUpVxilxsB2Vl4ji69rSjS3EcZ/v4sBmn+A3NpepuJzBhOaEBbR7udonlHHn5DWidg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-module-transforms" "^7.22.15"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-simple-access" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/plugin-transform-modules-commonjs@^7.23.3":
|
|
|
|
version "7.23.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz#661ae831b9577e52be57dd8356b734f9700b53b4"
|
|
|
|
integrity sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-module-transforms" "^7.23.3"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-simple-access" "^7.22.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-modules-systemjs@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.11.tgz#3386be5875d316493b517207e8f1931d93154bb1"
|
|
|
|
integrity sha512-rIqHmHoMEOhI3VkVf5jQ15l539KrwhzqcBO6wdCNWPWc/JWt9ILNYNUssbRpeq0qWns8svuw8LnMNCvWBIJ8wA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-hoist-variables" "^7.22.5"
|
|
|
|
"@babel/helper-module-transforms" "^7.22.9"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-validator-identifier" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-modules-umd@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz#4694ae40a87b1745e3775b6a7fe96400315d4f98"
|
|
|
|
integrity sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-module-transforms" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-transform-named-capturing-groups-regex@^7.0.0":
|
|
|
|
version "7.20.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.20.5.tgz#626298dd62ea51d452c3be58b285d23195ba69a8"
|
|
|
|
integrity sha512-mOW4tTzi5iTLnw+78iEq3gr8Aoq4WNRGpmSlrogqaiCBoR1HFhpU4JkpQFOHfeYx3ReVIFWOQJS4aZBRvuZ6mA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.20.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
|
2023-09-04 09:41:26 +00:00
|
|
|
"@babel/plugin-transform-named-capturing-groups-regex@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz#67fe18ee8ce02d57c855185e27e3dc959b2e991f"
|
|
|
|
integrity sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-new-target@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz#1b248acea54ce44ea06dfd37247ba089fcf9758d"
|
|
|
|
integrity sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-nullish-coalescing-operator@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.11.tgz#debef6c8ba795f5ac67cd861a81b744c5d38d9fc"
|
|
|
|
integrity sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-numeric-separator@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.11.tgz#498d77dc45a6c6db74bb829c02a01c1d719cbfbd"
|
|
|
|
integrity sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-transform-object-assign@^7.16.7":
|
2023-12-18 04:14:53 +00:00
|
|
|
version "7.23.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.23.3.tgz#64177e8cf943460c7f0e1c410277546804f59625"
|
|
|
|
integrity sha512-TPJ6O7gVC2rlQH2hvQGRH273G1xdoloCj9Pc07Q7JbIZYDi+Sv5gaE2fu+r5E7qK4zyt6vj0FbZaZTRU5C3OMA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-object-rest-spread@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz#21a95db166be59b91cde48775310c0df6e1da56f"
|
|
|
|
integrity sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/compat-data" "^7.22.9"
|
|
|
|
"@babel/helper-compilation-targets" "^7.22.15"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
|
|
|
|
"@babel/plugin-transform-parameters" "^7.22.15"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-object-super@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz#794a8d2fcb5d0835af722173c1a9d704f44e218c"
|
|
|
|
integrity sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-replace-supers" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-optional-catch-binding@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.11.tgz#461cc4f578a127bb055527b3e77404cad38c08e0"
|
|
|
|
integrity sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-optional-chaining@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.15.tgz#d7a5996c2f7ca4ad2ad16dbb74444e5c4385b1ba"
|
|
|
|
integrity sha512-ngQ2tBhq5vvSJw2Q2Z9i7ealNkpDMU0rGWnHPKqRZO0tzZ5tlaoz4hDvhXioOoaE0X2vfNss1djwg0DXlfu30A==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-transform-parameters@^7.0.0":
|
|
|
|
version "7.21.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.21.3.tgz#18fc4e797cf6d6d972cb8c411dbe8a809fa157db"
|
|
|
|
integrity sha512-Wxc+TvppQG9xWFYatvCGPvZ6+SIUxQ2ZdiBP+PHYMIjnPXD+uThCshaz4NZOnODAtBjjcVQQ/3OKs9LW28purQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-parameters@^7.20.7", "@babel/plugin-transform-parameters@^7.22.15":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz#719ca82a01d177af358df64a514d64c2e3edb114"
|
|
|
|
integrity sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-private-methods@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz#21c8af791f76674420a147ae62e9935d790f8722"
|
|
|
|
integrity sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-class-features-plugin" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-private-property-in-object@^7.22.11":
|
|
|
|
version "7.22.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.11.tgz#ad45c4fc440e9cb84c718ed0906d96cf40f9a4e1"
|
|
|
|
integrity sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
"@babel/helper-create-class-features-plugin" "^7.22.11"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-property-literals@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz#b5ddabd73a4f7f26cd0e20f5db48290b88732766"
|
|
|
|
integrity sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/plugin-transform-react-display-name@^7.0.0", "@babel/plugin-transform-react-display-name@^7.18.6":
|
2022-11-23 13:59:18 +00:00
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415"
|
|
|
|
integrity sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-react-jsx-development@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz#dbe5c972811e49c7405b630e4d0d2e1380c0ddc5"
|
|
|
|
integrity sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/plugin-transform-react-jsx" "^7.18.6"
|
|
|
|
|
2021-01-07 12:59:57 +00:00
|
|
|
"@babel/plugin-transform-react-jsx-self@^7.0.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.21.0.tgz#ec98d4a9baafc5a1eb398da4cf94afbb40254a54"
|
|
|
|
integrity sha512-f/Eq+79JEu+KUANFks9UZCcvydOOGMgF7jBrcwjHa5jTZD8JivnhCJYvmlhR/WTXBWonDExPoW0eO/CR4QJirA==
|
2021-01-07 12:59:57 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
"@babel/plugin-transform-react-jsx-source@^7.0.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.19.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.19.6.tgz#88578ae8331e5887e8ce28e4c9dc83fb29da0b86"
|
|
|
|
integrity sha512-RpAi004QyMNisst/pvSanoRdJ4q+jMCWyk9zdw/CyLB9j8RXEahodR6l2GyttDRyEVWZtbN+TpLiHJ3t34LbsQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.19.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
"@babel/plugin-transform-react-jsx@^7.0.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.21.0.tgz#656b42c2fdea0a6d8762075d58ef9d4e3c4ab8a2"
|
|
|
|
integrity sha512-6OAWljMvQrZjR2DaNhVfRz6dkCAVV+ymcLUmaf8bccGOHn2v5rHJK3tTpij0BuhdYWP4LLaqj5lwcdlpAAPuvg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
"@babel/helper-module-imports" "^7.18.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/plugin-syntax-jsx" "^7.18.6"
|
|
|
|
"@babel/types" "^7.21.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@babel/plugin-transform-react-jsx@^7.18.6":
|
|
|
|
version "7.19.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.19.0.tgz#b3cbb7c3a00b92ec8ae1027910e331ba5c500eb9"
|
|
|
|
integrity sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
"@babel/helper-module-imports" "^7.18.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.19.0"
|
|
|
|
"@babel/plugin-syntax-jsx" "^7.18.6"
|
|
|
|
"@babel/types" "^7.19.0"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-react-pure-annotations@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz#561af267f19f3e5d59291f9950fd7b9663d0d844"
|
|
|
|
integrity sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-regenerator@^7.22.10":
|
|
|
|
version "7.22.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.10.tgz#8ceef3bd7375c4db7652878b0241b2be5d0c3cca"
|
|
|
|
integrity sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
regenerator-transform "^0.15.2"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-reserved-words@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz#832cd35b81c287c4bcd09ce03e22199641f964fb"
|
|
|
|
integrity sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
"@babel/plugin-transform-runtime@^7.0.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.21.0.tgz#2a884f29556d0a68cd3d152dcc9e6c71dfb6eee8"
|
|
|
|
integrity sha512-ReY6pxwSzEU0b3r2/T/VhqMKg/AkceBT19X0UptA3/tYi5Pe2eXgEUH+NNMC5nok6c6XQz5tyVTUpuezRfSMSg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-module-imports" "^7.18.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
babel-plugin-polyfill-corejs2 "^0.3.3"
|
|
|
|
babel-plugin-polyfill-corejs3 "^0.6.0"
|
|
|
|
babel-plugin-polyfill-regenerator "^0.4.1"
|
|
|
|
semver "^6.3.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
"@babel/plugin-transform-shorthand-properties@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz#28545216e023a832d4d3a1185ed492bcfeac08c8"
|
|
|
|
integrity sha512-I9DI6Odg0JJwxCHzbzW08ggMdCezoWcuQRz3ptdudgwaHxTjxw5HgdFJmZIkIMlRymL6YiZcped4TTCB0JcC8w==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-shorthand-properties@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz#6e277654be82b5559fc4b9f58088507c24f0c624"
|
|
|
|
integrity sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"@babel/plugin-transform-spread@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz#9c8ffe8170fdfb88b114ecb920b82fb6e95fe5e8"
|
|
|
|
integrity sha512-CkuTU9mbmAoFOI1tklFWYYbzX5qCIZVXPVy0jpXgGwkplCndQAa58s2jr66fTeQnA64bDox0HL4U56CFYoyC7g==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-spread@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz#6487fd29f229c95e284ba6c98d65eafb893fea6b"
|
|
|
|
integrity sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-skip-transparent-expression-wrappers" "^7.22.5"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"@babel/plugin-transform-sticky-regex@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz#be7a1290f81dae767475452199e1f76d6175b100"
|
|
|
|
integrity sha512-9Spq0vGCD5Bb4Z/ZXXSK5wbbLFMG085qd2vhL1JYu1WcQ5bXqZBAYRzU1d+p79GcHs2szYv5pVQCX13QgldaWw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
|
|
|
"@babel/helper-regex" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-sticky-regex@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz#295aba1595bfc8197abd02eae5fc288c0deb26aa"
|
|
|
|
integrity sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-template-literals@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz#8f38cf291e5f7a8e60e9f733193f0bcc10909bff"
|
|
|
|
integrity sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-typeof-symbol@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz#5e2ba478da4b603af8673ff7c54f75a97b716b34"
|
|
|
|
integrity sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/plugin-transform-typescript@^7.17.12":
|
|
|
|
version "7.18.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.18.4.tgz#587eaf6a39edb8c06215e550dc939faeadd750bf"
|
|
|
|
integrity sha512-l4vHuSLUajptpHNEOUDEGsnpl9pfRLsN1XUoDQDD/YBuXTM+v37SHGS+c6n4jdcZy96QtuUuSvZYMLSSsjH8Mw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-class-features-plugin" "^7.18.0"
|
|
|
|
"@babel/helper-plugin-utils" "^7.17.12"
|
|
|
|
"@babel/plugin-syntax-typescript" "^7.17.12"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-transform-typescript@^7.21.3", "@babel/plugin-transform-typescript@^7.5.0":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.21.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.21.3.tgz#316c5be579856ea890a57ebc5116c5d064658f2b"
|
|
|
|
integrity sha512-RQxPz6Iqt8T0uw/WsJNReuBpWpBqs/n7mNo18sKLoTbMp+UrEekhH+pKSVC7gWz+DNjo9gryfV8YzCiT45RgMw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-annotate-as-pure" "^7.18.6"
|
|
|
|
"@babel/helper-create-class-features-plugin" "^7.21.0"
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/plugin-syntax-typescript" "^7.20.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/plugin-transform-typescript@^7.23.3":
|
|
|
|
version "7.23.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.6.tgz#aa36a94e5da8d94339ae3a4e22d40ed287feb34c"
|
|
|
|
integrity sha512-6cBG5mBvUu4VUD04OHKnYzbuHNP8huDsD3EDqqpIpsswTDoqHCjLoHb6+QgsV1WsT2nipRqCPgxD3LXnEO7XfA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-annotate-as-pure" "^7.22.5"
|
|
|
|
"@babel/helper-create-class-features-plugin" "^7.23.6"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-typescript" "^7.23.3"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-unicode-escapes@^7.22.10":
|
|
|
|
version "7.22.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.10.tgz#c723f380f40a2b2f57a62df24c9005834c8616d9"
|
|
|
|
integrity sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-unicode-property-regex@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz#098898f74d5c1e86660dc112057b2d11227f1c81"
|
|
|
|
integrity sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"@babel/plugin-transform-unicode-regex@^7.0.0":
|
2020-04-28 08:57:17 +00:00
|
|
|
version "7.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz#0cef36e3ba73e5c57273effb182f46b91a1ecaad"
|
|
|
|
integrity sha512-+ufgJjYdmWfSQ+6NS9VGUR2ns8cjJjYbrbi11mZBTaWm+Fui/ncTLFF28Ei1okavY+xkojGr1eJxNsWYeA5aZw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.8.3"
|
|
|
|
"@babel/helper-plugin-utils" "^7.8.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/plugin-transform-unicode-regex@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz#ce7e7bb3ef208c4ff67e02a22816656256d7a183"
|
|
|
|
integrity sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/plugin-transform-unicode-sets-regex@^7.22.5":
|
|
|
|
version "7.22.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz#77788060e511b708ffc7d42fdfbc5b37c3004e91"
|
|
|
|
integrity sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-create-regexp-features-plugin" "^7.22.5"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
|
|
|
|
"@babel/preset-env@^7.20.0":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.22.15.tgz#142716f8e00bc030dae5b2ac6a46fbd8b3e18ff8"
|
|
|
|
integrity sha512-tZFHr54GBkHk6hQuVA8w4Fmq+MSPsfvMG0vPnOYyTnJpyfMqybL8/MbNCPRT9zc2KBO2pe4tq15g6Uno4Jpoag==
|
|
|
|
dependencies:
|
|
|
|
"@babel/compat-data" "^7.22.9"
|
|
|
|
"@babel/helper-compilation-targets" "^7.22.15"
|
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-validator-option" "^7.22.15"
|
|
|
|
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.22.15"
|
|
|
|
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.22.15"
|
|
|
|
"@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2"
|
|
|
|
"@babel/plugin-syntax-async-generators" "^7.8.4"
|
|
|
|
"@babel/plugin-syntax-class-properties" "^7.12.13"
|
|
|
|
"@babel/plugin-syntax-class-static-block" "^7.14.5"
|
|
|
|
"@babel/plugin-syntax-dynamic-import" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-import-assertions" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-import-attributes" "^7.22.5"
|
|
|
|
"@babel/plugin-syntax-import-meta" "^7.10.4"
|
|
|
|
"@babel/plugin-syntax-json-strings" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
|
|
|
|
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
|
|
|
|
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
|
|
|
|
"@babel/plugin-syntax-top-level-await" "^7.14.5"
|
|
|
|
"@babel/plugin-syntax-unicode-sets-regex" "^7.18.6"
|
|
|
|
"@babel/plugin-transform-arrow-functions" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-async-generator-functions" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-async-to-generator" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-block-scoped-functions" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-block-scoping" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-class-properties" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-class-static-block" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-classes" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-computed-properties" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-destructuring" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-dotall-regex" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-duplicate-keys" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-dynamic-import" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-exponentiation-operator" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-export-namespace-from" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-for-of" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-function-name" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-json-strings" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-literals" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-logical-assignment-operators" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-member-expression-literals" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-modules-amd" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-modules-commonjs" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-modules-systemjs" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-modules-umd" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-new-target" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-nullish-coalescing-operator" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-numeric-separator" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-object-rest-spread" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-object-super" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-optional-catch-binding" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-optional-chaining" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-parameters" "^7.22.15"
|
|
|
|
"@babel/plugin-transform-private-methods" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-private-property-in-object" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-property-literals" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-regenerator" "^7.22.10"
|
|
|
|
"@babel/plugin-transform-reserved-words" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-shorthand-properties" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-spread" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-sticky-regex" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-template-literals" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-typeof-symbol" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-unicode-escapes" "^7.22.10"
|
|
|
|
"@babel/plugin-transform-unicode-property-regex" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-unicode-regex" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-unicode-sets-regex" "^7.22.5"
|
|
|
|
"@babel/preset-modules" "0.1.6-no-external-plugins"
|
|
|
|
"@babel/types" "^7.22.15"
|
|
|
|
babel-plugin-polyfill-corejs2 "^0.4.5"
|
|
|
|
babel-plugin-polyfill-corejs3 "^0.8.3"
|
|
|
|
babel-plugin-polyfill-regenerator "^0.5.2"
|
|
|
|
core-js-compat "^3.31.0"
|
|
|
|
semver "^6.3.1"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/preset-flow@^7.13.13":
|
|
|
|
version "7.21.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.21.4.tgz#a5de2a1cafa61f0e0b3af9b30ff0295d38d3608f"
|
|
|
|
integrity sha512-F24cSq4DIBmhq4OzK3dE63NHagb27OPE3eWR+HLekt4Z3Y5MzIIUGF3LlLgV0gN8vzbDViSY7HnrReNVCJXTeA==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/helper-validator-option" "^7.21.0"
|
|
|
|
"@babel/plugin-transform-flow-strip-types" "^7.21.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/preset-modules@0.1.6-no-external-plugins":
|
|
|
|
version "0.1.6-no-external-plugins"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a"
|
|
|
|
integrity sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.0.0"
|
|
|
|
"@babel/types" "^7.4.4"
|
|
|
|
esutils "^2.0.2"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@babel/preset-react@^7.18.6":
|
|
|
|
version "7.18.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.18.6.tgz#979f76d6277048dc19094c217b507f3ad517dd2d"
|
|
|
|
integrity sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.18.6"
|
|
|
|
"@babel/helper-validator-option" "^7.18.6"
|
|
|
|
"@babel/plugin-transform-react-display-name" "^7.18.6"
|
|
|
|
"@babel/plugin-transform-react-jsx" "^7.18.6"
|
|
|
|
"@babel/plugin-transform-react-jsx-development" "^7.18.6"
|
|
|
|
"@babel/plugin-transform-react-pure-annotations" "^7.18.6"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/preset-typescript@^7.13.0":
|
|
|
|
version "7.21.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.21.4.tgz#b913ac8e6aa8932e47c21b01b4368d8aa239a529"
|
|
|
|
integrity sha512-sMLNWY37TCdRH/bJ6ZeeOH1nPuanED7Ai9Y/vH31IPqalioJ6ZNFUWONsakhv4r4n+I6gm5lmoE0olkgib/j/A==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.20.2"
|
|
|
|
"@babel/helper-validator-option" "^7.21.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-syntax-jsx" "^7.21.4"
|
|
|
|
"@babel/plugin-transform-modules-commonjs" "^7.21.2"
|
|
|
|
"@babel/plugin-transform-typescript" "^7.21.3"
|
|
|
|
|
|
|
|
"@babel/preset-typescript@^7.16.7":
|
2023-12-18 04:14:53 +00:00
|
|
|
version "7.23.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz#14534b34ed5b6d435aa05f1ae1c5e7adcc01d913"
|
|
|
|
integrity sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/helper-plugin-utils" "^7.22.5"
|
|
|
|
"@babel/helper-validator-option" "^7.22.15"
|
|
|
|
"@babel/plugin-syntax-jsx" "^7.23.3"
|
|
|
|
"@babel/plugin-transform-modules-commonjs" "^7.23.3"
|
|
|
|
"@babel/plugin-transform-typescript" "^7.23.3"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/preset-typescript@^7.17.12":
|
|
|
|
version "7.17.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.17.12.tgz#40269e0a0084d56fc5731b6c40febe1c9a4a3e8c"
|
|
|
|
integrity sha512-S1ViF8W2QwAKUGJXxP9NAfNaqGDdEBJKpYkxHf5Yy2C4NPPzXGeR3Lhk7G8xJaaLcFTRfNjVbtbVtm8Gb0mqvg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.17.12"
|
|
|
|
"@babel/helper-validator-option" "^7.16.7"
|
|
|
|
"@babel/plugin-transform-typescript" "^7.17.12"
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
"@babel/register@7.0.0":
|
2018-11-28 18:02:20 +00:00
|
|
|
version "7.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.0.0.tgz#fa634bae1bfa429f60615b754fc1f1d745edd827"
|
|
|
|
integrity sha512-f/+CRmaCe7rVEvcvPvxeA8j5aJhHC3aJie7YuqcMDhUOuyWLA7J/aNrTaHIzoWPEhpHA54mec4Mm8fv8KBlv3g==
|
|
|
|
dependencies:
|
|
|
|
core-js "^2.5.7"
|
|
|
|
find-cache-dir "^1.0.0"
|
|
|
|
home-or-tmp "^3.0.0"
|
|
|
|
lodash "^4.17.10"
|
|
|
|
mkdirp "^0.5.1"
|
|
|
|
pirates "^4.0.0"
|
|
|
|
source-map-support "^0.5.9"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/register@^7.13.16":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.21.0.tgz#c97bf56c2472e063774f31d344c592ebdcefa132"
|
|
|
|
integrity sha512-9nKsPmYDi5DidAqJaQooxIhsLJiNMkGr8ypQ8Uic7cIox7UCDsM7HuUGxdGT7mSDTYbqzIdsOWzfBton/YJrMw==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
clone-deep "^4.0.1"
|
2019-06-13 08:46:42 +00:00
|
|
|
find-cache-dir "^2.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
make-dir "^2.1.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
pirates "^4.0.5"
|
2019-09-07 12:57:22 +00:00
|
|
|
source-map-support "^0.5.16"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/regjsgen@^0.8.0":
|
|
|
|
version "0.8.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
|
|
|
|
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
|
|
|
|
|
|
|
|
"@babel/runtime@^7.0.0":
|
|
|
|
version "7.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673"
|
|
|
|
integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==
|
|
|
|
dependencies:
|
|
|
|
regenerator-runtime "^0.13.11"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
"@babel/runtime@^7.3.1":
|
|
|
|
version "7.20.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.0.tgz#824a9ef325ffde6f78056059db3168c08785e24a"
|
|
|
|
integrity sha512-NDYdls71fTXoU8TZHfbBWg7DiZfNzClcKui/+kyi6ppD2L1qnWW3VV6CjtaBXSUGGhiTWJ6ereOIkUvenif66Q==
|
|
|
|
dependencies:
|
|
|
|
regenerator-runtime "^0.13.10"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/runtime@^7.8.4":
|
|
|
|
version "7.9.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.2.tgz#d90df0583a3a252f09aaa619665367bae518db06"
|
|
|
|
integrity sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q==
|
2020-04-28 08:57:17 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
regenerator-runtime "^0.13.4"
|
|
|
|
|
|
|
|
"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.20.7":
|
|
|
|
version "7.20.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8"
|
|
|
|
integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.18.6"
|
|
|
|
"@babel/parser" "^7.20.7"
|
|
|
|
"@babel/types" "^7.20.7"
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/template@^7.16.7":
|
|
|
|
version "7.16.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155"
|
|
|
|
integrity sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.16.7"
|
|
|
|
"@babel/parser" "^7.16.7"
|
|
|
|
"@babel/types" "^7.16.7"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/template@^7.22.15", "@babel/template@^7.22.5":
|
|
|
|
version "7.22.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38"
|
|
|
|
integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.22.13"
|
|
|
|
"@babel/parser" "^7.22.15"
|
|
|
|
"@babel/types" "^7.22.15"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@babel/template@^7.3.3":
|
2022-11-20 23:46:04 +00:00
|
|
|
version "7.18.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71"
|
|
|
|
integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.18.6"
|
|
|
|
"@babel/parser" "^7.18.10"
|
|
|
|
"@babel/types" "^7.18.10"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/template@^7.4.0", "@babel/template@^7.8.3":
|
2023-04-12 09:55:19 +00:00
|
|
|
version "7.8.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.8.6.tgz#86b22af15f828dfb086474f964dcc3e39c43ce2b"
|
|
|
|
integrity sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.8.3"
|
|
|
|
"@babel/parser" "^7.8.6"
|
|
|
|
"@babel/types" "^7.8.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/traverse@^7.17.12", "@babel/traverse@^7.23.0":
|
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.0.tgz#18196ddfbcf4ccea324b7f6d3ada00d8c5a99c53"
|
|
|
|
integrity sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.22.13"
|
|
|
|
"@babel/generator" "^7.23.0"
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.20"
|
|
|
|
"@babel/helper-function-name" "^7.23.0"
|
|
|
|
"@babel/helper-hoist-variables" "^7.22.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
|
|
|
"@babel/parser" "^7.23.0"
|
|
|
|
"@babel/types" "^7.23.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
debug "^4.1.0"
|
|
|
|
globals "^11.1.0"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@babel/traverse@^7.18.2":
|
|
|
|
version "7.18.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.2.tgz#b77a52604b5cc836a9e1e08dca01cba67a12d2e8"
|
|
|
|
integrity sha512-9eNwoeovJ6KH9zcCNnENY7DMFwTU9JdGCFtqNLfUAqtUHRCOsTOqWoffosP8vKmNYeSBUv3yVJXjfd8ucwOjUA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.16.7"
|
|
|
|
"@babel/generator" "^7.18.2"
|
|
|
|
"@babel/helper-environment-visitor" "^7.18.2"
|
|
|
|
"@babel/helper-function-name" "^7.17.9"
|
|
|
|
"@babel/helper-hoist-variables" "^7.16.7"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.16.7"
|
|
|
|
"@babel/parser" "^7.18.0"
|
|
|
|
"@babel/types" "^7.18.2"
|
|
|
|
debug "^4.1.0"
|
|
|
|
globals "^11.1.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/traverse@^7.20.0":
|
|
|
|
version "7.22.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.17.tgz#b23c203ab3707e3be816043081b4a994fcacec44"
|
|
|
|
integrity sha512-xK4Uwm0JnAMvxYZxOVecss85WxTEIbTa7bnGyf/+EgCL5Zt3U7htUpEOWv9detPlamGKuRzCqw74xVglDWpPdg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.22.13"
|
|
|
|
"@babel/generator" "^7.22.15"
|
|
|
|
"@babel/helper-environment-visitor" "^7.22.5"
|
|
|
|
"@babel/helper-function-name" "^7.22.5"
|
|
|
|
"@babel/helper-hoist-variables" "^7.22.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.22.6"
|
|
|
|
"@babel/parser" "^7.22.16"
|
|
|
|
"@babel/types" "^7.22.17"
|
|
|
|
debug "^4.1.0"
|
|
|
|
globals "^11.1.0"
|
|
|
|
|
|
|
|
"@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.2":
|
|
|
|
version "7.21.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.21.3.tgz#4747c5e7903d224be71f90788b06798331896f67"
|
|
|
|
integrity sha512-XLyopNeaTancVitYZe2MlUEvgKb6YVVPXzofHgqHijCImG33b/uTurMS488ht/Hbsb2XK3U2BnSTxKVNGV3nGQ==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/code-frame" "^7.18.6"
|
|
|
|
"@babel/generator" "^7.21.3"
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/helper-environment-visitor" "^7.18.9"
|
|
|
|
"@babel/helper-function-name" "^7.21.0"
|
|
|
|
"@babel/helper-hoist-variables" "^7.18.6"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.18.6"
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/parser" "^7.21.3"
|
|
|
|
"@babel/types" "^7.21.3"
|
2023-06-14 01:47:41 +00:00
|
|
|
debug "^4.1.0"
|
|
|
|
globals "^11.1.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/traverse@^7.4.3":
|
|
|
|
version "7.9.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.5.tgz#6e7c56b44e2ac7011a948c21e283ddd9d9db97a2"
|
|
|
|
integrity sha512-c4gH3jsvSuGUezlP6rzSJ6jf8fYjLj3hsMZRx/nX0h+fmHN0w+ekubRrHPqnMec0meycA2nwCsJ7dC8IPem2FQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.8.3"
|
|
|
|
"@babel/generator" "^7.9.5"
|
|
|
|
"@babel/helper-function-name" "^7.9.5"
|
|
|
|
"@babel/helper-split-export-declaration" "^7.8.3"
|
|
|
|
"@babel/parser" "^7.9.0"
|
|
|
|
"@babel/types" "^7.9.5"
|
|
|
|
debug "^4.1.0"
|
|
|
|
globals "^11.1.0"
|
|
|
|
lodash "^4.17.13"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/types@^7.0.0", "@babel/types@^7.16.7", "@babel/types@^7.17.0", "@babel/types@^7.17.12", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.5":
|
|
|
|
version "7.17.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.17.12.tgz#1210690a516489c0200f355d87619157fbbd69a0"
|
|
|
|
integrity sha512-rH8i29wcZ6x9xjzI5ILHL/yZkbQnCERdHlogKuIb4PUr7do4iT8DPekrTbBLWTnRQm6U0GYABbTMSzijmEqlAg==
|
2022-06-28 17:27:14 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/helper-validator-identifier" "^7.16.7"
|
|
|
|
to-fast-properties "^2.0.0"
|
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
"@babel/types@^7.18.10", "@babel/types@^7.18.2", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.21.3", "@babel/types@^7.22.10", "@babel/types@^7.22.15", "@babel/types@^7.22.17", "@babel/types@^7.22.5", "@babel/types@^7.23.0":
|
2023-12-11 15:52:23 +00:00
|
|
|
version "7.23.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.0.tgz#8c1f020c9df0e737e4e247c0619f58c68458aaeb"
|
|
|
|
integrity sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==
|
2023-09-04 09:41:26 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/helper-string-parser" "^7.22.5"
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/helper-validator-identifier" "^7.22.20"
|
2023-09-04 09:41:26 +00:00
|
|
|
to-fast-properties "^2.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/types@^7.23.6":
|
|
|
|
version "7.23.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.6.tgz#be33fdb151e1f5a56877d704492c240fc71c7ccd"
|
|
|
|
integrity sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-string-parser" "^7.23.4"
|
|
|
|
"@babel/helper-validator-identifier" "^7.22.20"
|
|
|
|
to-fast-properties "^2.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@bcoe/v8-coverage@^0.2.3":
|
|
|
|
version "0.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
|
|
|
|
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
|
2019-07-11 19:12:31 +00:00
|
|
|
|
2020-03-05 07:01:30 +00:00
|
|
|
"@egjs/hammerjs@^2.0.17":
|
|
|
|
version "2.0.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/@egjs/hammerjs/-/hammerjs-2.0.17.tgz#5dc02af75a6a06e4c2db0202cae38c9263895124"
|
|
|
|
integrity sha512-XQsZgjm2EcVUiZQf11UBJQfmZeEmOW8DpI1gsFeln6w0ae0ii4dMQEQ0kjl6DspdWX1aGY1/loyXnP0JS06e/A==
|
|
|
|
dependencies:
|
|
|
|
"@types/hammerjs" "^2.0.36"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449"
|
|
|
|
integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/address" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/constants" "^5.7.0"
|
|
|
|
"@ethersproject/hash" "^5.7.0"
|
|
|
|
"@ethersproject/keccak256" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/abstract-provider@5.7.0", "@ethersproject/abstract-provider@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef"
|
|
|
|
integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/networks" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/transactions" "^5.7.0"
|
|
|
|
"@ethersproject/web" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2"
|
|
|
|
integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abstract-provider" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/address@5.7.0", "@ethersproject/address@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37"
|
|
|
|
integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/keccak256" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/rlp" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/base64@5.7.0", "@ethersproject/base64@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.7.0.tgz#ac4ee92aa36c1628173e221d0d01f53692059e1c"
|
|
|
|
integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/basex@5.7.0", "@ethersproject/basex@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.7.0.tgz#97034dc7e8938a8ca943ab20f8a5e492ece4020b"
|
|
|
|
integrity sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/bignumber@5.7.0", "@ethersproject/bignumber@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2"
|
|
|
|
integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
bn.js "^5.2.1"
|
|
|
|
|
|
|
|
"@ethersproject/bytes@5.7.0", "@ethersproject/bytes@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d"
|
|
|
|
integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/constants@5.7.0", "@ethersproject/constants@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e"
|
|
|
|
integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/contracts@5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e"
|
|
|
|
integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abi" "^5.7.0"
|
|
|
|
"@ethersproject/abstract-provider" "^5.7.0"
|
|
|
|
"@ethersproject/abstract-signer" "^5.7.0"
|
|
|
|
"@ethersproject/address" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/constants" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/transactions" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/hash@5.7.0", "@ethersproject/hash@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7"
|
|
|
|
integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abstract-signer" "^5.7.0"
|
|
|
|
"@ethersproject/address" "^5.7.0"
|
|
|
|
"@ethersproject/base64" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/keccak256" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/hdnode@5.7.0", "@ethersproject/hdnode@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.7.0.tgz#e627ddc6b466bc77aebf1a6b9e47405ca5aef9cf"
|
|
|
|
integrity sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abstract-signer" "^5.7.0"
|
|
|
|
"@ethersproject/basex" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/pbkdf2" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/sha2" "^5.7.0"
|
|
|
|
"@ethersproject/signing-key" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
"@ethersproject/transactions" "^5.7.0"
|
|
|
|
"@ethersproject/wordlists" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/json-wallets@5.7.0", "@ethersproject/json-wallets@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz#5e3355287b548c32b368d91014919ebebddd5360"
|
|
|
|
integrity sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abstract-signer" "^5.7.0"
|
|
|
|
"@ethersproject/address" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/hdnode" "^5.7.0"
|
|
|
|
"@ethersproject/keccak256" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/pbkdf2" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/random" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
"@ethersproject/transactions" "^5.7.0"
|
|
|
|
aes-js "3.0.0"
|
|
|
|
scrypt-js "3.0.1"
|
|
|
|
|
|
|
|
"@ethersproject/keccak256@5.7.0", "@ethersproject/keccak256@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a"
|
|
|
|
integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
js-sha3 "0.8.0"
|
|
|
|
|
|
|
|
"@ethersproject/logger@5.7.0", "@ethersproject/logger@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892"
|
|
|
|
integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==
|
|
|
|
|
|
|
|
"@ethersproject/networks@5.7.1", "@ethersproject/networks@^5.7.0":
|
|
|
|
version "5.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.7.1.tgz#118e1a981d757d45ccea6bb58d9fd3d9db14ead6"
|
|
|
|
integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/pbkdf2@5.7.0", "@ethersproject/pbkdf2@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz#d2267d0a1f6e123f3771007338c47cccd83d3102"
|
|
|
|
integrity sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/sha2" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/properties@5.7.0", "@ethersproject/properties@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30"
|
|
|
|
integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/providers@5.7.2":
|
|
|
|
version "5.7.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb"
|
|
|
|
integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abstract-provider" "^5.7.0"
|
|
|
|
"@ethersproject/abstract-signer" "^5.7.0"
|
|
|
|
"@ethersproject/address" "^5.7.0"
|
|
|
|
"@ethersproject/base64" "^5.7.0"
|
|
|
|
"@ethersproject/basex" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/constants" "^5.7.0"
|
|
|
|
"@ethersproject/hash" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/networks" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/random" "^5.7.0"
|
|
|
|
"@ethersproject/rlp" "^5.7.0"
|
|
|
|
"@ethersproject/sha2" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
"@ethersproject/transactions" "^5.7.0"
|
|
|
|
"@ethersproject/web" "^5.7.0"
|
|
|
|
bech32 "1.1.4"
|
|
|
|
ws "7.4.6"
|
|
|
|
|
|
|
|
"@ethersproject/random@5.7.0", "@ethersproject/random@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.7.0.tgz#af19dcbc2484aae078bb03656ec05df66253280c"
|
|
|
|
integrity sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/rlp@5.7.0", "@ethersproject/rlp@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.7.0.tgz#de39e4d5918b9d74d46de93af80b7685a9c21304"
|
|
|
|
integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/sha2@5.7.0", "@ethersproject/sha2@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.7.0.tgz#9a5f7a7824ef784f7f7680984e593a800480c9fb"
|
|
|
|
integrity sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
hash.js "1.1.7"
|
|
|
|
|
|
|
|
"@ethersproject/shims@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/shims/-/shims-5.7.0.tgz#ee32e543418595774029c5ea6123ea8995e7e154"
|
|
|
|
integrity sha512-WeDptc6oAprov5CCN2LJ/6/+dC9gTonnkdAtLepm/7P5Z+3PRxS5NpfVWmOMs1yE4Vitl2cU8bOPWC0GvGSbVg==
|
|
|
|
|
|
|
|
"@ethersproject/signing-key@5.7.0", "@ethersproject/signing-key@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.7.0.tgz#06b2df39411b00bc57c7c09b01d1e41cf1b16ab3"
|
|
|
|
integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
bn.js "^5.2.1"
|
|
|
|
elliptic "6.5.4"
|
|
|
|
hash.js "1.1.7"
|
|
|
|
|
|
|
|
"@ethersproject/solidity@5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.7.0.tgz#5e9c911d8a2acce2a5ebb48a5e2e0af20b631cb8"
|
|
|
|
integrity sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/keccak256" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/sha2" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/strings@5.7.0", "@ethersproject/strings@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2"
|
|
|
|
integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/constants" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/transactions@5.7.0", "@ethersproject/transactions@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.7.0.tgz#91318fc24063e057885a6af13fdb703e1f993d3b"
|
|
|
|
integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/address" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/constants" "^5.7.0"
|
|
|
|
"@ethersproject/keccak256" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/rlp" "^5.7.0"
|
|
|
|
"@ethersproject/signing-key" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/units@5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1"
|
|
|
|
integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/constants" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/wallet@5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.7.0.tgz#4e5d0790d96fe21d61d38fb40324e6c7ef350b2d"
|
|
|
|
integrity sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abstract-provider" "^5.7.0"
|
|
|
|
"@ethersproject/abstract-signer" "^5.7.0"
|
|
|
|
"@ethersproject/address" "^5.7.0"
|
|
|
|
"@ethersproject/bignumber" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/hash" "^5.7.0"
|
|
|
|
"@ethersproject/hdnode" "^5.7.0"
|
|
|
|
"@ethersproject/json-wallets" "^5.7.0"
|
|
|
|
"@ethersproject/keccak256" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/random" "^5.7.0"
|
|
|
|
"@ethersproject/signing-key" "^5.7.0"
|
|
|
|
"@ethersproject/transactions" "^5.7.0"
|
|
|
|
"@ethersproject/wordlists" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0":
|
|
|
|
version "5.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae"
|
|
|
|
integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/base64" "^5.7.0"
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
|
|
|
|
"@ethersproject/wordlists@5.7.0", "@ethersproject/wordlists@^5.7.0":
|
|
|
|
version "5.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.7.0.tgz#8fb2c07185d68c3e09eb3bfd6e779ba2774627f5"
|
|
|
|
integrity sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/bytes" "^5.7.0"
|
|
|
|
"@ethersproject/hash" "^5.7.0"
|
|
|
|
"@ethersproject/logger" "^5.7.0"
|
|
|
|
"@ethersproject/properties" "^5.7.0"
|
|
|
|
"@ethersproject/strings" "^5.7.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@hapi/hoek@^9.0.0":
|
|
|
|
version "9.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb"
|
|
|
|
integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@hapi/topo@^5.0.0":
|
|
|
|
version "5.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012"
|
|
|
|
integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@hapi/hoek" "^9.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@isaacs/ttlcache@^1.4.1":
|
|
|
|
version "1.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@isaacs/ttlcache/-/ttlcache-1.4.1.tgz#21fb23db34e9b6220c6ba023a0118a2dd3461ea2"
|
|
|
|
integrity sha512-RQgQ4uQ+pLbqXfOmieB91ejmLwvSgv9nLx6sT6sD83s7umBypgg+OIBOBbEUiJXrfpnp9j0mRhYYdzp9uqq3lA==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@istanbuljs/load-nyc-config@^1.0.0":
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.0.0.tgz#10602de5570baea82f8afbfa2630b24e7a8cfe5b"
|
|
|
|
integrity sha512-ZR0rq/f/E4f4XcgnDvtMWXCUJpi8eO0rssVhmztsZqLIEFA9UUP9zmpE0VxlM+kv/E1ul2I876Fwil2ayptDVg==
|
|
|
|
dependencies:
|
|
|
|
camelcase "^5.3.1"
|
|
|
|
find-up "^4.1.0"
|
|
|
|
js-yaml "^3.13.1"
|
|
|
|
resolve-from "^5.0.0"
|
|
|
|
|
|
|
|
"@istanbuljs/schema@^0.1.2":
|
|
|
|
version "0.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd"
|
|
|
|
integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==
|
2019-08-06 16:16:51 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/console@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.7.0.tgz#cd4822dbdb84529265c5a2bdb529a3c9cc950ffc"
|
|
|
|
integrity sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/types" "^29.6.3"
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/node" "*"
|
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
slash "^3.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/core@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.7.0.tgz#b6cccc239f30ff36609658c5a5e2291757ce448f"
|
|
|
|
integrity sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==
|
2022-11-20 23:46:04 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/console" "^29.7.0"
|
|
|
|
"@jest/reporters" "^29.7.0"
|
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
"@jest/transform" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
2023-04-12 09:55:19 +00:00
|
|
|
"@types/node" "*"
|
2019-09-07 12:57:22 +00:00
|
|
|
ansi-escapes "^4.2.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
ci-info "^3.2.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
exit "^0.1.2"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-changed-files "^29.7.0"
|
|
|
|
jest-config "^29.7.0"
|
|
|
|
jest-haste-map "^29.7.0"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-regex-util "^29.6.3"
|
|
|
|
jest-resolve "^29.7.0"
|
|
|
|
jest-resolve-dependencies "^29.7.0"
|
|
|
|
jest-runner "^29.7.0"
|
|
|
|
jest-runtime "^29.7.0"
|
|
|
|
jest-snapshot "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
jest-validate "^29.7.0"
|
|
|
|
jest-watcher "^29.7.0"
|
|
|
|
micromatch "^4.0.4"
|
|
|
|
pretty-format "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
slash "^3.0.0"
|
|
|
|
strip-ansi "^6.0.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@jest/create-cache-key-function@^29.6.3":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-29.7.0.tgz#793be38148fab78e65f40ae30c36785f4ad859f0"
|
|
|
|
integrity sha512-4QqS3LY5PBmTRHj9sAg1HLoPzqAI0uOX6wI/TRqHIcOxlFidy6YEmCQJk6FSZjNLGCeubDMfmkWL+qaLKhSGQA==
|
2022-11-20 23:46:04 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/types" "^29.6.3"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
|
|
|
"@jest/environment@^25.5.0":
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-25.5.0.tgz#aa33b0c21a716c65686638e7ef816c0e3a0c7b37"
|
|
|
|
integrity sha512-U2VXPEqL07E/V7pSZMSQCvV5Ea4lqOlT+0ZFijl/i316cRMHvZ4qC+jBdryd+lmRetjQo0YIQr6cVPNxxK87mA==
|
|
|
|
dependencies:
|
|
|
|
"@jest/fake-timers" "^25.5.0"
|
|
|
|
"@jest/types" "^25.5.0"
|
|
|
|
jest-mock "^25.5.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/environment@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.7.0.tgz#24d61f54ff1f786f3cd4073b4b94416383baf2a7"
|
|
|
|
integrity sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==
|
|
|
|
dependencies:
|
|
|
|
"@jest/fake-timers" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@types/node" "*"
|
|
|
|
jest-mock "^29.7.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@jest/expect-utils@^28.1.3":
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-28.1.3.tgz#58561ce5db7cd253a7edddbc051fb39dda50f525"
|
|
|
|
integrity sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
jest-get-type "^28.0.2"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/expect-utils@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.7.0.tgz#023efe5d26a8a70f21677d0a1afc0f0a44e3a1c6"
|
|
|
|
integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==
|
|
|
|
dependencies:
|
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
|
|
|
|
"@jest/expect@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.7.0.tgz#76a3edb0cb753b70dfbfe23283510d3d45432bf2"
|
|
|
|
integrity sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==
|
|
|
|
dependencies:
|
|
|
|
expect "^29.7.0"
|
|
|
|
jest-snapshot "^29.7.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@jest/fake-timers@^25.5.0":
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-25.5.0.tgz#46352e00533c024c90c2bc2ad9f2959f7f114185"
|
|
|
|
integrity sha512-9y2+uGnESw/oyOI3eww9yaxdZyHq7XvprfP/eeoCsjqKYts2yRlsHS/SgjPDV8FyMfn2nbMy8YzUk6nyvdLOpQ==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^25.5.0"
|
|
|
|
jest-message-util "^25.5.0"
|
|
|
|
jest-mock "^25.5.0"
|
|
|
|
jest-util "^25.5.0"
|
|
|
|
lolex "^5.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/fake-timers@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.7.0.tgz#fd91bf1fffb16d7d0d24a426ab1a47a49881a565"
|
|
|
|
integrity sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@sinonjs/fake-timers" "^10.0.2"
|
|
|
|
"@types/node" "*"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-mock "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@jest/globals@^25.1.0":
|
|
|
|
version "25.5.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-25.5.2.tgz#5e45e9de8d228716af3257eeb3991cc2e162ca88"
|
|
|
|
integrity sha512-AgAS/Ny7Q2RCIj5kZ+0MuKM1wbF0WMLxbCVl/GOMoCNbODRdJ541IxJ98xnZdVSZXivKpJlNPIWa3QmY0l4CXA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-23 13:59:18 +00:00
|
|
|
"@jest/environment" "^25.5.0"
|
|
|
|
"@jest/types" "^25.5.0"
|
|
|
|
expect "^25.5.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/globals@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.7.0.tgz#8d9290f9ec47ff772607fa864ca1d5a2efae1d4d"
|
|
|
|
integrity sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/environment" "^29.7.0"
|
|
|
|
"@jest/expect" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
jest-mock "^29.7.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/reporters@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.7.0.tgz#04b262ecb3b8faa83b0b3d321623972393e8f4c7"
|
|
|
|
integrity sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
"@bcoe/v8-coverage" "^0.2.3"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/console" "^29.7.0"
|
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
"@jest/transform" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.18"
|
|
|
|
"@types/node" "*"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
collect-v8-coverage "^1.0.0"
|
|
|
|
exit "^0.1.2"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
glob "^7.1.3"
|
|
|
|
graceful-fs "^4.2.9"
|
2019-09-07 12:57:22 +00:00
|
|
|
istanbul-lib-coverage "^3.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
istanbul-lib-instrument "^6.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
istanbul-lib-report "^3.0.0"
|
|
|
|
istanbul-lib-source-maps "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
istanbul-reports "^3.1.3"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
jest-worker "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
slash "^3.0.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
string-length "^4.0.1"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
strip-ansi "^6.0.0"
|
|
|
|
v8-to-istanbul "^9.0.1"
|
2022-11-20 23:46:04 +00:00
|
|
|
|
|
|
|
"@jest/schemas@^28.1.3":
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-28.1.3.tgz#ad8b86a66f11f33619e3d7e1dcddd7f2d40ff905"
|
|
|
|
integrity sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==
|
|
|
|
dependencies:
|
|
|
|
"@sinclair/typebox" "^0.24.1"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@jest/schemas@^29.0.0":
|
|
|
|
version "29.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a"
|
|
|
|
integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==
|
|
|
|
dependencies:
|
|
|
|
"@sinclair/typebox" "^0.24.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/schemas@^29.6.3":
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03"
|
|
|
|
integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==
|
|
|
|
dependencies:
|
|
|
|
"@sinclair/typebox" "^0.27.8"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/source-map@^29.6.3":
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.6.3.tgz#d90ba772095cf37a34a5eb9413f1b562a08554c4"
|
|
|
|
integrity sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jridgewell/trace-mapping" "^0.3.18"
|
2022-11-23 13:59:18 +00:00
|
|
|
callsites "^3.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
graceful-fs "^4.2.9"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/test-result@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.7.0.tgz#8db9a80aa1a097bb2262572686734baed9b1657c"
|
|
|
|
integrity sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/console" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
2022-11-23 13:59:18 +00:00
|
|
|
"@types/istanbul-lib-coverage" "^2.0.0"
|
|
|
|
collect-v8-coverage "^1.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/test-sequencer@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz#6cef977ce1d39834a3aea887a1726628a6f072ce"
|
|
|
|
integrity sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-haste-map "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
slash "^3.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/transform@^29.7.0":
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.7.0.tgz#df2dd9c346c7d7768b8a06639994640c642e284c"
|
|
|
|
integrity sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/core" "^7.11.6"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.18"
|
|
|
|
babel-plugin-istanbul "^6.1.1"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
convert-source-map "^2.0.0"
|
|
|
|
fast-json-stable-stringify "^2.1.0"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-haste-map "^29.7.0"
|
|
|
|
jest-regex-util "^29.6.3"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
micromatch "^4.0.4"
|
|
|
|
pirates "^4.0.4"
|
|
|
|
slash "^3.0.0"
|
|
|
|
write-file-atomic "^4.0.2"
|
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
"@jest/types@^25.5.0":
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.5.0.tgz#4d6a4793f7b9599fc3680877b856a97dbccf2a9d"
|
|
|
|
integrity sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==
|
|
|
|
dependencies:
|
|
|
|
"@types/istanbul-lib-coverage" "^2.0.0"
|
|
|
|
"@types/istanbul-reports" "^1.1.1"
|
|
|
|
"@types/yargs" "^15.0.0"
|
|
|
|
chalk "^3.0.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
"@jest/types@^26.6.2":
|
|
|
|
version "26.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e"
|
|
|
|
integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==
|
|
|
|
dependencies:
|
|
|
|
"@types/istanbul-lib-coverage" "^2.0.0"
|
|
|
|
"@types/istanbul-reports" "^3.0.0"
|
|
|
|
"@types/node" "*"
|
|
|
|
"@types/yargs" "^15.0.0"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@jest/types@^28.1.3":
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/types/-/types-28.1.3.tgz#b05de80996ff12512bc5ceb1d208285a7d11748b"
|
|
|
|
integrity sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==
|
|
|
|
dependencies:
|
|
|
|
"@jest/schemas" "^28.1.3"
|
|
|
|
"@types/istanbul-lib-coverage" "^2.0.0"
|
|
|
|
"@types/istanbul-reports" "^3.0.0"
|
|
|
|
"@types/node" "*"
|
|
|
|
"@types/yargs" "^17.0.8"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/types@^29.6.3":
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59"
|
|
|
|
integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/schemas" "^29.6.3"
|
|
|
|
"@types/istanbul-lib-coverage" "^2.0.0"
|
|
|
|
"@types/istanbul-reports" "^3.0.0"
|
|
|
|
"@types/node" "*"
|
|
|
|
"@types/yargs" "^17.0.8"
|
|
|
|
chalk "^4.0.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@jridgewell/gen-mapping@^0.3.0":
|
|
|
|
version "0.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.1.tgz#cf92a983c83466b8c0ce9124fadeaf09f7c66ea9"
|
|
|
|
integrity sha512-GcHwniMlA2z+WFPWuY8lp3fsza0I8xPFMWL5+n8LYyP6PSvPrXf4+n8stDHZY2DM0zy9sVkRDy1jDI4XGzYVqg==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/set-array" "^1.0.0"
|
|
|
|
"@jridgewell/sourcemap-codec" "^1.4.10"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.9"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@jridgewell/gen-mapping@^0.3.2":
|
|
|
|
version "0.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9"
|
|
|
|
integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/set-array" "^1.0.1"
|
|
|
|
"@jridgewell/sourcemap-codec" "^1.4.10"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.9"
|
|
|
|
|
|
|
|
"@jridgewell/resolve-uri@3.1.0":
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78"
|
|
|
|
integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@jridgewell/resolve-uri@^3.0.3":
|
|
|
|
version "3.0.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.7.tgz#30cd49820a962aff48c8fffc5cd760151fca61fe"
|
|
|
|
integrity sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jridgewell/resolve-uri@^3.1.0":
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721"
|
|
|
|
integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@jridgewell/set-array@^1.0.0":
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.1.tgz#36a6acc93987adcf0ba50c66908bd0b70de8afea"
|
|
|
|
integrity sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@jridgewell/set-array@^1.0.1":
|
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72"
|
|
|
|
integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jridgewell/source-map@^0.3.3":
|
|
|
|
version "0.3.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.5.tgz#a3bb4d5c6825aab0d281268f47f6ad5853431e91"
|
|
|
|
integrity sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/gen-mapping" "^0.3.0"
|
|
|
|
"@jridgewell/trace-mapping" "^0.3.9"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@jridgewell/sourcemap-codec@1.4.14":
|
|
|
|
version "1.4.14"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24"
|
|
|
|
integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@jridgewell/sourcemap-codec@^1.4.10":
|
|
|
|
version "1.4.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz#b6461fb0c2964356c469e115f504c95ad97ab88c"
|
|
|
|
integrity sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jridgewell/sourcemap-codec@^1.4.14":
|
|
|
|
version "1.4.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32"
|
|
|
|
integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jridgewell/trace-mapping@^0.3.12":
|
|
|
|
version "0.3.20"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz#72e45707cf240fa6b081d0366f8265b0cd10197f"
|
|
|
|
integrity sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/resolve-uri" "^3.1.0"
|
|
|
|
"@jridgewell/sourcemap-codec" "^1.4.14"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
"@jridgewell/trace-mapping@^0.3.17":
|
|
|
|
version "0.3.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985"
|
|
|
|
integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/resolve-uri" "3.1.0"
|
|
|
|
"@jridgewell/sourcemap-codec" "1.4.14"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jridgewell/trace-mapping@^0.3.18":
|
|
|
|
version "0.3.19"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz#f8a3249862f91be48d3127c3cfe992f79b4b8811"
|
|
|
|
integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/resolve-uri" "^3.1.0"
|
|
|
|
"@jridgewell/sourcemap-codec" "^1.4.14"
|
|
|
|
|
2022-06-28 17:27:14 +00:00
|
|
|
"@jridgewell/trace-mapping@^0.3.9":
|
|
|
|
version "0.3.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.13.tgz#dcfe3e95f224c8fe97a87a5235defec999aa92ea"
|
|
|
|
integrity sha512-o1xbKhp9qnIAoHJSWd6KlCZfqslL4valSF81H8ImioOAxluWYWOpWkpyktY2vnt4tbrX9XYaxovq6cgowaJp2w==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/resolve-uri" "^3.0.3"
|
|
|
|
"@jridgewell/sourcemap-codec" "^1.4.10"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@json-rpc-tools/types@^1.7.6":
|
|
|
|
version "1.7.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@json-rpc-tools/types/-/types-1.7.6.tgz#5abd5fde01364a130c46093b501715bcce5bdc0e"
|
|
|
|
integrity sha512-nDSqmyRNEqEK9TZHtM15uNnDljczhCUdBmRhpNZ95bIPKEDQ+nTDmGMFd2lLin3upc5h2VVVd9tkTDdbXUhDIQ==
|
|
|
|
dependencies:
|
|
|
|
keyvaluestorage-interface "^1.0.0"
|
|
|
|
|
|
|
|
"@json-rpc-tools/utils@^1.7.6":
|
|
|
|
version "1.7.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@json-rpc-tools/utils/-/utils-1.7.6.tgz#67f04987dbaa2e7adb6adff1575367b75a9a9ba1"
|
|
|
|
integrity sha512-HjA8x/U/Q78HRRe19yh8HVKoZ+Iaoo3YZjakJYxR+rw52NHo6jM+VE9b8+7ygkCFXl/EHID5wh/MkXaE/jGyYw==
|
|
|
|
dependencies:
|
|
|
|
"@json-rpc-tools/types" "^1.7.6"
|
|
|
|
"@pedrouid/environment" "^1.0.1"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
"@mapbox/node-pre-gyp@^1.0.9":
|
|
|
|
version "1.0.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz#09a8781a3a036151cdebbe8719d6f8b25d4058bc"
|
|
|
|
integrity sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==
|
|
|
|
dependencies:
|
|
|
|
detect-libc "^2.0.0"
|
|
|
|
https-proxy-agent "^5.0.0"
|
|
|
|
make-dir "^3.1.0"
|
|
|
|
node-fetch "^2.6.7"
|
|
|
|
nopt "^5.0.0"
|
|
|
|
npmlog "^5.0.1"
|
|
|
|
rimraf "^3.0.2"
|
|
|
|
semver "^7.3.5"
|
|
|
|
tar "^6.1.11"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@parcel/watcher-android-arm64@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz#c2c19a3c442313ff007d2d7a9c2c1dd3e1c9ca84"
|
|
|
|
integrity sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==
|
|
|
|
|
|
|
|
"@parcel/watcher-darwin-arm64@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz#c817c7a3b4f3a79c1535bfe54a1c2818d9ffdc34"
|
|
|
|
integrity sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==
|
|
|
|
|
|
|
|
"@parcel/watcher-darwin-x64@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz#1a3f69d9323eae4f1c61a5f480a59c478d2cb020"
|
|
|
|
integrity sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==
|
|
|
|
|
|
|
|
"@parcel/watcher-freebsd-x64@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz#0d67fef1609f90ba6a8a662bc76a55fc93706fc8"
|
|
|
|
integrity sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==
|
|
|
|
|
|
|
|
"@parcel/watcher-linux-arm-glibc@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz#ce5b340da5829b8e546bd00f752ae5292e1c702d"
|
|
|
|
integrity sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==
|
|
|
|
|
|
|
|
"@parcel/watcher-linux-arm64-glibc@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz#6d7c00dde6d40608f9554e73998db11b2b1ff7c7"
|
|
|
|
integrity sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==
|
|
|
|
|
|
|
|
"@parcel/watcher-linux-arm64-musl@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz#bd39bc71015f08a4a31a47cd89c236b9d6a7f635"
|
|
|
|
integrity sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==
|
|
|
|
|
|
|
|
"@parcel/watcher-linux-x64-glibc@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz#0ce29966b082fb6cdd3de44f2f74057eef2c9e39"
|
|
|
|
integrity sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==
|
|
|
|
|
|
|
|
"@parcel/watcher-linux-x64-musl@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz#d2ebbf60e407170bb647cd6e447f4f2bab19ad16"
|
|
|
|
integrity sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==
|
|
|
|
|
|
|
|
"@parcel/watcher-wasm@^2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-wasm/-/watcher-wasm-2.4.1.tgz#c4353e4fdb96ee14389856f7f6f6d21b7dcef9e1"
|
|
|
|
integrity sha512-/ZR0RxqxU/xxDGzbzosMjh4W6NdYFMqq2nvo2b8SLi7rsl/4jkL8S5stIikorNkdR50oVDvqb/3JT05WM+CRRA==
|
|
|
|
dependencies:
|
|
|
|
is-glob "^4.0.3"
|
|
|
|
micromatch "^4.0.5"
|
|
|
|
napi-wasm "^1.1.0"
|
|
|
|
|
|
|
|
"@parcel/watcher-win32-arm64@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz#eb4deef37e80f0b5e2f215dd6d7a6d40a85f8adc"
|
|
|
|
integrity sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==
|
|
|
|
|
|
|
|
"@parcel/watcher-win32-ia32@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz#94fbd4b497be39fd5c8c71ba05436927842c9df7"
|
|
|
|
integrity sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==
|
|
|
|
|
|
|
|
"@parcel/watcher-win32-x64@2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz#4bf920912f67cae5f2d264f58df81abfea68dadf"
|
|
|
|
integrity sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==
|
|
|
|
|
|
|
|
"@parcel/watcher@^2.4.1":
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@parcel/watcher/-/watcher-2.4.1.tgz#a50275151a1bb110879c6123589dba90c19f1bf8"
|
|
|
|
integrity sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==
|
|
|
|
dependencies:
|
|
|
|
detect-libc "^1.0.3"
|
|
|
|
is-glob "^4.0.3"
|
|
|
|
micromatch "^4.0.5"
|
|
|
|
node-addon-api "^7.0.0"
|
|
|
|
optionalDependencies:
|
|
|
|
"@parcel/watcher-android-arm64" "2.4.1"
|
|
|
|
"@parcel/watcher-darwin-arm64" "2.4.1"
|
|
|
|
"@parcel/watcher-darwin-x64" "2.4.1"
|
|
|
|
"@parcel/watcher-freebsd-x64" "2.4.1"
|
|
|
|
"@parcel/watcher-linux-arm-glibc" "2.4.1"
|
|
|
|
"@parcel/watcher-linux-arm64-glibc" "2.4.1"
|
|
|
|
"@parcel/watcher-linux-arm64-musl" "2.4.1"
|
|
|
|
"@parcel/watcher-linux-x64-glibc" "2.4.1"
|
|
|
|
"@parcel/watcher-linux-x64-musl" "2.4.1"
|
|
|
|
"@parcel/watcher-win32-arm64" "2.4.1"
|
|
|
|
"@parcel/watcher-win32-ia32" "2.4.1"
|
|
|
|
"@parcel/watcher-win32-x64" "2.4.1"
|
|
|
|
|
|
|
|
"@pedrouid/environment@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@pedrouid/environment/-/environment-1.0.1.tgz#858f0f8a057340e0b250398b75ead77d6f4342ec"
|
|
|
|
integrity sha512-HaW78NszGzRZd9SeoI3JD11JqY+lubnaOx7Pewj5pfjqWXOEATpeKIFb9Z4t2WBUK2iryiXX3lzWwmYWgUL0Ug==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@react-native-async-storage/async-storage@1.19.3":
|
|
|
|
version "1.19.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-async-storage/async-storage/-/async-storage-1.19.3.tgz#ad5fe3ed0a82d4624aa4500321c1e09c02daeb46"
|
|
|
|
integrity sha512-CwGfoHCWdPOTPS+2fW6YRE1fFBpT9++ahLEroX5hkgwyoQ+TkmjOaUxixdEIoVua9Pz5EF2pGOIJzqOTMWfBlA==
|
2020-05-08 15:08:53 +00:00
|
|
|
dependencies:
|
2022-08-24 14:21:49 +00:00
|
|
|
merge-options "^3.0.4"
|
2020-05-08 15:08:53 +00:00
|
|
|
|
2024-04-17 15:14:18 +00:00
|
|
|
"@react-native-camera-roll/camera-roll@7.5.2":
|
|
|
|
version "7.5.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-camera-roll/camera-roll/-/camera-roll-7.5.2.tgz#2b248a835fbb8b53d04fc0c2957adba1474d9c99"
|
|
|
|
integrity sha512-XiVIrW17EFXrFzqB48q6cQOaYeVnw0iC3tH+Jhl+MAHDYGLJp+ulzxCNNwngaMvnVAA5Q2mUMzRocUiJPy8q0g==
|
2023-10-24 14:23:16 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-clipboard/clipboard@1.13.2":
|
|
|
|
version "1.13.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-clipboard/clipboard/-/clipboard-1.13.2.tgz#28adcfc43ed2addddf79a59198ec1b25087c115e"
|
|
|
|
integrity sha512-uVM55oEGc6a6ZmSATDeTcMm55A/C1km5X47g0xaoF0Zagv7N/8RGvLceA5L/izPwflIy78t7XQeJUcnGSib0nA==
|
|
|
|
|
2022-01-05 13:32:02 +00:00
|
|
|
"@react-native-community/audio-toolkit@git+https://github.com/tbenr/react-native-audio-toolkit.git#refs/tags/v2.0.3-status-v6":
|
2020-07-28 11:06:58 +00:00
|
|
|
version "2.0.3"
|
|
|
|
resolved "git+https://github.com/tbenr/react-native-audio-toolkit.git#7ae9055cf6169b30f5089bda7bfcfc1c40a715e5"
|
|
|
|
dependencies:
|
|
|
|
async "^2.6.3"
|
|
|
|
eventemitter3 "^1.2.0"
|
|
|
|
lodash "^4.17.15"
|
|
|
|
|
2024-04-19 13:03:12 +00:00
|
|
|
"@react-native-community/blur@4.4.0":
|
|
|
|
version "4.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/blur/-/blur-4.4.0.tgz#b2440dab17d94e480fbc4470e03155573b5b7375"
|
|
|
|
integrity sha512-P+xdT2LIq1ewOsF3zx7C0nu4dj7nxl2NVTsMXEzRDjM3bWMdrrEbTRA7uwPV5ngn7/BXIommBPlT/JW4SAedrw==
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-clean@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-12.3.6.tgz#e8a7910bebc97266fd5068649013a03958021fc4"
|
|
|
|
integrity sha512-gUU29ep8xM0BbnZjwz9MyID74KKwutq9x5iv4BCr2im6nly4UMf1B1D+V225wR7VcDGzbgWjaezsJShLLhC5ig==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
2023-06-14 01:47:41 +00:00
|
|
|
chalk "^4.1.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
execa "^5.0.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-config@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-config/-/cli-config-12.3.6.tgz#5f0be68270217908a739c32e3155a0e354773251"
|
|
|
|
integrity sha512-JGWSYQ9EAK6m2v0abXwFLEfsqJ1zkhzZ4CV261QZF9MoUNB6h57a274h1MLQR9mG6Tsh38wBUuNfEPUvS1vYew==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
2023-12-11 15:52:23 +00:00
|
|
|
chalk "^4.1.2"
|
2023-06-14 01:47:41 +00:00
|
|
|
cosmiconfig "^5.1.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
deepmerge "^4.3.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
glob "^7.1.3"
|
|
|
|
joi "^17.2.1"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-debugger-ui@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-debugger-ui/-/cli-debugger-ui-12.3.6.tgz#418027a1ae76850079684d309a732eb378c7f690"
|
|
|
|
integrity sha512-SjUKKsx5FmcK9G6Pb6UBFT0s9JexVStK5WInmANw75Hm7YokVvHEgtprQDz2Uvy5znX5g2ujzrkIU//T15KQzA==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
2019-12-04 06:52:02 +00:00
|
|
|
serve-static "^1.13.1"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-doctor@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-doctor/-/cli-doctor-12.3.6.tgz#f68b51bbc6554ff4837269d98e9e405044e6f1b9"
|
|
|
|
integrity sha512-fvBDv2lTthfw4WOQKkdTop2PlE9GtfrlNnpjB818MhcdEnPjfQw5YaTUcnNEGsvGomdCs1MVRMgYXXwPSN6OvQ==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-config" "12.3.6"
|
|
|
|
"@react-native-community/cli-platform-android" "12.3.6"
|
|
|
|
"@react-native-community/cli-platform-ios" "12.3.6"
|
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
2023-06-14 01:47:41 +00:00
|
|
|
chalk "^4.1.2"
|
|
|
|
command-exists "^1.2.8"
|
2024-03-22 14:21:44 +00:00
|
|
|
deepmerge "^4.3.0"
|
|
|
|
envinfo "^7.10.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
execa "^5.0.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
hermes-profile-transformer "^0.0.6"
|
|
|
|
node-stream-zip "^1.9.1"
|
|
|
|
ora "^5.4.1"
|
2023-12-11 15:52:23 +00:00
|
|
|
semver "^7.5.2"
|
2023-06-14 01:47:41 +00:00
|
|
|
strip-ansi "^5.2.0"
|
|
|
|
wcwidth "^1.0.1"
|
2023-12-11 15:52:23 +00:00
|
|
|
yaml "^2.2.1"
|
2023-06-14 01:47:41 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-hermes@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-12.3.6.tgz#5ac2c9ee26c69e1ce6b5047ba0f399984a6dea16"
|
|
|
|
integrity sha512-sNGwfOCl8OAIjWCkwuLpP8NZbuO0dhDI/2W7NeOGDzIBsf4/c4MptTrULWtGIH9okVPLSPX0NnRyGQ+mSwWyuQ==
|
2021-01-07 12:59:57 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-platform-android" "12.3.6"
|
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.1.2"
|
2021-01-07 12:59:57 +00:00
|
|
|
hermes-profile-transformer "^0.0.6"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-platform-android@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-12.3.6.tgz#e1103692c659ff0b72ee6f00b7c72578db7376ec"
|
|
|
|
integrity sha512-DeDDAB8lHpuGIAPXeeD9Qu2+/wDTFPo99c8uSW49L0hkmZJixzvvvffbGQAYk32H0TmaI7rzvzH+qzu7z3891g==
|
2019-12-04 06:52:02 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.1.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
execa "^5.0.0"
|
2024-03-22 14:21:44 +00:00
|
|
|
fast-xml-parser "^4.2.4"
|
2020-05-01 07:20:06 +00:00
|
|
|
glob "^7.1.3"
|
2021-01-07 12:59:57 +00:00
|
|
|
logkitty "^0.7.1"
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-platform-ios@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-12.3.6.tgz#e7decb5ee764f5fdc7a6ad1ba5e15de8929d54a5"
|
|
|
|
integrity sha512-3eZ0jMCkKUO58wzPWlvAPRqezVKm9EPZyaPyHbRPWU8qw7JqkvnRlWIaYDGpjCJgVW4k2hKsEursLtYKb188tg==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.1.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
execa "^5.0.0"
|
|
|
|
fast-xml-parser "^4.0.12"
|
2020-05-01 07:20:06 +00:00
|
|
|
glob "^7.1.3"
|
2023-06-14 01:47:41 +00:00
|
|
|
ora "^5.4.1"
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-plugin-metro@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-plugin-metro/-/cli-plugin-metro-12.3.6.tgz#ae62de18e998478db60a3fe10dc746162c272dbd"
|
|
|
|
integrity sha512-3jxSBQt4fkS+KtHCPSyB5auIT+KKIrPCv9Dk14FbvOaEh9erUWEm/5PZWmtboW1z7CYeNbFMeXm9fM2xwtVOpg==
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-server-api@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-server-api/-/cli-server-api-12.3.6.tgz#cd78122954a02d22c7821c365938635b51ddd1bd"
|
|
|
|
integrity sha512-80NIMzo8b2W+PL0Jd7NjiJW9mgaT8Y8wsIT/lh6mAvYH7mK0ecDJUYUTAAv79Tbo1iCGPAr3T295DlVtS8s4yQ==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-debugger-ui" "12.3.6"
|
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
2021-01-07 12:59:57 +00:00
|
|
|
compression "^1.7.1"
|
|
|
|
connect "^3.6.5"
|
2023-12-11 15:52:23 +00:00
|
|
|
errorhandler "^1.5.1"
|
2023-06-14 01:47:41 +00:00
|
|
|
nocache "^3.0.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
pretty-format "^26.6.2"
|
2021-01-07 12:59:57 +00:00
|
|
|
serve-static "^1.13.1"
|
2023-06-14 01:47:41 +00:00
|
|
|
ws "^7.5.1"
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-tools@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-12.3.6.tgz#c39965982347635dfaf1daa7b3c0133b3bd45e64"
|
|
|
|
integrity sha512-FPEvZn19UTMMXUp/piwKZSh8cMEfO8G3KDtOwo53O347GTcwNrKjgZGtLSPELBX2gr+YlzEft3CoRv2Qmo83fQ==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
appdirsjs "^1.2.4"
|
|
|
|
chalk "^4.1.2"
|
2023-06-14 01:47:41 +00:00
|
|
|
find-up "^5.0.0"
|
2019-08-06 16:16:51 +00:00
|
|
|
mime "^2.4.1"
|
2020-05-01 07:20:06 +00:00
|
|
|
node-fetch "^2.6.0"
|
|
|
|
open "^6.2.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
ora "^5.4.1"
|
2023-12-11 15:52:23 +00:00
|
|
|
semver "^7.5.2"
|
2023-04-12 09:55:19 +00:00
|
|
|
shell-quote "^1.7.3"
|
2024-03-22 14:21:44 +00:00
|
|
|
sudo-prompt "^9.0.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli-types@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli-types/-/cli-types-12.3.6.tgz#239de348800fe1ffba3eb1fe0edbeb9306981e57"
|
|
|
|
integrity sha512-xPqTgcUtZowQ8WKOkI9TLGBwH2bGggOC4d2FFaIRST3gTcjrEeGRNeR5aXCzJFIgItIft8sd7p2oKEdy90+01Q==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-06-14 01:47:41 +00:00
|
|
|
joi "^17.2.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native-community/cli@12.3.6":
|
|
|
|
version "12.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-12.3.6.tgz#7a323b78725b959bb8a31cca1145918263ff3c8d"
|
|
|
|
integrity sha512-647OSi6xBb8FbwFqX9zsJxOzu685AWtrOUWHfOkbKD+5LOpGORw+GQo0F9rWZnB68rLQyfKUZWJeaD00pGv5fw==
|
|
|
|
dependencies:
|
|
|
|
"@react-native-community/cli-clean" "12.3.6"
|
|
|
|
"@react-native-community/cli-config" "12.3.6"
|
|
|
|
"@react-native-community/cli-debugger-ui" "12.3.6"
|
|
|
|
"@react-native-community/cli-doctor" "12.3.6"
|
|
|
|
"@react-native-community/cli-hermes" "12.3.6"
|
|
|
|
"@react-native-community/cli-plugin-metro" "12.3.6"
|
|
|
|
"@react-native-community/cli-server-api" "12.3.6"
|
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
|
|
|
"@react-native-community/cli-types" "12.3.6"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.1.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
commander "^9.4.1"
|
2024-03-22 14:21:44 +00:00
|
|
|
deepmerge "^4.3.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
execa "^5.0.0"
|
2019-12-04 06:52:02 +00:00
|
|
|
find-up "^4.1.0"
|
2020-05-01 07:20:06 +00:00
|
|
|
fs-extra "^8.1.0"
|
2019-03-04 12:38:41 +00:00
|
|
|
graceful-fs "^4.1.3"
|
2024-03-22 14:21:44 +00:00
|
|
|
prompts "^2.4.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
semver "^7.5.2"
|
2019-03-04 12:38:41 +00:00
|
|
|
|
2023-05-19 10:31:57 +00:00
|
|
|
"@react-native-community/hooks@^3.0.0":
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/hooks/-/hooks-3.0.0.tgz#af5f2ca32eea59b792ce9e3d9a4cf0354f9b195f"
|
|
|
|
integrity sha512-g2OyxXHfwIytXUJitBR6Z/ISoOfp0WKx5FOv+NqJ/CrWjRDcTw6zXE5I1C9axfuh30kJqzWchVfCDrkzZYTxqg==
|
2020-05-14 07:45:44 +00:00
|
|
|
|
2020-02-25 11:31:04 +00:00
|
|
|
"@react-native-community/masked-view@^0.1.6":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "0.1.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/masked-view/-/masked-view-0.1.9.tgz#383aca2fb053e3e14405c99cce2d5805df730821"
|
|
|
|
integrity sha512-nUtzbiLeXU0K9oVed6rc/WVrjGJwDSL4q1RTDkpZYU4j0FeovfuzcNUIDesD2r728LYfIop+uAgQdm+6qBOCug==
|
2020-02-25 11:31:04 +00:00
|
|
|
|
2019-10-14 05:24:35 +00:00
|
|
|
"@react-native-community/netinfo@^4.4.0":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "4.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/netinfo/-/netinfo-4.7.0.tgz#7482d36836cac69d0a0ae25581f65bc472639930"
|
|
|
|
integrity sha512-a/sDB+AsLEUNmhAUlAaTYeXKyQdFGBUfatqKkX5jluBo2CB3OAuTHfm7rSjcaLB9EmG5iSq3fOTpync2E7EYTA==
|
2019-09-03 10:51:53 +00:00
|
|
|
|
2020-06-12 08:54:28 +00:00
|
|
|
"@react-native-community/push-notification-ios@^1.4.1":
|
|
|
|
version "1.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/push-notification-ios/-/push-notification-ios-1.4.1.tgz#02b46fb793926f34aa275605ed49f03015e893b3"
|
|
|
|
integrity sha512-Y+4LS10R+yc17wu54tlDcxgW/SugEAz2dNjmil9I7KUtaZIOc0hTvAE8dUvYTEDvYQ9uYrXI+OqdElTE3FJ3FA==
|
|
|
|
dependencies:
|
|
|
|
invariant "^2.2.4"
|
|
|
|
|
2020-07-28 11:06:58 +00:00
|
|
|
"@react-native-community/slider@^3.0.0":
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native-community/slider/-/slider-3.0.0.tgz#ffbf78689fc0572fb5c1e2ccb61b2ef074d3dcd2"
|
|
|
|
integrity sha512-deNc3JHBHz24YN+0DTAocXfrYFIFc1DvsIriMJSsJlR/MvsLzoq2+qwaEN+0/LJ37pstv85wZWY0pNugk4e41g==
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native/assets-registry@0.73.1":
|
|
|
|
version "0.73.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/assets-registry/-/assets-registry-0.73.1.tgz#e2a6b73b16c183a270f338dc69c36039b3946e85"
|
|
|
|
integrity sha512-2FgAbU7uKM5SbbW9QptPPZx8N9Ke2L7bsHb+EhAanZjFZunA9PaYtyjUQ1s7HD+zDVqOQIvjkpXSv7Kejd2tqg==
|
|
|
|
|
|
|
|
"@react-native/babel-plugin-codegen@0.73.4":
|
|
|
|
version "0.73.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/babel-plugin-codegen/-/babel-plugin-codegen-0.73.4.tgz#8a2037d5585b41877611498ae66adbf1dddfec1b"
|
|
|
|
integrity sha512-XzRd8MJGo4Zc5KsphDHBYJzS1ryOHg8I2gOZDAUCGcwLFhdyGu1zBNDJYH2GFyDrInn9TzAbRIf3d4O+eltXQQ==
|
|
|
|
dependencies:
|
|
|
|
"@react-native/codegen" "0.73.3"
|
|
|
|
|
|
|
|
"@react-native/babel-preset@0.73.21":
|
|
|
|
version "0.73.21"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/babel-preset/-/babel-preset-0.73.21.tgz#174c16493fa4e311b2f5f0c58d4f3c6a5a68bbea"
|
|
|
|
integrity sha512-WlFttNnySKQMeujN09fRmrdWqh46QyJluM5jdtDNrkl/2Hx6N4XeDUGhABvConeK95OidVO7sFFf7sNebVXogA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/core" "^7.20.0"
|
|
|
|
"@babel/plugin-proposal-async-generator-functions" "^7.0.0"
|
|
|
|
"@babel/plugin-proposal-class-properties" "^7.18.0"
|
|
|
|
"@babel/plugin-proposal-export-default-from" "^7.0.0"
|
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.18.0"
|
|
|
|
"@babel/plugin-proposal-numeric-separator" "^7.0.0"
|
|
|
|
"@babel/plugin-proposal-object-rest-spread" "^7.20.0"
|
|
|
|
"@babel/plugin-proposal-optional-catch-binding" "^7.0.0"
|
|
|
|
"@babel/plugin-proposal-optional-chaining" "^7.20.0"
|
|
|
|
"@babel/plugin-syntax-dynamic-import" "^7.8.0"
|
|
|
|
"@babel/plugin-syntax-export-default-from" "^7.0.0"
|
|
|
|
"@babel/plugin-syntax-flow" "^7.18.0"
|
|
|
|
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0"
|
|
|
|
"@babel/plugin-syntax-optional-chaining" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-arrow-functions" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-async-to-generator" "^7.20.0"
|
|
|
|
"@babel/plugin-transform-block-scoping" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-classes" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-computed-properties" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-destructuring" "^7.20.0"
|
|
|
|
"@babel/plugin-transform-flow-strip-types" "^7.20.0"
|
|
|
|
"@babel/plugin-transform-function-name" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-literals" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-modules-commonjs" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-named-capturing-groups-regex" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-parameters" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-private-methods" "^7.22.5"
|
|
|
|
"@babel/plugin-transform-private-property-in-object" "^7.22.11"
|
|
|
|
"@babel/plugin-transform-react-display-name" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-react-jsx" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-react-jsx-self" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-runtime" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-shorthand-properties" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-spread" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-sticky-regex" "^7.0.0"
|
|
|
|
"@babel/plugin-transform-typescript" "^7.5.0"
|
|
|
|
"@babel/plugin-transform-unicode-regex" "^7.0.0"
|
|
|
|
"@babel/template" "^7.0.0"
|
|
|
|
"@react-native/babel-plugin-codegen" "0.73.4"
|
|
|
|
babel-plugin-transform-flow-enums "^0.0.2"
|
|
|
|
react-refresh "^0.14.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native/codegen@0.73.2":
|
|
|
|
version "0.73.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/codegen/-/codegen-0.73.2.tgz#58af4e4c3098f0e6338e88ec64412c014dd51519"
|
|
|
|
integrity sha512-lfy8S7umhE3QLQG5ViC4wg5N1Z+E6RnaeIw8w1voroQsXXGPB72IBozh8dAHR3+ceTxIU0KX3A8OpJI8e1+HpQ==
|
2023-12-11 15:52:23 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/parser" "^7.20.0"
|
|
|
|
flow-parser "^0.206.0"
|
2024-03-22 14:21:44 +00:00
|
|
|
glob "^7.1.1"
|
|
|
|
invariant "^2.2.4"
|
2023-12-11 15:52:23 +00:00
|
|
|
jscodeshift "^0.14.0"
|
2024-03-22 14:21:44 +00:00
|
|
|
mkdirp "^0.5.1"
|
2023-12-11 15:52:23 +00:00
|
|
|
nullthrows "^1.1.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native/codegen@0.73.3":
|
|
|
|
version "0.73.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/codegen/-/codegen-0.73.3.tgz#cc984a8b17334d986cc600254a0d4b7fa7d68a94"
|
|
|
|
integrity sha512-sxslCAAb8kM06vGy9Jyh4TtvjhcP36k/rvj2QE2Jdhdm61KvfafCATSIsOfc0QvnduWFcpXUPvAVyYwuv7PYDg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/parser" "^7.20.0"
|
|
|
|
flow-parser "^0.206.0"
|
|
|
|
glob "^7.1.1"
|
|
|
|
invariant "^2.2.4"
|
|
|
|
jscodeshift "^0.14.0"
|
|
|
|
mkdirp "^0.5.1"
|
|
|
|
nullthrows "^1.1.1"
|
|
|
|
|
|
|
|
"@react-native/community-cli-plugin@0.73.17":
|
|
|
|
version "0.73.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/community-cli-plugin/-/community-cli-plugin-0.73.17.tgz#37b381a8b503a3296eaa6727e0c52ea8835add28"
|
|
|
|
integrity sha512-F3PXZkcHg+1ARIr6FRQCQiB7ZAA+MQXGmq051metRscoLvgYJwj7dgC8pvgy0kexzUkHu5BNKrZeySzUft3xuQ==
|
|
|
|
dependencies:
|
|
|
|
"@react-native-community/cli-server-api" "12.3.6"
|
|
|
|
"@react-native-community/cli-tools" "12.3.6"
|
|
|
|
"@react-native/dev-middleware" "0.73.8"
|
|
|
|
"@react-native/metro-babel-transformer" "0.73.15"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
execa "^5.1.1"
|
|
|
|
metro "^0.80.3"
|
|
|
|
metro-config "^0.80.3"
|
|
|
|
metro-core "^0.80.3"
|
|
|
|
node-fetch "^2.2.0"
|
|
|
|
readline "^1.3.0"
|
|
|
|
|
|
|
|
"@react-native/debugger-frontend@0.73.3":
|
|
|
|
version "0.73.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/debugger-frontend/-/debugger-frontend-0.73.3.tgz#033757614d2ada994c68a1deae78c1dd2ad33c2b"
|
|
|
|
integrity sha512-RgEKnWuoo54dh7gQhV7kvzKhXZEhpF9LlMdZolyhGxHsBqZ2gXdibfDlfcARFFifPIiaZ3lXuOVVa4ei+uPgTw==
|
|
|
|
|
|
|
|
"@react-native/dev-middleware@0.73.8":
|
|
|
|
version "0.73.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/dev-middleware/-/dev-middleware-0.73.8.tgz#2e43722a00c7b8db753f747f40267cbad6caba4d"
|
|
|
|
integrity sha512-oph4NamCIxkMfUL/fYtSsE+JbGOnrlawfQ0kKtDQ5xbOjPKotKoXqrs1eGwozNKv7FfQ393stk1by9a6DyASSg==
|
|
|
|
dependencies:
|
|
|
|
"@isaacs/ttlcache" "^1.4.1"
|
|
|
|
"@react-native/debugger-frontend" "0.73.3"
|
|
|
|
chrome-launcher "^0.15.2"
|
|
|
|
chromium-edge-launcher "^1.0.0"
|
|
|
|
connect "^3.6.5"
|
|
|
|
debug "^2.2.0"
|
|
|
|
node-fetch "^2.2.0"
|
|
|
|
open "^7.0.3"
|
|
|
|
serve-static "^1.13.1"
|
|
|
|
temp-dir "^2.0.0"
|
|
|
|
ws "^6.2.2"
|
|
|
|
|
|
|
|
"@react-native/gradle-plugin@0.73.4":
|
|
|
|
version "0.73.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/gradle-plugin/-/gradle-plugin-0.73.4.tgz#aa55784a8c2b471aa89934db38c090d331baf23b"
|
|
|
|
integrity sha512-PMDnbsZa+tD55Ug+W8CfqXiGoGneSSyrBZCMb5JfiB3AFST3Uj5e6lw8SgI/B6SKZF7lG0BhZ6YHZsRZ5MlXmg==
|
|
|
|
|
|
|
|
"@react-native/js-polyfills@0.73.1":
|
|
|
|
version "0.73.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/js-polyfills/-/js-polyfills-0.73.1.tgz#730b0a7aaab947ae6f8e5aa9d995e788977191ed"
|
|
|
|
integrity sha512-ewMwGcumrilnF87H4jjrnvGZEaPFCAC4ebraEK+CurDDmwST/bIicI4hrOAv+0Z0F7DEK4O4H7r8q9vH7IbN4g==
|
|
|
|
|
|
|
|
"@react-native/metro-babel-transformer@0.73.15":
|
|
|
|
version "0.73.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/metro-babel-transformer/-/metro-babel-transformer-0.73.15.tgz#c516584dde62d65a46668074084359c03e6a50f1"
|
|
|
|
integrity sha512-LlkSGaXCz+xdxc9819plmpsl4P4gZndoFtpjN3GMBIu6f7TBV0GVbyJAU4GE8fuAWPVSVL5ArOcdkWKSbI1klw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/core" "^7.20.0"
|
|
|
|
"@react-native/babel-preset" "0.73.21"
|
|
|
|
hermes-parser "0.15.0"
|
|
|
|
nullthrows "^1.1.1"
|
|
|
|
|
|
|
|
"@react-native/metro-config@0.73.5":
|
|
|
|
version "0.73.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/metro-config/-/metro-config-0.73.5.tgz#791242ca93057d7299ce18379ea11d3bdb368ea9"
|
|
|
|
integrity sha512-3bNWoHzOzP/+qoLJtRhOVXrnxKmSY3i4y5PXyMQlIvvOI/GQbXulPpEZxK/yUrf1MmeXHLLFufFbQWlfDEDoxA==
|
|
|
|
dependencies:
|
|
|
|
"@react-native/js-polyfills" "0.73.1"
|
|
|
|
"@react-native/metro-babel-transformer" "0.73.15"
|
|
|
|
metro-config "^0.80.3"
|
|
|
|
metro-runtime "^0.80.3"
|
|
|
|
|
|
|
|
"@react-native/normalize-colors@0.73.2", "@react-native/normalize-colors@^0.73.0":
|
|
|
|
version "0.73.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/normalize-colors/-/normalize-colors-0.73.2.tgz#cc8e48fbae2bbfff53e12f209369e8d2e4cf34ec"
|
|
|
|
integrity sha512-bRBcb2T+I88aG74LMVHaKms2p/T8aQd8+BZ7LuuzXlRfog1bMWWn/C5i0HVuvW4RPtXQYgIlGiXVDy9Ir1So/w==
|
|
|
|
|
|
|
|
"@react-native/virtualized-lists@0.73.4":
|
|
|
|
version "0.73.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@react-native/virtualized-lists/-/virtualized-lists-0.73.4.tgz#640e594775806f63685435b5d9c3d05c378ccd8c"
|
|
|
|
integrity sha512-HpmLg1FrEiDtrtAbXiwCgXFYyloK/dOIPIuWW3fsqukwJEWAiTzm1nXGJ7xPU5XTHiWZ4sKup5Ebaj8z7iyWog==
|
2023-12-11 15:52:23 +00:00
|
|
|
dependencies:
|
|
|
|
invariant "^2.2.4"
|
|
|
|
nullthrows "^1.1.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
|
|
|
"@sideway/address@^4.1.3":
|
|
|
|
version "4.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0"
|
|
|
|
integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==
|
|
|
|
dependencies:
|
|
|
|
"@hapi/hoek" "^9.0.0"
|
|
|
|
|
|
|
|
"@sideway/formula@^3.0.1":
|
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f"
|
|
|
|
integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==
|
|
|
|
|
|
|
|
"@sideway/pinpoint@^2.0.0":
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
|
|
|
|
integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@sinclair/typebox@^0.24.1":
|
|
|
|
version "0.24.51"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f"
|
|
|
|
integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@sinclair/typebox@^0.27.8":
|
|
|
|
version "0.27.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e"
|
|
|
|
integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
"@sindresorhus/is@^0.14.0":
|
|
|
|
version "0.14.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
|
|
|
|
integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@sinonjs/commons@^1.7.0":
|
|
|
|
version "1.7.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.7.2.tgz#505f55c74e0272b43f6c52d81946bed7058fc0e2"
|
|
|
|
integrity sha512-+DUO6pnp3udV/v2VfUWgaY5BIE1IfT7lLfeDzPVeMT1XKkaAp9LgSI9x5RtrFQoZ9Oi0PgXQQHPaoKu7dCjVxw==
|
|
|
|
dependencies:
|
|
|
|
type-detect "4.0.8"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@sinonjs/commons@^3.0.0":
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.0.tgz#beb434fe875d965265e04722ccfc21df7f755d72"
|
|
|
|
integrity sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==
|
|
|
|
dependencies:
|
|
|
|
type-detect "4.0.8"
|
|
|
|
|
|
|
|
"@sinonjs/fake-timers@^10.0.2":
|
|
|
|
version "10.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz#55fdff1ecab9f354019129daf4df0dd4d923ea66"
|
|
|
|
integrity sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==
|
|
|
|
dependencies:
|
|
|
|
"@sinonjs/commons" "^3.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@stablelib/aead@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/aead/-/aead-1.0.1.tgz#c4b1106df9c23d1b867eb9b276d8f42d5fc4c0c3"
|
|
|
|
integrity sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==
|
|
|
|
|
|
|
|
"@stablelib/binary@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/binary/-/binary-1.0.1.tgz#c5900b94368baf00f811da5bdb1610963dfddf7f"
|
|
|
|
integrity sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/int" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/bytes@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/bytes/-/bytes-1.0.1.tgz#0f4aa7b03df3080b878c7dea927d01f42d6a20d8"
|
|
|
|
integrity sha512-Kre4Y4kdwuqL8BR2E9hV/R5sOrUj6NanZaZis0V6lX5yzqC3hBuVSDXUIBqQv/sCpmuWRiHLwqiT1pqqjuBXoQ==
|
|
|
|
|
|
|
|
"@stablelib/chacha20poly1305@1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.1.tgz#de6b18e283a9cb9b7530d8767f99cde1fec4c2ee"
|
|
|
|
integrity sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/aead" "^1.0.1"
|
|
|
|
"@stablelib/binary" "^1.0.1"
|
|
|
|
"@stablelib/chacha" "^1.0.1"
|
|
|
|
"@stablelib/constant-time" "^1.0.1"
|
|
|
|
"@stablelib/poly1305" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/chacha@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/chacha/-/chacha-1.0.1.tgz#deccfac95083e30600c3f92803a3a1a4fa761371"
|
|
|
|
integrity sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/binary" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/constant-time@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/constant-time/-/constant-time-1.0.1.tgz#bde361465e1cf7b9753061b77e376b0ca4c77e35"
|
|
|
|
integrity sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg==
|
|
|
|
|
|
|
|
"@stablelib/ed25519@^1.0.2":
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/ed25519/-/ed25519-1.0.3.tgz#f8fdeb6f77114897c887bb6a3138d659d3f35996"
|
|
|
|
integrity sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/random" "^1.0.2"
|
|
|
|
"@stablelib/sha512" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/hash@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/hash/-/hash-1.0.1.tgz#3c944403ff2239fad8ebb9015e33e98444058bc5"
|
|
|
|
integrity sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==
|
|
|
|
|
|
|
|
"@stablelib/hkdf@1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/hkdf/-/hkdf-1.0.1.tgz#b4efd47fd56fb43c6a13e8775a54b354f028d98d"
|
|
|
|
integrity sha512-SBEHYE16ZXlHuaW5RcGk533YlBj4grMeg5TooN80W3NpcHRtLZLLXvKyX0qcRFxf+BGDobJLnwkvgEwHIDBR6g==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/hash" "^1.0.1"
|
|
|
|
"@stablelib/hmac" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/hmac@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/hmac/-/hmac-1.0.1.tgz#3d4c1b8cf194cb05d28155f0eed8a299620a07ec"
|
|
|
|
integrity sha512-V2APD9NSnhVpV/QMYgCVMIYKiYG6LSqw1S65wxVoirhU/51ACio6D4yDVSwMzuTJXWZoVHbDdINioBwKy5kVmA==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/constant-time" "^1.0.1"
|
|
|
|
"@stablelib/hash" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/int@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/int/-/int-1.0.1.tgz#75928cc25d59d73d75ae361f02128588c15fd008"
|
|
|
|
integrity sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==
|
|
|
|
|
|
|
|
"@stablelib/keyagreement@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/keyagreement/-/keyagreement-1.0.1.tgz#4612efb0a30989deb437cd352cee637ca41fc50f"
|
|
|
|
integrity sha512-VKL6xBwgJnI6l1jKrBAfn265cspaWBPAPEc62VBQrWHLqVgNRE09gQ/AnOEyKUWrrqfD+xSQ3u42gJjLDdMDQg==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/bytes" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/poly1305@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/poly1305/-/poly1305-1.0.1.tgz#93bfb836c9384685d33d70080718deae4ddef1dc"
|
|
|
|
integrity sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/constant-time" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@stablelib/random@1.0.2", "@stablelib/random@^1.0.1", "@stablelib/random@^1.0.2":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/random/-/random-1.0.2.tgz#2dece393636489bf7e19c51229dd7900eddf742c"
|
|
|
|
integrity sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/binary" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/sha256@1.0.1", "@stablelib/sha256@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/sha256/-/sha256-1.0.1.tgz#77b6675b67f9b0ea081d2e31bda4866297a3ae4f"
|
|
|
|
integrity sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/binary" "^1.0.1"
|
|
|
|
"@stablelib/hash" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/sha512@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/sha512/-/sha512-1.0.1.tgz#6da700c901c2c0ceacbd3ae122a38ac57c72145f"
|
|
|
|
integrity sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/binary" "^1.0.1"
|
|
|
|
"@stablelib/hash" "^1.0.1"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
|
|
|
"@stablelib/wipe@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/wipe/-/wipe-1.0.1.tgz#d21401f1d59ade56a62e139462a97f104ed19a36"
|
|
|
|
integrity sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@stablelib/x25519@1.0.3", "@stablelib/x25519@^1.0.3":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@stablelib/x25519/-/x25519-1.0.3.tgz#13c8174f774ea9f3e5e42213cbf9fc68a3c7b7fd"
|
|
|
|
integrity sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/keyagreement" "^1.0.1"
|
|
|
|
"@stablelib/random" "^1.0.2"
|
|
|
|
"@stablelib/wipe" "^1.0.1"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
"@szmarczak/http-timer@^1.1.2":
|
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
|
|
|
|
integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==
|
|
|
|
dependencies:
|
|
|
|
defer-to-connect "^1.0.1"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@testing-library/jest-native@^5.4.3":
|
|
|
|
version "5.4.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@testing-library/jest-native/-/jest-native-5.4.3.tgz#9334c68eaf45db9eb20d0876728cc5d7fc2c3ea2"
|
|
|
|
integrity sha512-/sSDGaOuE+PJ1Z9Kp4u7PQScSVVXGud59I/qsBFFJvIbcn4P6yYw6cBnBmbPF+X9aRIsTJRDl6gzw5ZkJNm66w==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
|
|
|
chalk "^4.1.2"
|
|
|
|
jest-diff "^29.0.1"
|
|
|
|
jest-matcher-utils "^29.0.1"
|
|
|
|
pretty-format "^29.0.3"
|
|
|
|
redent "^3.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@testing-library/react-native@^12.4.2":
|
|
|
|
version "12.4.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@testing-library/react-native/-/react-native-12.4.2.tgz#1f3e200351ac664ae78169c754c54fe36009a0ef"
|
|
|
|
integrity sha512-6Uu3M+ga1iDgleS55mGBqI1GHjvKu1T0aESSHkT8dL+M3nIZkW8jZ9HqDSj2UohkMA1hlb+7PRxS+EjwllyANA==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-matcher-utils "^29.7.0"
|
|
|
|
pretty-format "^29.7.0"
|
|
|
|
redent "^3.0.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@tsconfig/react-native@^3.0.0":
|
|
|
|
version "3.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@tsconfig/react-native/-/react-native-3.0.2.tgz#f7db242eee4820f5a3d0edcc86c920bb7d9ec0f2"
|
|
|
|
integrity sha512-F7IoHEqf741lut4Z2K+IkWQRvXAhBiZMeY5L7BysG7Z2Z3MlIyFR+AagD8jQ/CqC1vowGnRwfLjeuwIpaeoJxA==
|
|
|
|
|
|
|
|
"@types/babel__core@^7.1.14":
|
|
|
|
version "7.20.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.1.tgz#916ecea274b0c776fec721e333e55762d3a9614b"
|
|
|
|
integrity sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/parser" "^7.20.7"
|
|
|
|
"@babel/types" "^7.20.7"
|
|
|
|
"@types/babel__generator" "*"
|
|
|
|
"@types/babel__template" "*"
|
|
|
|
"@types/babel__traverse" "*"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@types/babel__generator@*":
|
|
|
|
version "7.6.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.1.tgz#4901767b397e8711aeb99df8d396d7ba7b7f0e04"
|
|
|
|
integrity sha512-bBKm+2VPJcMRVwNhxKu8W+5/zT7pwNEqeokFOmbvVSqGzFneNxYcEBro9Ac7/N9tlsaPYnZLK8J1LWKkMsLAew==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.0.0"
|
|
|
|
|
|
|
|
"@types/babel__template@*":
|
|
|
|
version "7.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.0.2.tgz#4ff63d6b52eddac1de7b975a5223ed32ecea9307"
|
|
|
|
integrity sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/parser" "^7.1.0"
|
|
|
|
"@babel/types" "^7.0.0"
|
|
|
|
|
|
|
|
"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6":
|
|
|
|
version "7.0.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.0.10.tgz#d9a99f017317d9b3d1abc2ced45d3bca68df0daf"
|
|
|
|
integrity sha512-74fNdUGrWsgIB/V9kTO5FGHPWYY6Eqn+3Z7L6Hc4e/BxjYV7puvBqp5HwsVYYfLm6iURYBNCx4Ut37OF9yitCw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/types" "^7.3.0"
|
|
|
|
|
|
|
|
"@types/color-name@^1.1.1":
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
|
|
|
|
integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@types/graceful-fs@^4.1.3":
|
|
|
|
version "4.1.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.6.tgz#e14b2576a1c25026b7f02ede1de3b84c3a1efeae"
|
|
|
|
integrity sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==
|
|
|
|
dependencies:
|
|
|
|
"@types/node" "*"
|
|
|
|
|
2020-03-05 07:01:30 +00:00
|
|
|
"@types/hammerjs@^2.0.36":
|
|
|
|
version "2.0.36"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/hammerjs/-/hammerjs-2.0.36.tgz#17ce0a235e9ffbcdcdf5095646b374c2bf615a4c"
|
|
|
|
integrity sha512-7TUK/k2/QGpEAv/BCwSHlYu3NXZhQ9ZwBYpzr9tjlPIL2C5BeGhH3DmVavRx3ZNyELX5TLC91JTz/cen6AAtIQ==
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
"@types/hast@^2.0.0":
|
|
|
|
version "2.3.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/hast/-/hast-2.3.4.tgz#8aa5ef92c117d20d974a82bdfb6a648b08c0bafc"
|
|
|
|
integrity sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==
|
|
|
|
dependencies:
|
|
|
|
"@types/unist" "*"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1":
|
2019-08-06 16:16:51 +00:00
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz#42995b446db9a48a11a07ec083499a860e9138ff"
|
|
|
|
integrity sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==
|
|
|
|
|
|
|
|
"@types/istanbul-lib-report@*":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686"
|
|
|
|
integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
|
|
|
"@types/istanbul-lib-coverage" "*"
|
|
|
|
|
|
|
|
"@types/istanbul-reports@^1.1.1":
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz#7a8cbf6a406f36c8add871625b278eaf0b0d255a"
|
|
|
|
integrity sha512-UpYjBi8xefVChsCoBpKShdxTllC9pwISirfoZsUa2AAdQg/Jd2KQGtSbw+ya7GPo7x/wAPlH6JBhKhAsXUEZNA==
|
|
|
|
dependencies:
|
|
|
|
"@types/istanbul-lib-coverage" "*"
|
|
|
|
"@types/istanbul-lib-report" "*"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/istanbul-reports@^3.0.0":
|
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff"
|
|
|
|
integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==
|
|
|
|
dependencies:
|
|
|
|
"@types/istanbul-lib-report" "*"
|
|
|
|
|
|
|
|
"@types/jest@^28.1.6":
|
|
|
|
version "28.1.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-28.1.8.tgz#6936409f3c9724ea431efd412ea0238a0f03b09b"
|
|
|
|
integrity sha512-8TJkV++s7B6XqnDrzR1m/TT0A0h948Pnl/097veySPN67VRAgQ4gZ7n2KfJo2rVq6njQjdxU3GCCyDvAeuHoiw==
|
|
|
|
dependencies:
|
|
|
|
expect "^28.0.0"
|
|
|
|
pretty-format "^28.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/node@*":
|
2022-11-23 13:59:18 +00:00
|
|
|
version "18.11.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.9.tgz#02d013de7058cea16d36168ef2fc653464cfbad4"
|
|
|
|
integrity sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@types/prop-types@*":
|
|
|
|
version "15.7.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf"
|
|
|
|
integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==
|
|
|
|
|
|
|
|
"@types/react-test-renderer@^18.0.0":
|
|
|
|
version "18.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/react-test-renderer/-/react-test-renderer-18.0.1.tgz#d3f308912fcc4491e4fbc134b906bb65bdee73f6"
|
|
|
|
integrity sha512-LjEF+jTUCjzd+Qq4eWqsmZvEWPA/l4L0my+YWN5US8Fo3wZOMiyrpBshHDFbkO8usjdO1B430mEWNU/i1MF7Qg==
|
|
|
|
dependencies:
|
|
|
|
"@types/react" "*"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@types/react@*":
|
2023-12-11 15:52:23 +00:00
|
|
|
version "18.2.21"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.21.tgz#774c37fd01b522d0b91aed04811b58e4e0514ed9"
|
|
|
|
integrity sha512-neFKG/sBAwGxHgXiIxnbm3/AAVQ/cMRS93hvBpg8xYRbeQSPVABp9U2bRnPf0iI4+Ucdv3plSxKK+3CW2ENJxA==
|
|
|
|
dependencies:
|
|
|
|
"@types/prop-types" "*"
|
|
|
|
"@types/scheduler" "*"
|
|
|
|
csstype "^3.0.2"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
"@types/react@^18.2.6":
|
|
|
|
version "18.2.45"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.45.tgz#253f4fac288e7e751ab3dc542000fb687422c15c"
|
|
|
|
integrity sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==
|
|
|
|
dependencies:
|
|
|
|
"@types/prop-types" "*"
|
|
|
|
"@types/scheduler" "*"
|
|
|
|
csstype "^3.0.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"@types/scheduler@*":
|
|
|
|
version "0.16.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.3.tgz#cef09e3ec9af1d63d2a6cc5b383a737e24e6dcf5"
|
|
|
|
integrity sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
"@types/stack-utils@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
|
|
|
|
integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/stack-utils@^2.0.0":
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
|
|
|
|
integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
"@types/unist@*":
|
|
|
|
version "2.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
|
|
|
|
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
"@types/yargs-parser@*":
|
2019-09-07 12:57:22 +00:00
|
|
|
version "15.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d"
|
|
|
|
integrity sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
"@types/yargs@^15.0.0":
|
|
|
|
version "15.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.4.tgz#7e5d0f8ca25e9d5849f2ea443cf7c402decd8299"
|
|
|
|
integrity sha512-9T1auFmbPZoxHz0enUFlUuKRy3it01R+hlggyVUMtnCTQRunsQYifnSGb8hET4Xo8yiC0o0r1paW3ud5+rbURg==
|
|
|
|
dependencies:
|
|
|
|
"@types/yargs-parser" "*"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/yargs@^17.0.8":
|
|
|
|
version "17.0.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.13.tgz#34cced675ca1b1d51fcf4d34c3c6f0fa142a5c76"
|
|
|
|
integrity sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg==
|
|
|
|
dependencies:
|
|
|
|
"@types/yargs-parser" "*"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/auth-client@2.1.2":
|
|
|
|
version "2.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/auth-client/-/auth-client-2.1.2.tgz#cee304fb0cdca76f6bf4aafac96ef9301862a7e8"
|
|
|
|
integrity sha512-ubJLn+vGb8sTdBFX6xAh4kjR5idrtS3RBngQWaJJJpEPBQmxMb8pM2q0FIRs8Is4K6jKy+uEhusMV+7ZBmTzjw==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/hash" "^5.7.0"
|
|
|
|
"@ethersproject/transactions" "^5.7.0"
|
|
|
|
"@stablelib/random" "^1.0.2"
|
|
|
|
"@stablelib/sha256" "^1.0.1"
|
|
|
|
"@walletconnect/core" "^2.10.1"
|
|
|
|
"@walletconnect/events" "^1.0.1"
|
|
|
|
"@walletconnect/heartbeat" "^1.2.1"
|
|
|
|
"@walletconnect/jsonrpc-utils" "^1.0.8"
|
|
|
|
"@walletconnect/logger" "^2.0.1"
|
|
|
|
"@walletconnect/time" "^1.0.2"
|
|
|
|
"@walletconnect/utils" "^2.10.1"
|
|
|
|
events "^3.3.0"
|
|
|
|
isomorphic-unfetch "^3.1.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/core@2.11.2":
|
|
|
|
version "2.11.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.11.2.tgz#35286be92c645fa461fecc0dfe25de9f076fca8f"
|
|
|
|
integrity sha512-bB4SiXX8hX3/hyBfVPC5gwZCXCl+OPj+/EDVM71iAO3TDsh78KPbrVAbDnnsbHzZVHlsMohtXX3j5XVsheN3+g==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
|
|
|
"@walletconnect/heartbeat" "1.2.1"
|
|
|
|
"@walletconnect/jsonrpc-provider" "1.0.13"
|
|
|
|
"@walletconnect/jsonrpc-types" "1.0.3"
|
|
|
|
"@walletconnect/jsonrpc-utils" "1.0.8"
|
|
|
|
"@walletconnect/jsonrpc-ws-connection" "1.0.14"
|
|
|
|
"@walletconnect/keyvaluestorage" "^1.1.1"
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/logger" "^2.0.1"
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/relay-api" "^1.0.9"
|
|
|
|
"@walletconnect/relay-auth" "^1.0.4"
|
|
|
|
"@walletconnect/safe-json" "^1.0.2"
|
|
|
|
"@walletconnect/time" "^1.0.2"
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/types" "2.11.2"
|
|
|
|
"@walletconnect/utils" "2.11.2"
|
2024-05-08 08:51:45 +00:00
|
|
|
events "^3.3.0"
|
|
|
|
isomorphic-unfetch "3.1.0"
|
|
|
|
lodash.isequal "4.5.0"
|
|
|
|
uint8arrays "^3.1.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/core@^2.10.1":
|
|
|
|
version "2.13.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.13.3.tgz#d98fccefe36c6b365812fd0f7237a0f9634bafb6"
|
|
|
|
integrity sha512-TdF+rC6rONJGyOUtt/nLkbyQWjnkwbD3kXq3ZA0Q7+tYtmSjTDE4wbArlLbHIbtf69g+9/DpEVEQimWWcEOn2g==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/heartbeat" "1.2.2"
|
|
|
|
"@walletconnect/jsonrpc-provider" "1.0.14"
|
|
|
|
"@walletconnect/jsonrpc-types" "1.0.4"
|
|
|
|
"@walletconnect/jsonrpc-utils" "1.0.8"
|
|
|
|
"@walletconnect/jsonrpc-ws-connection" "1.0.14"
|
|
|
|
"@walletconnect/keyvaluestorage" "1.1.1"
|
|
|
|
"@walletconnect/logger" "2.1.2"
|
|
|
|
"@walletconnect/relay-api" "1.0.10"
|
|
|
|
"@walletconnect/relay-auth" "1.0.4"
|
|
|
|
"@walletconnect/safe-json" "1.0.2"
|
|
|
|
"@walletconnect/time" "1.0.2"
|
|
|
|
"@walletconnect/types" "2.13.3"
|
|
|
|
"@walletconnect/utils" "2.13.3"
|
|
|
|
events "3.3.0"
|
|
|
|
isomorphic-unfetch "3.1.0"
|
|
|
|
lodash.isequal "4.5.0"
|
|
|
|
uint8arrays "3.1.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/environment@^1.0.1":
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/environment/-/environment-1.0.1.tgz#1d7f82f0009ab821a2ba5ad5e5a7b8ae3b214cd7"
|
|
|
|
integrity sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==
|
|
|
|
dependencies:
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/events@1.0.1", "@walletconnect/events@^1.0.1":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/events/-/events-1.0.1.tgz#2b5f9c7202019e229d7ccae1369a9e86bda7816c"
|
|
|
|
integrity sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ==
|
|
|
|
dependencies:
|
|
|
|
keyvaluestorage-interface "^1.0.0"
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/heartbeat@1.2.1":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz#afaa3a53232ae182d7c9cff41c1084472d8f32e9"
|
|
|
|
integrity sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/events" "^1.0.1"
|
|
|
|
"@walletconnect/time" "^1.0.2"
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/heartbeat@1.2.2", "@walletconnect/heartbeat@^1.2.1":
|
|
|
|
version "1.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/heartbeat/-/heartbeat-1.2.2.tgz#e8dc5179db7769950c6f9cf59b23516d9b95227d"
|
|
|
|
integrity sha512-uASiRmC5MwhuRuf05vq4AT48Pq8RMi876zV8rr8cV969uTOzWdB/k+Lj5yI2PBtB1bGQisGen7MM1GcZlQTBXw==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/events" "^1.0.1"
|
|
|
|
"@walletconnect/time" "^1.0.2"
|
|
|
|
events "^3.3.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/jsonrpc-provider@1.0.13":
|
|
|
|
version "1.0.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.13.tgz#9a74da648d015e1fffc745f0c7d629457f53648b"
|
|
|
|
integrity sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/jsonrpc-utils" "^1.0.8"
|
|
|
|
"@walletconnect/safe-json" "^1.0.2"
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/jsonrpc-provider@1.0.14":
|
|
|
|
version "1.0.14"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-provider/-/jsonrpc-provider-1.0.14.tgz#696f3e3b6d728b361f2e8b853cfc6afbdf2e4e3e"
|
|
|
|
integrity sha512-rtsNY1XqHvWj0EtITNeuf8PHMvlCLiS3EjQL+WOkxEOA4KPxsohFnBDeyPYiNm4ZvkQdLnece36opYidmtbmow==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/jsonrpc-utils" "^1.0.8"
|
|
|
|
"@walletconnect/safe-json" "^1.0.2"
|
|
|
|
events "^3.3.0"
|
|
|
|
|
|
|
|
"@walletconnect/jsonrpc-types@1.0.3":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz#65e3b77046f1a7fa8347ae02bc1b841abe6f290c"
|
|
|
|
integrity sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==
|
|
|
|
dependencies:
|
|
|
|
keyvaluestorage-interface "^1.0.0"
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/jsonrpc-types@1.0.4", "@walletconnect/jsonrpc-types@^1.0.2", "@walletconnect/jsonrpc-types@^1.0.3":
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.4.tgz#ce1a667d79eadf2a2d9d002c152ceb68739c230c"
|
|
|
|
integrity sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==
|
|
|
|
dependencies:
|
|
|
|
events "^3.3.0"
|
|
|
|
keyvaluestorage-interface "^1.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/jsonrpc-utils@1.0.8", "@walletconnect/jsonrpc-utils@^1.0.6", "@walletconnect/jsonrpc-utils@^1.0.8":
|
|
|
|
version "1.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-utils/-/jsonrpc-utils-1.0.8.tgz#82d0cc6a5d6ff0ecc277cb35f71402c91ad48d72"
|
|
|
|
integrity sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/environment" "^1.0.1"
|
|
|
|
"@walletconnect/jsonrpc-types" "^1.0.3"
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
|
|
|
"@walletconnect/jsonrpc-ws-connection@1.0.14":
|
|
|
|
version "1.0.14"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.14.tgz#eec700e74766c7887de2bd76c91a0206628732aa"
|
|
|
|
integrity sha512-Jsl6fC55AYcbkNVkwNM6Jo+ufsuCQRqViOQ8ZBPH9pRREHH9welbBiszuTLqEJiQcO/6XfFDl6bzCJIkrEi8XA==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/jsonrpc-utils" "^1.0.6"
|
|
|
|
"@walletconnect/safe-json" "^1.0.2"
|
|
|
|
events "^3.3.0"
|
|
|
|
ws "^7.5.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/keyvaluestorage@1.1.1", "@walletconnect/keyvaluestorage@^1.1.1":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz#dd2caddabfbaf80f6b8993a0704d8b83115a1842"
|
|
|
|
integrity sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/safe-json" "^1.0.1"
|
|
|
|
idb-keyval "^6.2.1"
|
|
|
|
unstorage "^1.9.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/logger@2.0.1":
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/logger/-/logger-2.0.1.tgz#7f489b96e9a1ff6bf3e58f0fbd6d69718bf844a8"
|
|
|
|
integrity sha512-SsTKdsgWm+oDTBeNE/zHxxr5eJfZmE9/5yp/Ku+zJtcTAjELb3DXueWkDXmE9h8uHIbJzIb5wj5lPdzyrjT6hQ==
|
|
|
|
dependencies:
|
|
|
|
pino "7.11.0"
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
|
|
|
"@walletconnect/logger@2.1.2", "@walletconnect/logger@^2.0.1":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "2.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/logger/-/logger-2.1.2.tgz#813c9af61b96323a99f16c10089bfeb525e2a272"
|
|
|
|
integrity sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/safe-json" "^1.0.2"
|
|
|
|
pino "7.11.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/react-native-compat@2.11.2":
|
|
|
|
version "2.11.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/react-native-compat/-/react-native-compat-2.11.2.tgz#bd0d3ab77589050fb4cb750261e257455c09af46"
|
|
|
|
integrity sha512-Ozz0vPyWDBIKQfjHEwt3OKK6EslDMaTUVpgOaGfZjQ8gw/vuOnYOybn1IpgAQjuPfIQSkPebtE36dxlJyGPzOg==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
|
|
|
events "3.3.0"
|
|
|
|
fast-text-encoding "^1.0.6"
|
|
|
|
react-native-url-polyfill "^2.0.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/relay-api@1.0.10", "@walletconnect/relay-api@^1.0.9":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/relay-api/-/relay-api-1.0.10.tgz#5aef3cd07c21582b968136179aa75849dcc65499"
|
|
|
|
integrity sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/jsonrpc-types" "^1.0.2"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/relay-auth@1.0.4", "@walletconnect/relay-auth@^1.0.4":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/relay-auth/-/relay-auth-1.0.4.tgz#0b5c55c9aa3b0ef61f526ce679f3ff8a5c4c2c7c"
|
|
|
|
integrity sha512-kKJcS6+WxYq5kshpPaxGHdwf5y98ZwbfuS4EE/NkQzqrDFm5Cj+dP8LofzWvjrrLkZq7Afy7WrQMXdLy8Sx7HQ==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/ed25519" "^1.0.2"
|
|
|
|
"@stablelib/random" "^1.0.1"
|
|
|
|
"@walletconnect/safe-json" "^1.0.1"
|
|
|
|
"@walletconnect/time" "^1.0.2"
|
|
|
|
tslib "1.14.1"
|
|
|
|
uint8arrays "^3.0.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/safe-json@1.0.2", "@walletconnect/safe-json@^1.0.1", "@walletconnect/safe-json@^1.0.2":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/safe-json/-/safe-json-1.0.2.tgz#7237e5ca48046e4476154e503c6d3c914126fa77"
|
|
|
|
integrity sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==
|
|
|
|
dependencies:
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/sign-client@2.11.2":
|
|
|
|
version "2.11.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.11.2.tgz#855609653855f0d23b0502cdbdcf43402e34c459"
|
|
|
|
integrity sha512-MfBcuSz2GmMH+P7MrCP46mVE5qhP0ZyWA0FyIH6/WuxQ6G+MgKsGfaITqakpRPsykWOJq8tXMs3XvUPDU413OQ==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/core" "2.11.2"
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/events" "^1.0.1"
|
|
|
|
"@walletconnect/heartbeat" "1.2.1"
|
|
|
|
"@walletconnect/jsonrpc-utils" "1.0.8"
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/logger" "^2.0.1"
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/time" "^1.0.2"
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/types" "2.11.2"
|
|
|
|
"@walletconnect/utils" "2.11.2"
|
2024-05-08 08:51:45 +00:00
|
|
|
events "^3.3.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/time@1.0.2", "@walletconnect/time@^1.0.2":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/time/-/time-1.0.2.tgz#6c5888b835750ecb4299d28eecc5e72c6d336523"
|
|
|
|
integrity sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==
|
|
|
|
dependencies:
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/types@2.11.2":
|
|
|
|
version "2.11.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.11.2.tgz#d0359dd4106fcaa1634241a00428d3ea08d0d3c7"
|
|
|
|
integrity sha512-p632MFB+lJbip2cvtXPBQslpUdiw1sDtQ5y855bOlAGquay+6fZ4h1DcDePeKQDQM3P77ax2a9aNPZxV6y/h1Q==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
|
|
|
"@walletconnect/events" "^1.0.1"
|
|
|
|
"@walletconnect/heartbeat" "1.2.1"
|
|
|
|
"@walletconnect/jsonrpc-types" "1.0.3"
|
|
|
|
"@walletconnect/keyvaluestorage" "^1.1.1"
|
|
|
|
"@walletconnect/logger" "^2.0.1"
|
|
|
|
events "^3.3.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/types@2.13.3":
|
|
|
|
version "2.13.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.13.3.tgz#0280b5c64df9a2e07752c4121eeb81dc4a59b2c2"
|
|
|
|
integrity sha512-9UdtLoQqwGFfepCPprUAXeUbKg9zyDarPRmEJVco51OWXHCOpvRgroWk54fQHDhCUIfDELjObY6XNAzNrmNYUA==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/events" "1.0.1"
|
|
|
|
"@walletconnect/heartbeat" "1.2.2"
|
|
|
|
"@walletconnect/jsonrpc-types" "1.0.4"
|
|
|
|
"@walletconnect/keyvaluestorage" "1.1.1"
|
|
|
|
"@walletconnect/logger" "2.1.2"
|
|
|
|
events "3.3.0"
|
|
|
|
|
|
|
|
"@walletconnect/utils@2.11.2":
|
|
|
|
version "2.11.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.11.2.tgz#dee0f19adf5e38543612cbe9fa4de7ed28eb7e85"
|
|
|
|
integrity sha512-LyfdmrnZY6dWqlF4eDrx5jpUwsB2bEPjoqR5Z6rXPiHJKUOdJt7az+mNOn5KTSOlRpd1DmozrBrWr+G9fFLYVw==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
|
|
|
"@stablelib/chacha20poly1305" "1.0.1"
|
|
|
|
"@stablelib/hkdf" "1.0.1"
|
|
|
|
"@stablelib/random" "^1.0.2"
|
|
|
|
"@stablelib/sha256" "1.0.1"
|
|
|
|
"@stablelib/x25519" "^1.0.3"
|
|
|
|
"@walletconnect/relay-api" "^1.0.9"
|
|
|
|
"@walletconnect/safe-json" "^1.0.2"
|
|
|
|
"@walletconnect/time" "^1.0.2"
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/types" "2.11.2"
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/window-getters" "^1.0.1"
|
|
|
|
"@walletconnect/window-metadata" "^1.0.1"
|
|
|
|
detect-browser "5.3.0"
|
|
|
|
query-string "7.1.3"
|
|
|
|
uint8arrays "^3.1.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/utils@2.13.3", "@walletconnect/utils@^2.10.1":
|
|
|
|
version "2.13.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.13.3.tgz#500d88342c193ce92ab9d2fae3bd343be71821b2"
|
|
|
|
integrity sha512-hjyyNhnhTCezGNr6OCfKRzqRsiak+p+YP57iRo1Tsf222fsj/9JD++MP97YiDwc4e4xXaZp/boiLB+8hJHsCog==
|
|
|
|
dependencies:
|
|
|
|
"@stablelib/chacha20poly1305" "1.0.1"
|
|
|
|
"@stablelib/hkdf" "1.0.1"
|
|
|
|
"@stablelib/random" "1.0.2"
|
|
|
|
"@stablelib/sha256" "1.0.1"
|
|
|
|
"@stablelib/x25519" "1.0.3"
|
|
|
|
"@walletconnect/relay-api" "1.0.10"
|
|
|
|
"@walletconnect/safe-json" "1.0.2"
|
|
|
|
"@walletconnect/time" "1.0.2"
|
|
|
|
"@walletconnect/types" "2.13.3"
|
|
|
|
"@walletconnect/window-getters" "1.0.1"
|
|
|
|
"@walletconnect/window-metadata" "1.0.1"
|
|
|
|
detect-browser "5.3.0"
|
|
|
|
query-string "7.1.3"
|
|
|
|
uint8arrays "3.1.0"
|
|
|
|
|
|
|
|
"@walletconnect/web3wallet@1.10.2":
|
|
|
|
version "1.10.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/web3wallet/-/web3wallet-1.10.2.tgz#5887642773e6e1b88d1bfb159a00ec45b31f762a"
|
|
|
|
integrity sha512-FbWsJwhihppl6poJ0+0WCkjXZDVdb11KJiS/AJt+qyNheIKQ7z6NfCnCnnKPBEpNNoUPclcFo4b/BmdFo2YlMw==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
|
|
|
"@walletconnect/auth-client" "2.1.2"
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/core" "2.11.2"
|
2024-05-08 08:51:45 +00:00
|
|
|
"@walletconnect/jsonrpc-provider" "1.0.13"
|
|
|
|
"@walletconnect/jsonrpc-utils" "1.0.8"
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/logger" "2.0.1"
|
|
|
|
"@walletconnect/sign-client" "2.11.2"
|
|
|
|
"@walletconnect/types" "2.11.2"
|
|
|
|
"@walletconnect/utils" "2.11.2"
|
2024-05-08 08:51:45 +00:00
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/window-getters@1.0.1", "@walletconnect/window-getters@^1.0.1":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/window-getters/-/window-getters-1.0.1.tgz#f36d1c72558a7f6b87ecc4451fc8bd44f63cbbdc"
|
|
|
|
integrity sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==
|
|
|
|
dependencies:
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
"@walletconnect/window-metadata@1.0.1", "@walletconnect/window-metadata@^1.0.1":
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/@walletconnect/window-metadata/-/window-metadata-1.0.1.tgz#2124f75447b7e989e4e4e1581d55d25bc75f7be5"
|
|
|
|
integrity sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==
|
|
|
|
dependencies:
|
|
|
|
"@walletconnect/window-getters" "^1.0.1"
|
|
|
|
tslib "1.14.1"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
abbrev@1:
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
|
|
|
|
integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
abort-controller@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392"
|
|
|
|
integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==
|
|
|
|
dependencies:
|
|
|
|
event-target-shim "^5.0.0"
|
|
|
|
|
2020-03-05 07:01:30 +00:00
|
|
|
abs-svg-path@^0.1.1:
|
|
|
|
version "0.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/abs-svg-path/-/abs-svg-path-0.1.1.tgz#df601c8e8d2ba10d4a76d625e236a9a39c2723bf"
|
|
|
|
integrity sha1-32Acjo0roQ1KdtYl4japo5wnI78=
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.7:
|
|
|
|
version "1.3.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e"
|
|
|
|
integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
mime-types "~2.1.34"
|
|
|
|
negotiator "0.6.3"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
acorn@^8.11.3:
|
2024-07-01 12:31:58 +00:00
|
|
|
version "8.12.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.0.tgz#1627bfa2e058148036133b8d9b51a700663c294c"
|
|
|
|
integrity sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==
|
2024-05-08 08:51:45 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
acorn@^8.8.2:
|
|
|
|
version "8.10.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5"
|
|
|
|
integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
aes-js@3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d"
|
|
|
|
integrity sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
agent-base@6:
|
|
|
|
version "6.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77"
|
|
|
|
integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==
|
|
|
|
dependencies:
|
|
|
|
debug "4"
|
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
anser@^1.4.9:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "1.4.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/anser/-/anser-1.4.10.tgz#befa3eddf282684bd03b63dcda3927aef8c2e35b"
|
|
|
|
integrity sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==
|
2020-05-01 07:20:06 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
ansi-align@^3.0.0:
|
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59"
|
|
|
|
integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==
|
|
|
|
dependencies:
|
|
|
|
string-width "^4.1.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
ansi-escapes@^4.2.1:
|
|
|
|
version "4.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61"
|
|
|
|
integrity sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==
|
|
|
|
dependencies:
|
|
|
|
type-fest "^0.11.0"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
ansi-fragments@^0.2.1:
|
|
|
|
version "0.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-fragments/-/ansi-fragments-0.2.1.tgz#24409c56c4cc37817c3d7caa99d8969e2de5a05e"
|
|
|
|
integrity sha512-DykbNHxuXQwUDRv5ibc2b0x7uw7wmwOGLBUd5RmaQ5z8Lhx19vwvKV+FAsM5rEA6dEcHxX+/Ad5s9eF2k2bB+w==
|
|
|
|
dependencies:
|
|
|
|
colorette "^1.0.7"
|
|
|
|
slice-ansi "^2.0.0"
|
|
|
|
strip-ansi "^5.0.0"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
ansi-regex@^2.0.0:
|
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
|
|
|
|
integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8=
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
ansi-regex@^4.1.0:
|
2019-07-03 19:00:51 +00:00
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997"
|
|
|
|
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
ansi-regex@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75"
|
|
|
|
integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
ansi-regex@^5.0.1:
|
|
|
|
version "5.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
|
|
|
|
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
ansi-styles@^2.2.1:
|
|
|
|
version "2.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
|
|
|
|
integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
ansi-styles@^3.2.0, ansi-styles@^3.2.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "3.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
|
|
|
|
integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==
|
|
|
|
dependencies:
|
|
|
|
color-convert "^1.9.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
ansi-styles@^4.0.0, ansi-styles@^4.1.0:
|
|
|
|
version "4.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359"
|
|
|
|
integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==
|
|
|
|
dependencies:
|
|
|
|
"@types/color-name" "^1.1.1"
|
|
|
|
color-convert "^2.0.1"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
ansi-styles@^5.0.0:
|
|
|
|
version "5.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b"
|
|
|
|
integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
anymatch@^3.0.3:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142"
|
|
|
|
integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==
|
|
|
|
dependencies:
|
|
|
|
normalize-path "^3.0.0"
|
|
|
|
picomatch "^2.0.4"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
anymatch@^3.1.3:
|
|
|
|
version "3.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e"
|
|
|
|
integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
|
|
|
|
dependencies:
|
|
|
|
normalize-path "^3.0.0"
|
|
|
|
picomatch "^2.0.4"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
anymatch@~3.1.2:
|
|
|
|
version "3.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716"
|
|
|
|
integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==
|
|
|
|
dependencies:
|
|
|
|
normalize-path "^3.0.0"
|
|
|
|
picomatch "^2.0.4"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
appdirsjs@^1.2.4:
|
|
|
|
version "1.2.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/appdirsjs/-/appdirsjs-1.2.7.tgz#50b4b7948a26ba6090d4aede2ae2dc2b051be3b3"
|
|
|
|
integrity sha512-Quji6+8kLBC3NnBeo14nPDq0+2jUs5s3/xEye+udFHumHhRk4M7aAMXp/PBJqkKYGuuyR9M/6Dq7d2AViiGmhw==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
append-transform@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab"
|
|
|
|
integrity sha512-P009oYkeHyU742iSZJzZZywj4QRJdnTWffaKuJQLablCZ1uz6/cW4yaRgcDaoQ+uwOxxnt0gRUcwfsNP2ri0gw==
|
|
|
|
dependencies:
|
|
|
|
default-require-extensions "^2.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
"aproba@^1.0.3 || ^2.0.0":
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc"
|
|
|
|
integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
archy@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40"
|
|
|
|
integrity sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
are-we-there-yet@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c"
|
|
|
|
integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==
|
|
|
|
dependencies:
|
|
|
|
delegates "^1.0.0"
|
|
|
|
readable-stream "^3.6.0"
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
argparse@^1.0.7:
|
|
|
|
version "1.0.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
|
|
|
|
integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
|
|
|
|
dependencies:
|
|
|
|
sprintf-js "~1.0.2"
|
|
|
|
|
2024-04-02 11:02:54 +00:00
|
|
|
asap@~2.0.6:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
|
|
|
|
integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
asn1.js@^5.2.0:
|
|
|
|
version "5.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-5.4.1.tgz#11a980b84ebb91781ce35b0fdc2ee294e3783f07"
|
|
|
|
integrity sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
bn.js "^4.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
minimalistic-assert "^1.0.0"
|
2020-07-09 10:13:28 +00:00
|
|
|
safer-buffer "^2.1.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
assert@^1.1.1, assert@^1.4.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/assert/-/assert-1.5.0.tgz#55c109aaf6e0aefdb3dc4b71240c70bf574b18eb"
|
|
|
|
integrity sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==
|
|
|
|
dependencies:
|
|
|
|
object-assign "^4.1.1"
|
|
|
|
util "0.10.3"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
ast-types@0.15.2:
|
|
|
|
version "0.15.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.15.2.tgz#39ae4809393c4b16df751ee563411423e85fb49d"
|
|
|
|
integrity sha512-c27loCv9QkZinsa5ProX751khO9DJl/AcB5c2KNtA6NRvHKS0PgLfcftz72KVq504vB0Gku5s2kUZzDBvQWvHg==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
|
|
|
tslib "^2.0.1"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
astral-regex@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
|
|
|
|
integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
async-limiter@~1.0.0:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd"
|
|
|
|
integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
async@^2.6.3:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "2.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff"
|
|
|
|
integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-05 18:21:37 +00:00
|
|
|
lodash "^4.17.14"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
asynckit@^0.4.0:
|
|
|
|
version "0.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
atomic-sleep@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/atomic-sleep/-/atomic-sleep-1.0.0.tgz#eb85b77a601fc932cfe432c5acd364a9e2c9075b"
|
|
|
|
integrity sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
babel-core@^7.0.0-bridge.0:
|
|
|
|
version "7.0.0-bridge.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"
|
|
|
|
integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
babel-jest@^29.6.3, babel-jest@^29.7.0:
|
2023-12-11 15:52:23 +00:00
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5"
|
|
|
|
integrity sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==
|
2019-07-05 12:21:00 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/transform" "^29.7.0"
|
|
|
|
"@types/babel__core" "^7.1.14"
|
|
|
|
babel-plugin-istanbul "^6.1.1"
|
|
|
|
babel-preset-jest "^29.6.3"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
slash "^3.0.0"
|
2019-07-05 12:21:00 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
babel-plugin-istanbul@^6.1.1:
|
|
|
|
version "6.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73"
|
|
|
|
integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-plugin-utils" "^7.0.0"
|
|
|
|
"@istanbuljs/load-nyc-config" "^1.0.0"
|
|
|
|
"@istanbuljs/schema" "^0.1.2"
|
|
|
|
istanbul-lib-instrument "^5.0.4"
|
|
|
|
test-exclude "^6.0.0"
|
|
|
|
|
|
|
|
babel-plugin-jest-hoist@^29.6.3:
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz#aadbe943464182a8922c3c927c3067ff40d24626"
|
|
|
|
integrity sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/template" "^7.3.3"
|
|
|
|
"@babel/types" "^7.3.3"
|
|
|
|
"@types/babel__core" "^7.1.14"
|
|
|
|
"@types/babel__traverse" "^7.0.6"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
babel-plugin-polyfill-corejs2@^0.3.3:
|
|
|
|
version "0.3.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz#5d1bd3836d0a19e1b84bbf2d9640ccb6f951c122"
|
|
|
|
integrity sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/compat-data" "^7.17.7"
|
|
|
|
"@babel/helper-define-polyfill-provider" "^0.3.3"
|
|
|
|
semver "^6.1.1"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
babel-plugin-polyfill-corejs2@^0.4.5:
|
|
|
|
version "0.4.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.5.tgz#8097b4cb4af5b64a1d11332b6fb72ef5e64a054c"
|
|
|
|
integrity sha512-19hwUH5FKl49JEsvyTcoHakh6BE0wgXLLptIyKZ3PijHc/Ci521wygORCUCCred+E/twuqRyAkE02BAWPmsHOg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/compat-data" "^7.22.6"
|
|
|
|
"@babel/helper-define-polyfill-provider" "^0.4.2"
|
|
|
|
semver "^6.3.1"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
babel-plugin-polyfill-corejs3@^0.6.0:
|
|
|
|
version "0.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz#56ad88237137eade485a71b52f72dbed57c6230a"
|
|
|
|
integrity sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/helper-define-polyfill-provider" "^0.3.3"
|
|
|
|
core-js-compat "^3.25.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
babel-plugin-polyfill-corejs3@^0.8.3:
|
|
|
|
version "0.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.3.tgz#b4f719d0ad9bb8e0c23e3e630c0c8ec6dd7a1c52"
|
|
|
|
integrity sha512-z41XaniZL26WLrvjy7soabMXrfPWARN25PZoriDEiLMxAp50AUW3t35BGQUMg5xK3UrpVTtagIDklxYa+MhiNA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-define-polyfill-provider" "^0.4.2"
|
|
|
|
core-js-compat "^3.31.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
babel-plugin-polyfill-regenerator@^0.4.1:
|
|
|
|
version "0.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz#390f91c38d90473592ed43351e801a9d3e0fd747"
|
|
|
|
integrity sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-define-polyfill-provider" "^0.3.3"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
babel-plugin-polyfill-regenerator@^0.5.2:
|
|
|
|
version "0.5.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.2.tgz#80d0f3e1098c080c8b5a65f41e9427af692dc326"
|
|
|
|
integrity sha512-tAlOptU0Xj34V1Y2PNTL4Y0FOJMDB6bZmoW39FeCQIhigGLkqu3Fj6uiXpxIf6Ij274ENdYx64y6Au+ZKlb1IA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/helper-define-polyfill-provider" "^0.4.2"
|
|
|
|
|
|
|
|
babel-plugin-transform-flow-enums@^0.0.2:
|
|
|
|
version "0.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.2.tgz#d1d0cc9bdc799c850ca110d0ddc9f21b9ec3ef25"
|
|
|
|
integrity sha512-g4aaCrDDOsWjbm0PUUeVnkcVd6AKJsVc/MbnPhEotEpkeJQP6b8nzewohQi7+QS8UyPehOhGWn0nOwjvWpmMvQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/plugin-syntax-flow" "^7.12.1"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
babel-preset-current-node-syntax@^1.0.0:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b"
|
|
|
|
integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/plugin-syntax-async-generators" "^7.8.4"
|
|
|
|
"@babel/plugin-syntax-bigint" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-class-properties" "^7.8.3"
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/plugin-syntax-import-meta" "^7.8.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
"@babel/plugin-syntax-json-strings" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-logical-assignment-operators" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-numeric-separator" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
|
|
|
|
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/plugin-syntax-top-level-await" "^7.8.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
babel-preset-jest@^29.6.3:
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz#fa05fa510e7d493896d7b0dd2033601c840f171c"
|
|
|
|
integrity sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==
|
|
|
|
dependencies:
|
|
|
|
babel-plugin-jest-hoist "^29.6.3"
|
|
|
|
babel-preset-current-node-syntax "^1.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
balanced-match@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
|
|
|
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
|
|
|
|
|
2022-01-24 13:18:01 +00:00
|
|
|
base-64@0.1.0, base-64@^0.1.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "0.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb"
|
|
|
|
integrity sha1-eAqZyE59YAJgNhURxId2E78k9rs=
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
base-64@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/base-64/-/base-64-1.0.0.tgz#09d0f2084e32a3fd08c2475b973788eee6ae8f4a"
|
|
|
|
integrity sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
base64-js@^1.0.2:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "1.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1"
|
|
|
|
integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
base64-js@^1.3.1, base64-js@^1.5.1:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "1.5.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
|
|
|
|
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
bech32@1.1.4:
|
|
|
|
version "1.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9"
|
|
|
|
integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
big-integer@1.6.51:
|
|
|
|
version "1.6.51"
|
|
|
|
resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.51.tgz#0df92a5d9880560d3ff2d5fd20245c889d130686"
|
|
|
|
integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==
|
|
|
|
|
2022-01-05 13:32:02 +00:00
|
|
|
"bignumber.js@git+https://github.com/status-im/bignumber.js.git#refs/tags/v4.0.2-status":
|
2018-11-28 18:02:20 +00:00
|
|
|
version "4.0.2"
|
2018-12-09 14:58:03 +00:00
|
|
|
resolved "git+https://github.com/status-im/bignumber.js.git#cc066a0a3d6bfe0c436c9957f4ea8344bf963c89"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
binary-extensions@^2.0.0:
|
|
|
|
version "2.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
|
|
|
|
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
bl@^4.1.0:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a"
|
|
|
|
integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==
|
|
|
|
dependencies:
|
|
|
|
buffer "^5.5.0"
|
|
|
|
inherits "^2.0.4"
|
|
|
|
readable-stream "^3.4.0"
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.4.0:
|
|
|
|
version "4.11.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828"
|
|
|
|
integrity sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
bn.js@^4.11.9:
|
|
|
|
version "4.12.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88"
|
|
|
|
integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
bn.js@^5.1.1:
|
|
|
|
version "5.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.1.3.tgz#beca005408f642ebebea80b042b4d18d2ac0ee6b"
|
|
|
|
integrity sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
bn.js@^5.2.1:
|
|
|
|
version "5.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70"
|
|
|
|
integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==
|
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
boolbase@^1.0.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
|
|
|
|
integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24=
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
boxen@^5.0.0:
|
|
|
|
version "5.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50"
|
|
|
|
integrity sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==
|
|
|
|
dependencies:
|
|
|
|
ansi-align "^3.0.0"
|
|
|
|
camelcase "^6.2.0"
|
|
|
|
chalk "^4.1.0"
|
|
|
|
cli-boxes "^2.2.1"
|
|
|
|
string-width "^4.2.2"
|
|
|
|
type-fest "^0.20.2"
|
|
|
|
widest-line "^3.1.0"
|
|
|
|
wrap-ansi "^7.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
brace-expansion@^1.1.7:
|
|
|
|
version "1.1.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
|
|
|
|
integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
|
|
|
|
dependencies:
|
|
|
|
balanced-match "^1.0.0"
|
|
|
|
concat-map "0.0.1"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
braces@^3.0.1, braces@^3.0.2, braces@~3.0.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
|
|
|
|
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
|
|
|
|
dependencies:
|
|
|
|
fill-range "^7.0.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
braces@^3.0.3:
|
|
|
|
version "3.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
|
|
|
|
integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
|
|
|
|
dependencies:
|
|
|
|
fill-range "^7.1.1"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
brorand@^1.0.1, brorand@^1.1.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
|
|
|
|
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
browserify-aes@^1.0.0, browserify-aes@^1.0.4:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48"
|
|
|
|
integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==
|
|
|
|
dependencies:
|
|
|
|
buffer-xor "^1.0.3"
|
|
|
|
cipher-base "^1.0.0"
|
|
|
|
create-hash "^1.1.0"
|
|
|
|
evp_bytestokey "^1.0.3"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
safe-buffer "^5.0.1"
|
|
|
|
|
|
|
|
browserify-cipher@^1.0.0:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0"
|
|
|
|
integrity sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==
|
|
|
|
dependencies:
|
|
|
|
browserify-aes "^1.0.4"
|
|
|
|
browserify-des "^1.0.0"
|
|
|
|
evp_bytestokey "^1.0.0"
|
|
|
|
|
|
|
|
browserify-des@^1.0.0:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c"
|
|
|
|
integrity sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==
|
|
|
|
dependencies:
|
|
|
|
cipher-base "^1.0.1"
|
|
|
|
des.js "^1.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
safe-buffer "^5.1.2"
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
browserify-rsa@^4.0.0, browserify-rsa@^4.0.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "4.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524"
|
|
|
|
integrity sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=
|
|
|
|
dependencies:
|
|
|
|
bn.js "^4.1.0"
|
|
|
|
randombytes "^2.0.1"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
browserify-sign@^4.0.0, browserify-sign@^4.0.4:
|
2020-07-09 10:13:28 +00:00
|
|
|
version "4.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.2.1.tgz#eaf4add46dd54be3bb3b36c0cf15abbeba7956c3"
|
|
|
|
integrity sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==
|
|
|
|
dependencies:
|
|
|
|
bn.js "^5.1.1"
|
|
|
|
browserify-rsa "^4.0.1"
|
|
|
|
create-hash "^1.2.0"
|
|
|
|
create-hmac "^1.1.7"
|
|
|
|
elliptic "^6.5.3"
|
|
|
|
inherits "^2.0.4"
|
|
|
|
parse-asn1 "^5.1.5"
|
|
|
|
readable-stream "^3.6.0"
|
|
|
|
safe-buffer "^5.2.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
|
|
|
browserify-zlib@^0.2.0:
|
|
|
|
version "0.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f"
|
|
|
|
integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==
|
|
|
|
dependencies:
|
|
|
|
pako "~1.0.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
browserslist@^4.21.10, browserslist@^4.21.9:
|
|
|
|
version "4.21.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.10.tgz#dbbac576628c13d3b2231332cb2ec5a46e015bb0"
|
|
|
|
integrity sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
caniuse-lite "^1.0.30001517"
|
|
|
|
electron-to-chromium "^1.4.477"
|
|
|
|
node-releases "^2.0.13"
|
|
|
|
update-browserslist-db "^1.0.11"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
browserslist@^4.21.3, browserslist@^4.21.5:
|
|
|
|
version "4.21.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.5.tgz#75c5dae60063ee641f977e00edd3cfb2fb7af6a7"
|
|
|
|
integrity sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==
|
|
|
|
dependencies:
|
|
|
|
caniuse-lite "^1.0.30001449"
|
|
|
|
electron-to-chromium "^1.4.284"
|
|
|
|
node-releases "^2.0.8"
|
|
|
|
update-browserslist-db "^1.0.10"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
bser@2.1.1:
|
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05"
|
|
|
|
integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
node-int64 "^0.4.0"
|
|
|
|
|
2023-10-08 23:42:58 +00:00
|
|
|
buffer-from@^1.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
|
|
|
|
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
buffer-xor@^1.0.3:
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9"
|
|
|
|
integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
buffer@^4.3.0, buffer@^4.9.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "4.9.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.2.tgz#230ead344002988644841ab0244af8c44bbe3ef8"
|
|
|
|
integrity sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==
|
|
|
|
dependencies:
|
|
|
|
base64-js "^1.0.2"
|
|
|
|
ieee754 "^1.1.4"
|
|
|
|
isarray "^1.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
buffer@^5.4.3, buffer@^5.5.0:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "5.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"
|
|
|
|
integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==
|
|
|
|
dependencies:
|
|
|
|
base64-js "^1.3.1"
|
|
|
|
ieee754 "^1.1.13"
|
|
|
|
|
|
|
|
buffer@^6.0.3:
|
|
|
|
version "6.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
|
|
|
|
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
|
|
|
|
dependencies:
|
|
|
|
base64-js "^1.3.1"
|
|
|
|
ieee754 "^1.2.1"
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
bufferutil@^4.0.1:
|
|
|
|
version "4.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.8.tgz#1de6a71092d65d7766c4d8a522b261a6e787e8ea"
|
|
|
|
integrity sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==
|
|
|
|
dependencies:
|
|
|
|
node-gyp-build "^4.3.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
builtin-status-codes@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
|
|
|
|
integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
bytes@3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
cacheable-request@^6.0.0:
|
|
|
|
version "6.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912"
|
|
|
|
integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==
|
|
|
|
dependencies:
|
|
|
|
clone-response "^1.0.2"
|
|
|
|
get-stream "^5.1.0"
|
|
|
|
http-cache-semantics "^4.0.0"
|
|
|
|
keyv "^3.0.0"
|
|
|
|
lowercase-keys "^2.0.0"
|
|
|
|
normalize-url "^4.1.0"
|
|
|
|
responselike "^1.0.2"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
caching-transform@^3.0.2:
|
|
|
|
version "3.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/caching-transform/-/caching-transform-3.0.2.tgz#601d46b91eca87687a281e71cef99791b0efca70"
|
|
|
|
integrity sha512-Mtgcv3lh3U0zRii/6qVgQODdPA4G3zhG+jtbCWj39RXuUFTMzH0vcdMtaJS1jPowd+It2Pqr6y3NJMQqOqCE2w==
|
|
|
|
dependencies:
|
|
|
|
hasha "^3.0.0"
|
|
|
|
make-dir "^2.0.0"
|
|
|
|
package-hash "^3.0.0"
|
|
|
|
write-file-atomic "^2.4.2"
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
caller-callsite@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
|
|
|
callsites "^2.0.0"
|
|
|
|
|
|
|
|
caller-path@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
|
|
|
caller-callsite "^2.0.0"
|
|
|
|
|
|
|
|
callsites@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==
|
2019-03-04 12:38:41 +00:00
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
callsites@^3.0.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
|
|
|
|
integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
|
|
|
|
|
|
|
|
camelcase@^5.0.0, camelcase@^5.3.1:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "5.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320"
|
|
|
|
integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
|
2019-03-04 12:38:41 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
camelcase@^6.2.0:
|
2022-05-27 08:35:43 +00:00
|
|
|
version "6.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
|
|
|
|
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
caniuse-lite@^1.0.30001449:
|
|
|
|
version "1.0.30001469"
|
|
|
|
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001469.tgz#3dd505430c8522fdc9f94b4a19518e330f5c945a"
|
|
|
|
integrity sha512-Rcp7221ScNqQPP3W+lVOYDyjdR6dC+neEQCttoNr5bAyz54AboB4iwpnWgyi8P4YUsPybVzT4LgWiBbI3drL4g==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
caniuse-lite@^1.0.30001517:
|
|
|
|
version "1.0.30001532"
|
|
|
|
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001532.tgz#c6a4d5d2da6d2b967f0ee5e12e7f680db6ad2fca"
|
|
|
|
integrity sha512-FbDFnNat3nMnrROzqrsg314zhqN5LGQ1kyyMk2opcrwGbVGpHRhgCWtAgD5YJUqNAiQ+dklreil/c3Qf1dfCTw==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
chalk@^1.1.3:
|
|
|
|
version "1.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
|
|
|
|
integrity sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^2.2.1"
|
|
|
|
escape-string-regexp "^1.0.2"
|
|
|
|
has-ansi "^2.0.0"
|
|
|
|
strip-ansi "^3.0.0"
|
|
|
|
supports-color "^2.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
chalk@^2.0.0, chalk@^2.4.2:
|
|
|
|
version "2.4.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
|
|
|
|
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^3.2.1"
|
|
|
|
escape-string-regexp "^1.0.5"
|
|
|
|
supports-color "^5.3.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
chalk@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"
|
|
|
|
integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^4.1.0"
|
|
|
|
supports-color "^7.1.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "4.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
|
|
|
|
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^4.1.0"
|
|
|
|
supports-color "^7.1.0"
|
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
chance@^1.1.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/chance/-/chance-1.1.4.tgz#d8743bf8e40bb05e024c305ca1ff441195eb23db"
|
|
|
|
integrity sha512-pXPDSu3knKlb6H7ahQfpq//J9mSOxYK8SMtp8MV/nRJh8aLRDIl0ipLH8At8+nVogVwtvPZzyIzY/EbcY/cLuQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
char-regex@^1.0.2:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf"
|
|
|
|
integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
character-entities-legacy@^1.0.0:
|
|
|
|
version "1.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1"
|
|
|
|
integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==
|
|
|
|
|
|
|
|
character-entities@^1.0.0:
|
|
|
|
version "1.2.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b"
|
|
|
|
integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==
|
|
|
|
|
|
|
|
character-reference-invalid@^1.0.0:
|
|
|
|
version "1.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560"
|
|
|
|
integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
chokidar@^3.5.2:
|
|
|
|
version "3.5.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
|
|
|
|
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
|
|
|
|
dependencies:
|
|
|
|
anymatch "~3.1.2"
|
|
|
|
braces "~3.0.2"
|
|
|
|
glob-parent "~5.1.2"
|
|
|
|
is-binary-path "~2.1.0"
|
|
|
|
is-glob "~4.0.1"
|
|
|
|
normalize-path "~3.0.0"
|
|
|
|
readdirp "~3.6.0"
|
|
|
|
optionalDependencies:
|
|
|
|
fsevents "~2.3.2"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
chokidar@^3.6.0:
|
|
|
|
version "3.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b"
|
|
|
|
integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==
|
|
|
|
dependencies:
|
|
|
|
anymatch "~3.1.2"
|
|
|
|
braces "~3.0.2"
|
|
|
|
glob-parent "~5.1.2"
|
|
|
|
is-binary-path "~2.1.0"
|
|
|
|
is-glob "~4.0.1"
|
|
|
|
normalize-path "~3.0.0"
|
|
|
|
readdirp "~3.6.0"
|
|
|
|
optionalDependencies:
|
|
|
|
fsevents "~2.3.2"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
chownr@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
|
|
|
|
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
chrome-launcher@^0.15.2:
|
|
|
|
version "0.15.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/chrome-launcher/-/chrome-launcher-0.15.2.tgz#4e6404e32200095fdce7f6a1e1004f9bd36fa5da"
|
|
|
|
integrity sha512-zdLEwNo3aUVzIhKhTtXfxhdvZhUghrnmkvcAq2NoDd+LeOHKf03H5jwZ8T/STsAlzyALkBVK552iaG1fGf1xVQ==
|
|
|
|
dependencies:
|
|
|
|
"@types/node" "*"
|
|
|
|
escape-string-regexp "^4.0.0"
|
|
|
|
is-wsl "^2.2.0"
|
|
|
|
lighthouse-logger "^1.0.0"
|
|
|
|
|
|
|
|
chromium-edge-launcher@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/chromium-edge-launcher/-/chromium-edge-launcher-1.0.0.tgz#0443083074715a13c669530b35df7bfea33b1509"
|
|
|
|
integrity sha512-pgtgjNKZ7i5U++1g1PWv75umkHvhVTDOQIZ+sjeUX9483S7Y6MUvO0lrd7ShGlQlFHMN4SwKTCq/X8hWrbv2KA==
|
|
|
|
dependencies:
|
|
|
|
"@types/node" "*"
|
|
|
|
escape-string-regexp "^4.0.0"
|
|
|
|
is-wsl "^2.2.0"
|
|
|
|
lighthouse-logger "^1.0.0"
|
|
|
|
mkdirp "^1.0.4"
|
|
|
|
rimraf "^3.0.2"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
ci-info@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
|
|
|
|
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
ci-info@^3.2.0:
|
2022-11-23 13:59:18 +00:00
|
|
|
version "3.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.6.2.tgz#362ea15378f1c39378ba786affbc1c9ef015ecfd"
|
|
|
|
integrity sha512-lVZdhvbEudris15CLytp2u6Y0p5EKfztae9Fqa189MfNmln9F33XuH69v5fvNfiRN5/0eAUz2yJL3mo+nhaRKg==
|
2022-11-20 23:46:04 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de"
|
|
|
|
integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==
|
|
|
|
dependencies:
|
|
|
|
inherits "^2.0.1"
|
|
|
|
safe-buffer "^5.0.1"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
citty@^0.1.5, citty@^0.1.6:
|
|
|
|
version "0.1.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/citty/-/citty-0.1.6.tgz#0f7904da1ed4625e1a9ea7e0fa780981aab7c5e4"
|
|
|
|
integrity sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==
|
|
|
|
dependencies:
|
|
|
|
consola "^3.2.3"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
cjs-module-lexer@^1.0.0:
|
|
|
|
version "1.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz#6c370ab19f8a3394e318fe682686ec0ac684d107"
|
|
|
|
integrity sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
cli-boxes@^2.2.1:
|
|
|
|
version "2.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f"
|
|
|
|
integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
cli-cursor@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307"
|
|
|
|
integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-06-14 01:47:41 +00:00
|
|
|
restore-cursor "^3.1.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
cli-spinners@^2.5.0:
|
|
|
|
version "2.8.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.8.0.tgz#e97a3e2bd00e6d85aa0c13d7f9e3ce236f7787fc"
|
|
|
|
integrity sha512-/eG5sJcvEIwxcdYM86k5tPwn0MUzkX5YY3eImTGpJOZgVe4SdTMY14vQpcxgBzJ0wXwAYrS8E+c3uHeK4JNyzQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
clipboardy@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-4.0.0.tgz#e73ced93a76d19dd379ebf1f297565426dffdca1"
|
|
|
|
integrity sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==
|
|
|
|
dependencies:
|
|
|
|
execa "^8.0.1"
|
|
|
|
is-wsl "^3.1.0"
|
|
|
|
is64bit "^2.0.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
cliui@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5"
|
|
|
|
integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==
|
|
|
|
dependencies:
|
|
|
|
string-width "^3.1.0"
|
|
|
|
strip-ansi "^5.2.0"
|
|
|
|
wrap-ansi "^5.1.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
cliui@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1"
|
|
|
|
integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==
|
|
|
|
dependencies:
|
|
|
|
string-width "^4.2.0"
|
|
|
|
strip-ansi "^6.0.0"
|
|
|
|
wrap-ansi "^6.2.0"
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
cliui@^8.0.1:
|
|
|
|
version "8.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa"
|
|
|
|
integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==
|
|
|
|
dependencies:
|
|
|
|
string-width "^4.2.0"
|
|
|
|
strip-ansi "^6.0.1"
|
|
|
|
wrap-ansi "^7.0.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
clone-deep@^4.0.1:
|
|
|
|
version "4.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
|
|
|
|
integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==
|
|
|
|
dependencies:
|
|
|
|
is-plain-object "^2.0.4"
|
|
|
|
kind-of "^6.0.2"
|
|
|
|
shallow-clone "^3.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
clone-response@^1.0.2:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b"
|
|
|
|
integrity sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q==
|
|
|
|
dependencies:
|
|
|
|
mimic-response "^1.0.0"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
clone@^1.0.2:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
co@^4.6.0:
|
|
|
|
version "4.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
|
|
|
|
integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=
|
|
|
|
|
|
|
|
collect-v8-coverage@^1.0.0:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59"
|
|
|
|
integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==
|
|
|
|
|
2021-05-24 14:25:05 +00:00
|
|
|
color-convert@^1.9.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.9.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
|
|
|
|
integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==
|
|
|
|
dependencies:
|
|
|
|
color-name "1.1.3"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
color-convert@^2.0.1:
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
|
|
|
|
integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
|
|
|
|
dependencies:
|
|
|
|
color-name "~1.1.4"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
color-name@1.1.3:
|
|
|
|
version "1.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
|
|
|
|
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
|
|
|
|
|
2021-05-24 14:25:05 +00:00
|
|
|
color-name@~1.1.4:
|
2020-02-25 11:31:04 +00:00
|
|
|
version "1.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
|
|
|
|
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
color-support@^1.1.2:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2"
|
|
|
|
integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==
|
|
|
|
|
2024-04-08 14:14:07 +00:00
|
|
|
colord@2.9.2:
|
|
|
|
version "2.9.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.2.tgz#25e2bacbbaa65991422c07ea209e2089428effb1"
|
|
|
|
integrity sha512-Uqbg+J445nc1TKn4FoDPS6ZZqAvEDnwrH42yo8B40JSOgSLxMZ/gt3h4nmCtPLQeXhjJJkqBx7SCY35WnIixaQ==
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
colorette@^1.0.7:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "1.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40"
|
|
|
|
integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
combined-stream@^1.0.8:
|
2022-11-23 13:59:18 +00:00
|
|
|
version "1.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
|
|
|
|
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
|
|
|
|
dependencies:
|
|
|
|
delayed-stream "~1.0.0"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
comma-separated-tokens@^1.0.0:
|
|
|
|
version "1.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz#632b80b6117867a158f1080ad498b2fbe7e3f5ea"
|
|
|
|
integrity sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==
|
|
|
|
|
2019-12-04 06:52:02 +00:00
|
|
|
command-exists@^1.2.8:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.2.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69"
|
|
|
|
integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==
|
2019-12-04 06:52:02 +00:00
|
|
|
|
2024-04-17 13:27:00 +00:00
|
|
|
commander@^2.20.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.20.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
|
|
|
|
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
commander@^9.4.1:
|
|
|
|
version "9.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30"
|
|
|
|
integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
commondir@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
|
|
|
|
integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
compressible@~2.0.16:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.0.18"
|
|
|
|
resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba"
|
|
|
|
integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
mime-db ">= 1.43.0 < 2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
compression@^1.7.1:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "1.7.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"
|
|
|
|
integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
accepts "~1.3.5"
|
|
|
|
bytes "3.0.0"
|
2019-06-13 08:46:42 +00:00
|
|
|
compressible "~2.0.16"
|
2018-11-28 18:02:20 +00:00
|
|
|
debug "2.6.9"
|
2019-06-13 08:46:42 +00:00
|
|
|
on-headers "~1.0.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
safe-buffer "5.1.2"
|
|
|
|
vary "~1.1.2"
|
|
|
|
|
|
|
|
concat-map@0.0.1:
|
|
|
|
version "0.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
|
|
|
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
concurrently@^7.6.0:
|
|
|
|
version "7.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-7.6.0.tgz#531a6f5f30cf616f355a4afb8f8fcb2bba65a49a"
|
|
|
|
integrity sha512-BKtRgvcJGeZ4XttiDiNcFiRlxoAeZOseqUvyYRUp/Vtd+9p1ULmeoSqGsDA+2ivdeDFpqrJvGvmI+StKfKl5hw==
|
|
|
|
dependencies:
|
|
|
|
chalk "^4.1.0"
|
|
|
|
date-fns "^2.29.1"
|
|
|
|
lodash "^4.17.21"
|
|
|
|
rxjs "^7.0.0"
|
|
|
|
shell-quote "^1.7.3"
|
|
|
|
spawn-command "^0.0.2-1"
|
|
|
|
supports-color "^8.1.0"
|
|
|
|
tree-kill "^1.2.2"
|
|
|
|
yargs "^17.3.1"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
confbox@^0.1.7:
|
|
|
|
version "0.1.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/confbox/-/confbox-0.1.7.tgz#ccfc0a2bcae36a84838e83a3b7f770fb17d6c579"
|
|
|
|
integrity sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
configstore@^5.0.1:
|
|
|
|
version "5.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96"
|
|
|
|
integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==
|
|
|
|
dependencies:
|
|
|
|
dot-prop "^5.2.0"
|
|
|
|
graceful-fs "^4.1.2"
|
|
|
|
make-dir "^3.0.0"
|
|
|
|
unique-string "^2.0.0"
|
|
|
|
write-file-atomic "^3.0.0"
|
|
|
|
xdg-basedir "^4.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
connect@^3.6.5:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "3.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8"
|
|
|
|
integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
debug "2.6.9"
|
2019-06-13 08:46:42 +00:00
|
|
|
finalhandler "1.1.2"
|
|
|
|
parseurl "~1.3.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
utils-merge "1.0.1"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
consola@^3.2.3:
|
|
|
|
version "3.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/consola/-/consola-3.2.3.tgz#0741857aa88cfa0d6fd53f1cff0375136e98502f"
|
|
|
|
integrity sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
console-browserify@^1.1.0:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336"
|
|
|
|
integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
console-control-strings@^1.0.0, console-control-strings@^1.1.0:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
|
|
|
|
integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
constants-browserify@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
|
|
|
|
integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
convert-source-map@^1.6.0, convert-source-map@^1.7.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
|
|
|
|
integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
safe-buffer "~5.1.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
convert-source-map@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a"
|
|
|
|
integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
cookie-es@^1.1.0:
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/cookie-es/-/cookie-es-1.1.0.tgz#68f8d9f48aeb5a534f3896f80e792760d3d20def"
|
|
|
|
integrity sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
core-js-compat@^3.25.1:
|
|
|
|
version "3.29.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.29.1.tgz#15c0fb812ea27c973c18d425099afa50b934b41b"
|
|
|
|
integrity sha512-QmchCua884D8wWskMX8tW5ydINzd8oSJVx38lx/pVkFGqztxt73GYre3pm/hyYq8bPf+MW5In4I/uRShFDsbrA==
|
|
|
|
dependencies:
|
|
|
|
browserslist "^4.21.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
core-js-compat@^3.31.0:
|
|
|
|
version "3.32.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.32.2.tgz#8047d1a8b3ac4e639f0d4f66d4431aa3b16e004c"
|
|
|
|
integrity sha512-+GjlguTDINOijtVRUxrQOv3kfu9rl+qPNdX2LTbJ/ZyVTuxK+ksVSAGX1nHstu4hrv1En/uPTtWgq2gI5wt4AQ==
|
|
|
|
dependencies:
|
|
|
|
browserslist "^4.21.10"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
core-js@^2.5.7:
|
2023-12-11 15:52:23 +00:00
|
|
|
version "2.6.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
|
|
|
|
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
|
2020-04-28 08:57:17 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
core-util-is@~1.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
|
|
|
|
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
cosmiconfig@^5.0.5, cosmiconfig@^5.1.0:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "5.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a"
|
|
|
|
integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
|
|
|
import-fresh "^2.0.0"
|
|
|
|
is-directory "^0.3.1"
|
2019-06-13 08:46:42 +00:00
|
|
|
js-yaml "^3.13.1"
|
2019-03-04 12:38:41 +00:00
|
|
|
parse-json "^4.0.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
cp-file@^6.2.0:
|
|
|
|
version "6.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/cp-file/-/cp-file-6.2.0.tgz#40d5ea4a1def2a9acdd07ba5c0b0246ef73dc10d"
|
|
|
|
integrity sha512-fmvV4caBnofhPe8kOcitBwSn2f39QLjnAnGq3gO9dfd75mUytzKNZB1hde6QHunW2Rt+OwuBOMc3i1tNElbszA==
|
|
|
|
dependencies:
|
|
|
|
graceful-fs "^4.1.2"
|
|
|
|
make-dir "^2.0.0"
|
|
|
|
nested-error-stacks "^2.0.0"
|
|
|
|
pify "^4.0.1"
|
|
|
|
safe-buffer "^5.0.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
create-ecdh@^4.0.0:
|
2020-07-09 10:13:28 +00:00
|
|
|
version "4.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.4.tgz#d6e7f4bffa66736085a0762fd3a632684dabcc4e"
|
|
|
|
integrity sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
bn.js "^4.1.0"
|
2020-07-09 10:13:28 +00:00
|
|
|
elliptic "^6.5.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196"
|
|
|
|
integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==
|
|
|
|
dependencies:
|
|
|
|
cipher-base "^1.0.1"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
md5.js "^1.3.4"
|
|
|
|
ripemd160 "^2.0.1"
|
|
|
|
sha.js "^2.4.0"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4, create-hmac@^1.1.7:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.1.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff"
|
|
|
|
integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==
|
|
|
|
dependencies:
|
|
|
|
cipher-base "^1.0.3"
|
|
|
|
create-hash "^1.1.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
ripemd160 "^2.0.0"
|
|
|
|
safe-buffer "^5.0.1"
|
|
|
|
sha.js "^2.4.8"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
create-jest@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320"
|
|
|
|
integrity sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
exit "^0.1.2"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-config "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
prompts "^2.0.1"
|
|
|
|
|
2023-06-23 13:26:24 +00:00
|
|
|
cross-spawn@^4:
|
2019-07-11 19:12:31 +00:00
|
|
|
version "4.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
|
2022-11-20 23:46:04 +00:00
|
|
|
integrity sha512-yAXz/pA1tD8Gtg2S98Ekf/sewp3Lcp3YoFKJ4Hkp5h5yLWnKVTDU0kwjKJ8NDCYcfTLfyGkzTikst+jWypT1iA==
|
2019-07-03 19:00:51 +00:00
|
|
|
dependencies:
|
2019-07-11 19:12:31 +00:00
|
|
|
lru-cache "^4.0.1"
|
|
|
|
which "^1.2.9"
|
2019-07-03 19:00:51 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
cross-spawn@^7.0.3:
|
2023-12-11 15:52:23 +00:00
|
|
|
version "7.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
|
|
|
|
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
path-key "^3.1.0"
|
|
|
|
shebang-command "^2.0.0"
|
|
|
|
which "^2.0.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
crossws@^0.2.0, crossws@^0.2.4:
|
2024-05-08 08:51:45 +00:00
|
|
|
version "0.2.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/crossws/-/crossws-0.2.4.tgz#82a8b518bff1018ab1d21ced9e35ffbe1681ad03"
|
|
|
|
integrity sha512-DAxroI2uSOgUKLz00NX6A8U/8EE3SZHmIND+10jkVSaypvyt57J5JEOxAQOL6lQxyzi/wZbTIwssU1uy69h5Vg==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
crypto-browserify@^3.11.0:
|
|
|
|
version "3.12.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"
|
|
|
|
integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==
|
|
|
|
dependencies:
|
|
|
|
browserify-cipher "^1.0.0"
|
|
|
|
browserify-sign "^4.0.0"
|
|
|
|
create-ecdh "^4.0.0"
|
|
|
|
create-hash "^1.1.0"
|
|
|
|
create-hmac "^1.1.0"
|
|
|
|
diffie-hellman "^5.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
pbkdf2 "^3.0.3"
|
|
|
|
public-encrypt "^4.0.0"
|
|
|
|
randombytes "^2.0.0"
|
|
|
|
randomfill "^1.0.3"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
crypto-random-string@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
|
|
|
|
integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==
|
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
css-select@^5.1.0:
|
|
|
|
version "5.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/css-select/-/css-select-5.1.0.tgz#b8ebd6554c3637ccc76688804ad3f6a6fdaea8a6"
|
|
|
|
integrity sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
boolbase "^1.0.0"
|
2023-08-01 14:10:16 +00:00
|
|
|
css-what "^6.1.0"
|
|
|
|
domhandler "^5.0.2"
|
|
|
|
domutils "^3.0.1"
|
|
|
|
nth-check "^2.0.1"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
css-tree@^1.1.3:
|
|
|
|
version "1.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d"
|
|
|
|
integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2023-08-01 14:10:16 +00:00
|
|
|
mdn-data "2.0.14"
|
2019-09-07 12:57:22 +00:00
|
|
|
source-map "^0.6.1"
|
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
css-what@^6.1.0:
|
|
|
|
version "6.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4"
|
|
|
|
integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
csstype@^3.0.2:
|
|
|
|
version "3.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b"
|
|
|
|
integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
d@1, d@^1.0.1, d@^1.0.2:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/d/-/d-1.0.2.tgz#2aefd554b81981e7dccf72d6842ae725cb17e5de"
|
|
|
|
integrity sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==
|
|
|
|
dependencies:
|
|
|
|
es5-ext "^0.10.64"
|
|
|
|
type "^2.7.2"
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
date-fns@^2.29.1:
|
|
|
|
version "2.29.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8"
|
|
|
|
integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
dayjs@^1.8.15:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "1.11.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.7.tgz#4b296922642f70999544d1144a2c25730fce63e2"
|
|
|
|
integrity sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
debug@2.6.9, debug@^2.2.0, debug@^2.6.9:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.6.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
|
|
|
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
|
|
|
|
dependencies:
|
|
|
|
ms "2.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
debug@4:
|
|
|
|
version "4.3.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
|
|
|
|
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
|
|
|
|
dependencies:
|
|
|
|
ms "2.1.2"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
debug@^3.2.7:
|
|
|
|
version "3.2.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
|
|
|
|
integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==
|
|
|
|
dependencies:
|
|
|
|
ms "^2.1.1"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
debug@^4.1.0, debug@^4.1.1:
|
2018-12-09 14:58:03 +00:00
|
|
|
version "4.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
|
|
|
|
integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
ms "^2.1.1"
|
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
decamelize@^1.2.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
|
|
|
|
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
decode-uri-component@^0.2.2:
|
|
|
|
version "0.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
|
|
|
|
integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
decompress-response@^3.3.0:
|
|
|
|
version "3.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3"
|
|
|
|
integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=
|
|
|
|
dependencies:
|
|
|
|
mimic-response "^1.0.0"
|
|
|
|
|
2022-08-02 10:48:12 +00:00
|
|
|
dedent@^0.6.0:
|
|
|
|
version "0.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.6.0.tgz#0e6da8f0ce52838ef5cec5c8f9396b0c1b64a3cb"
|
|
|
|
integrity sha512-cSfRWjXJtZQeRuZGVvDrJroCR5V2UvBNUMHsPCdNYzuAG8b9V8aAy3KUcdQrGQPXs17Y+ojbPh1aOCplg9YR9g==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
dedent@^1.0.0:
|
|
|
|
version "1.5.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff"
|
|
|
|
integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==
|
2022-11-20 23:46:04 +00:00
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
deep-extend@^0.6.0:
|
|
|
|
version "0.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
|
|
|
|
integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
deepmerge@^4.2.2:
|
|
|
|
version "4.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955"
|
|
|
|
integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
deepmerge@^4.3.0:
|
|
|
|
version "4.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
|
|
|
|
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
default-require-extensions@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-2.0.0.tgz#f5f8fbb18a7d6d50b21f641f649ebb522cfe24f7"
|
|
|
|
integrity sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc=
|
|
|
|
dependencies:
|
|
|
|
strip-bom "^3.0.0"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
defaults@^1.0.3:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a"
|
|
|
|
integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
|
|
|
clone "^1.0.2"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
defer-to-connect@^1.0.1:
|
|
|
|
version "1.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591"
|
|
|
|
integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
defu@^6.1.3, defu@^6.1.4:
|
|
|
|
version "6.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/defu/-/defu-6.1.4.tgz#4e0c9cf9ff68fe5f3d7f2765cc1a012dfdcb0479"
|
|
|
|
integrity sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
delayed-stream@~1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
delegates@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
|
|
|
|
integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
denodeify@^1.2.1:
|
|
|
|
version "1.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
depd@2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"
|
|
|
|
integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
deprecated-react-native-prop-types@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/deprecated-react-native-prop-types/-/deprecated-react-native-prop-types-5.0.0.tgz#02a12f090da7bd9e8c3ac53c31cf786a1315d302"
|
|
|
|
integrity sha512-cIK8KYiiGVOFsKdPMmm1L3tA/Gl+JopXL6F5+C7x39MyPsQYnP57Im/D6bNUzcborD7fcMwiwZqcBdBXXZucYQ==
|
2023-12-11 15:52:23 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
"@react-native/normalize-colors" "^0.73.0"
|
|
|
|
invariant "^2.2.4"
|
|
|
|
prop-types "^15.8.1"
|
2023-12-11 15:52:23 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
des.js@^1.0.0:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.1.tgz#5382142e1bdc53f85d86d53e5f4aa7deb91e0843"
|
|
|
|
integrity sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==
|
|
|
|
dependencies:
|
|
|
|
inherits "^2.0.1"
|
|
|
|
minimalistic-assert "^1.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
destr@^2.0.3:
|
|
|
|
version "2.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/destr/-/destr-2.0.3.tgz#7f9e97cb3d16dbdca7be52aca1644ce402cfe449"
|
|
|
|
integrity sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
destroy@1.2.0:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
|
|
|
|
integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
detect-browser@5.3.0:
|
|
|
|
version "5.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.3.0.tgz#9705ef2bddf46072d0f7265a1fe300e36fe7ceca"
|
|
|
|
integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==
|
|
|
|
|
|
|
|
detect-libc@^1.0.3:
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
|
|
|
|
integrity sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
detect-libc@^2.0.0:
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.1.tgz#e1897aa88fa6ad197862937fbc0441ef352ee0cd"
|
|
|
|
integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
detect-newline@^3.0.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
|
|
|
|
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
diff-sequences@^25.2.6:
|
|
|
|
version "25.2.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd"
|
|
|
|
integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
diff-sequences@^28.1.1:
|
|
|
|
version "28.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-28.1.1.tgz#9989dc731266dc2903457a70e996f3a041913ac6"
|
|
|
|
integrity sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
diff-sequences@^29.3.1:
|
|
|
|
version "29.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.3.1.tgz#104b5b95fe725932421a9c6e5b4bef84c3f2249e"
|
|
|
|
integrity sha512-hlM3QR272NXCi4pq+N4Kok4kOp6EsgOM3ZSpJI7Da3UAs+Ttsi8MRmB6trM/lhyzUxGfOgnpkHtgqm5Q/CTcfQ==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
diff-sequences@^29.6.3:
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921"
|
|
|
|
integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
diffie-hellman@^5.0.0:
|
|
|
|
version "5.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"
|
|
|
|
integrity sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==
|
|
|
|
dependencies:
|
|
|
|
bn.js "^4.1.0"
|
|
|
|
miller-rabin "^4.0.0"
|
|
|
|
randombytes "^2.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
dom-serializer@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-2.0.0.tgz#e41b802e1eedf9f6cae183ce5e622d789d7d8e53"
|
|
|
|
integrity sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2023-08-01 14:10:16 +00:00
|
|
|
domelementtype "^2.3.0"
|
|
|
|
domhandler "^5.0.2"
|
|
|
|
entities "^4.2.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
|
|
|
domain-browser@^1.1.1:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"
|
|
|
|
integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==
|
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
domelementtype@^2.3.0:
|
|
|
|
version "2.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d"
|
|
|
|
integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
domhandler@^5.0.2, domhandler@^5.0.3:
|
|
|
|
version "5.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-5.0.3.tgz#cc385f7f751f1d1fc650c21374804254538c7d31"
|
|
|
|
integrity sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2023-08-01 14:10:16 +00:00
|
|
|
domelementtype "^2.3.0"
|
|
|
|
|
|
|
|
domutils@^3.0.1:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.1.0.tgz#c47f551278d3dc4b0b1ab8cbb42d751a6f0d824e"
|
|
|
|
integrity sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==
|
|
|
|
dependencies:
|
|
|
|
dom-serializer "^2.0.0"
|
|
|
|
domelementtype "^2.3.0"
|
|
|
|
domhandler "^5.0.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
dot-prop@^5.2.0:
|
|
|
|
version "5.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88"
|
|
|
|
integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==
|
|
|
|
dependencies:
|
|
|
|
is-obj "^2.0.0"
|
|
|
|
|
|
|
|
duplexer3@^0.1.4:
|
|
|
|
version "0.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
|
|
|
|
integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
duplexify@^4.1.2:
|
|
|
|
version "4.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-4.1.3.tgz#a07e1c0d0a2c001158563d32592ba58bddb0236f"
|
|
|
|
integrity sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==
|
|
|
|
dependencies:
|
|
|
|
end-of-stream "^1.4.1"
|
|
|
|
inherits "^2.0.3"
|
|
|
|
readable-stream "^3.1.1"
|
|
|
|
stream-shift "^1.0.2"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
ee-first@1.1.1:
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
electron-to-chromium@^1.4.284:
|
|
|
|
version "1.4.340"
|
|
|
|
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.340.tgz#3a6d7414c1fc2dbf84b6f7af3ec24270606c85b8"
|
|
|
|
integrity sha512-zx8hqumOqltKsv/MF50yvdAlPF9S/4PXbyfzJS6ZGhbddGkRegdwImmfSVqCkEziYzrIGZ/TlrzBND4FysfkDg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
electron-to-chromium@^1.4.477:
|
|
|
|
version "1.4.513"
|
|
|
|
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.513.tgz#41a50bf749aa7d8058ffbf7a131fc3327a7b1675"
|
|
|
|
integrity sha512-cOB0xcInjm+E5qIssHeXJ29BaUyWpMyFKT5RB3bsLENDheCja0wMkHJyiPl0NBE/VzDI7JDuNEQWhe6RitEUcw==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
elliptic@6.5.4:
|
|
|
|
version "6.5.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
|
|
|
|
integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==
|
|
|
|
dependencies:
|
|
|
|
bn.js "^4.11.9"
|
|
|
|
brorand "^1.1.0"
|
|
|
|
hash.js "^1.0.0"
|
|
|
|
hmac-drbg "^1.0.1"
|
|
|
|
inherits "^2.0.4"
|
|
|
|
minimalistic-assert "^1.0.1"
|
|
|
|
minimalistic-crypto-utils "^1.0.1"
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
elliptic@^6.5.3:
|
|
|
|
version "6.5.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6"
|
|
|
|
integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==
|
|
|
|
dependencies:
|
|
|
|
bn.js "^4.4.0"
|
|
|
|
brorand "^1.0.1"
|
|
|
|
hash.js "^1.0.0"
|
|
|
|
hmac-drbg "^1.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
minimalistic-assert "^1.0.0"
|
|
|
|
minimalistic-crypto-utils "^1.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
emittery@^0.13.1:
|
|
|
|
version "0.13.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad"
|
|
|
|
integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==
|
2022-11-20 23:46:04 +00:00
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
emoji-regex@^7.0.1:
|
|
|
|
version "7.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156"
|
|
|
|
integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
emoji-regex@^8.0.0:
|
|
|
|
version "8.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
|
|
|
|
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
|
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
emojilib@^2.4.0:
|
|
|
|
version "2.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/emojilib/-/emojilib-2.4.0.tgz#ac518a8bb0d5f76dda57289ccb2fdf9d39ae721e"
|
|
|
|
integrity sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
encodeurl@~1.0.2:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
end-of-stream@^1.1.0, end-of-stream@^1.4.1:
|
2019-10-07 13:13:12 +00:00
|
|
|
version "1.4.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
|
|
|
|
integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
once "^1.4.0"
|
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
entities@^4.2.0:
|
|
|
|
version "4.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
|
|
|
|
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
envinfo@^7.10.0:
|
2024-01-12 15:02:31 +00:00
|
|
|
version "7.11.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.11.0.tgz#c3793f44284a55ff8c82faf1ffd91bc6478ea01f"
|
|
|
|
integrity sha512-G9/6xF1FPbIw0TtalAMaVPpiq2aDEuKLXM314jPVAO9r2fo2a4BLqMNkmRS7O/xPPZ+COAhGIz3ETvHEV3eUcg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
error-ex@^1.3.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
|
|
|
|
integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==
|
|
|
|
dependencies:
|
|
|
|
is-arrayish "^0.2.1"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
error-stack-parser@^2.0.6:
|
|
|
|
version "2.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286"
|
|
|
|
integrity sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==
|
|
|
|
dependencies:
|
|
|
|
stackframe "^1.3.4"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
errorhandler@^1.5.1:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "1.5.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.5.1.tgz#b9ba5d17cf90744cd1e851357a6e75bf806a9a91"
|
|
|
|
integrity sha512-rcOwbfvP1WTViVoUjcfZicVzjhjTuhSMntHh6mW3IrEiyE6mJyXvsToJUJGlGlw/2xU9P5whlWNGlIDVeCiT4A==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-06-13 08:46:42 +00:00
|
|
|
accepts "~1.3.7"
|
2018-11-28 18:02:20 +00:00
|
|
|
escape-html "~1.0.3"
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
es5-ext@^0.10.35, es5-ext@^0.10.62, es5-ext@^0.10.63, es5-ext@^0.10.64, es5-ext@~0.10.14:
|
|
|
|
version "0.10.64"
|
|
|
|
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.64.tgz#12e4ffb48f1ba2ea777f1fcdd1918ef73ea21714"
|
|
|
|
integrity sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==
|
|
|
|
dependencies:
|
|
|
|
es6-iterator "^2.0.3"
|
|
|
|
es6-symbol "^3.1.3"
|
|
|
|
esniff "^2.0.1"
|
|
|
|
next-tick "^1.1.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
es6-error@^4.0.1:
|
|
|
|
version "4.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
|
|
|
|
integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
es6-iterator@^2.0.3:
|
|
|
|
version "2.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7"
|
|
|
|
integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==
|
|
|
|
dependencies:
|
|
|
|
d "1"
|
|
|
|
es5-ext "^0.10.35"
|
|
|
|
es6-symbol "^3.1.1"
|
|
|
|
|
|
|
|
es6-symbol@^3.1.1, es6-symbol@^3.1.3:
|
|
|
|
version "3.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.4.tgz#f4e7d28013770b4208ecbf3e0bf14d3bcb557b8c"
|
|
|
|
integrity sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==
|
|
|
|
dependencies:
|
|
|
|
d "^1.0.2"
|
|
|
|
ext "^1.7.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
escalade@^3.1.1:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
|
|
|
|
integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
escape-goat@^2.0.0:
|
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675"
|
|
|
|
integrity sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
escape-html@~1.0.3:
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
escape-string-regexp@2.0.0, escape-string-regexp@^2.0.0:
|
2020-02-12 13:09:45 +00:00
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
|
|
|
|
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
|
|
|
|
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
escape-string-regexp@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
|
|
|
|
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
esniff@^2.0.1:
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/esniff/-/esniff-2.0.1.tgz#a4d4b43a5c71c7ec51c51098c1d8a29081f9b308"
|
|
|
|
integrity sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==
|
|
|
|
dependencies:
|
|
|
|
d "^1.0.1"
|
|
|
|
es5-ext "^0.10.62"
|
|
|
|
event-emitter "^0.3.5"
|
|
|
|
type "^2.7.2"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
esprima@^4.0.0, esprima@~4.0.0:
|
2019-03-04 12:38:41 +00:00
|
|
|
version "4.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
|
|
|
|
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
esutils@^2.0.2:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "2.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
|
|
|
|
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
etag@~1.8.1:
|
|
|
|
version "1.8.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-10-11 10:20:37 +00:00
|
|
|
eth-phishing-detect@^1.2.0:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/eth-phishing-detect/-/eth-phishing-detect-1.2.0.tgz#11b357776b2d1b98a9ac594a1343e5184fc26bf0"
|
|
|
|
integrity sha512-+M7D4dhu5tkSA9b5eiBwDeJCjwy+7Lv49nuTEw8fNZIZUAVZC3d2XHatBq1MOW7J8kxNGbBdgBuIf65opI7Tkg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
fast-levenshtein "^2.0.6"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
ethers@5.7.2:
|
|
|
|
version "5.7.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e"
|
|
|
|
integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==
|
|
|
|
dependencies:
|
|
|
|
"@ethersproject/abi" "5.7.0"
|
|
|
|
"@ethersproject/abstract-provider" "5.7.0"
|
|
|
|
"@ethersproject/abstract-signer" "5.7.0"
|
|
|
|
"@ethersproject/address" "5.7.0"
|
|
|
|
"@ethersproject/base64" "5.7.0"
|
|
|
|
"@ethersproject/basex" "5.7.0"
|
|
|
|
"@ethersproject/bignumber" "5.7.0"
|
|
|
|
"@ethersproject/bytes" "5.7.0"
|
|
|
|
"@ethersproject/constants" "5.7.0"
|
|
|
|
"@ethersproject/contracts" "5.7.0"
|
|
|
|
"@ethersproject/hash" "5.7.0"
|
|
|
|
"@ethersproject/hdnode" "5.7.0"
|
|
|
|
"@ethersproject/json-wallets" "5.7.0"
|
|
|
|
"@ethersproject/keccak256" "5.7.0"
|
|
|
|
"@ethersproject/logger" "5.7.0"
|
|
|
|
"@ethersproject/networks" "5.7.1"
|
|
|
|
"@ethersproject/pbkdf2" "5.7.0"
|
|
|
|
"@ethersproject/properties" "5.7.0"
|
|
|
|
"@ethersproject/providers" "5.7.2"
|
|
|
|
"@ethersproject/random" "5.7.0"
|
|
|
|
"@ethersproject/rlp" "5.7.0"
|
|
|
|
"@ethersproject/sha2" "5.7.0"
|
|
|
|
"@ethersproject/signing-key" "5.7.0"
|
|
|
|
"@ethersproject/solidity" "5.7.0"
|
|
|
|
"@ethersproject/strings" "5.7.0"
|
|
|
|
"@ethersproject/transactions" "5.7.0"
|
|
|
|
"@ethersproject/units" "5.7.0"
|
|
|
|
"@ethersproject/wallet" "5.7.0"
|
|
|
|
"@ethersproject/web" "5.7.1"
|
|
|
|
"@ethersproject/wordlists" "5.7.0"
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
event-emitter@^0.3.5:
|
|
|
|
version "0.3.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39"
|
|
|
|
integrity sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==
|
|
|
|
dependencies:
|
|
|
|
d "1"
|
|
|
|
es5-ext "~0.10.14"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
event-target-shim@^5.0.0, event-target-shim@^5.0.1:
|
|
|
|
version "5.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789"
|
|
|
|
integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-07-28 11:06:58 +00:00
|
|
|
eventemitter3@^1.2.0:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508"
|
|
|
|
integrity sha1-HIaZHYFq0eUEdQ5zh0Ik7PO+xQg=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
events@3.3.0, events@^3.3.0:
|
|
|
|
version "3.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
|
|
|
|
integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
events@^1.0.0:
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"
|
|
|
|
integrity sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=
|
|
|
|
|
2020-03-16 13:02:35 +00:00
|
|
|
events@^3.0.0:
|
2020-07-09 10:13:28 +00:00
|
|
|
version "3.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/events/-/events-3.2.0.tgz#93b87c18f8efcd4202a461aec4dfc0556b639379"
|
|
|
|
integrity sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg==
|
2020-03-16 13:02:35 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3:
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02"
|
|
|
|
integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==
|
|
|
|
dependencies:
|
|
|
|
md5.js "^1.3.4"
|
|
|
|
safe-buffer "^5.1.1"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
execa@^5.0.0, execa@^5.1.1:
|
2023-12-11 15:52:23 +00:00
|
|
|
version "5.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
|
|
|
|
integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
|
|
|
|
dependencies:
|
|
|
|
cross-spawn "^7.0.3"
|
|
|
|
get-stream "^6.0.0"
|
|
|
|
human-signals "^2.1.0"
|
|
|
|
is-stream "^2.0.0"
|
|
|
|
merge-stream "^2.0.0"
|
|
|
|
npm-run-path "^4.0.1"
|
|
|
|
onetime "^5.1.2"
|
|
|
|
signal-exit "^3.0.3"
|
|
|
|
strip-final-newline "^2.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
execa@^8.0.1:
|
|
|
|
version "8.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/execa/-/execa-8.0.1.tgz#51f6a5943b580f963c3ca9c6321796db8cc39b8c"
|
|
|
|
integrity sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==
|
|
|
|
dependencies:
|
|
|
|
cross-spawn "^7.0.3"
|
|
|
|
get-stream "^8.0.1"
|
|
|
|
human-signals "^5.0.0"
|
|
|
|
is-stream "^3.0.0"
|
|
|
|
merge-stream "^2.0.0"
|
|
|
|
npm-run-path "^5.1.0"
|
|
|
|
onetime "^6.0.0"
|
|
|
|
signal-exit "^4.1.0"
|
|
|
|
strip-final-newline "^3.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
exit@^0.1.2:
|
|
|
|
version "0.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
|
|
|
|
integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
expect@^25.5.0:
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/expect/-/expect-25.5.0.tgz#f07f848712a2813bb59167da3fb828ca21f58bba"
|
|
|
|
integrity sha512-w7KAXo0+6qqZZhovCaBVPSIqQp7/UTcx4M9uKt2m6pd2VB1voyC8JizLRqeEqud3AAVP02g+hbErDu5gu64tlA==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^25.5.0"
|
|
|
|
ansi-styles "^4.0.0"
|
|
|
|
jest-get-type "^25.2.6"
|
|
|
|
jest-matcher-utils "^25.5.0"
|
|
|
|
jest-message-util "^25.5.0"
|
|
|
|
jest-regex-util "^25.2.6"
|
|
|
|
|
|
|
|
expect@^28.0.0:
|
2022-11-20 23:46:04 +00:00
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/expect/-/expect-28.1.3.tgz#90a7c1a124f1824133dd4533cce2d2bdcb6603ec"
|
|
|
|
integrity sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
"@jest/expect-utils" "^28.1.3"
|
|
|
|
jest-get-type "^28.0.2"
|
|
|
|
jest-matcher-utils "^28.1.3"
|
|
|
|
jest-message-util "^28.1.3"
|
|
|
|
jest-util "^28.1.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
expect@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc"
|
|
|
|
integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/expect-utils" "^29.7.0"
|
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
jest-matcher-utils "^29.7.0"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
ext@^1.7.0:
|
|
|
|
version "1.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f"
|
|
|
|
integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==
|
|
|
|
dependencies:
|
|
|
|
type "^2.7.2"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
fast-base64-decode@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz#b434a0dd7d92b12b43f26819300d2dafb83ee418"
|
|
|
|
integrity sha512-qwaScUgUGBYeDNRnbc/KyllVU88Jk1pRHPStuF/lO7B0/RTRLj7U0lkdTAutlBblY08rwZDff6tNU9cjv6j//Q==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
fast-json-stable-stringify@^2.1.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
|
|
|
|
integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
fast-levenshtein@^2.0.6:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
|
|
|
|
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
fast-redact@^3.0.0:
|
|
|
|
version "3.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/fast-redact/-/fast-redact-3.5.0.tgz#e9ea02f7e57d0cd8438180083e93077e496285e4"
|
|
|
|
integrity sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==
|
|
|
|
|
|
|
|
fast-text-encoding@^1.0.6:
|
|
|
|
version "1.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz#0aa25f7f638222e3396d72bf936afcf1d42d6867"
|
|
|
|
integrity sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
fast-xml-parser@^4.0.12:
|
|
|
|
version "4.2.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.2.7.tgz#871f2ca299dc4334b29f8da3658c164e68395167"
|
|
|
|
integrity sha512-J8r6BriSLO1uj2miOk1NW0YVm8AGOOu3Si2HQp/cSmo6EA4m3fcwu2WKjJ4RK9wMLBtg69y1kS8baDiQBR41Ig==
|
|
|
|
dependencies:
|
|
|
|
strnum "^1.0.5"
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
fast-xml-parser@^4.2.4:
|
|
|
|
version "4.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.3.2.tgz#761e641260706d6e13251c4ef8e3f5694d4b0d79"
|
|
|
|
integrity sha512-rmrXUXwbJedoXkStenj1kkljNF7ugn5ZjR9FJcwmCfcCbtOMDghPajbc+Tck6vE6F5XsDmx+Pr2le9fw8+pXBg==
|
|
|
|
dependencies:
|
|
|
|
strnum "^1.0.5"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
fault@^1.0.0:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/fault/-/fault-1.0.4.tgz#eafcfc0a6d214fc94601e170df29954a4f842f13"
|
|
|
|
integrity sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==
|
|
|
|
dependencies:
|
|
|
|
format "^0.2.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
fb-watchman@^2.0.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85"
|
|
|
|
integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
bser "2.1.1"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
fill-range@^7.0.1:
|
|
|
|
version "7.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
|
|
|
|
integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
|
|
|
|
dependencies:
|
|
|
|
to-regex-range "^5.0.1"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
fill-range@^7.1.1:
|
|
|
|
version "7.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
|
|
|
|
integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
|
|
|
|
dependencies:
|
|
|
|
to-regex-range "^5.0.1"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
filter-obj@^1.1.0:
|
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b"
|
|
|
|
integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==
|
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
finalhandler@1.1.2:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d"
|
|
|
|
integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
debug "2.6.9"
|
|
|
|
encodeurl "~1.0.2"
|
|
|
|
escape-html "~1.0.3"
|
|
|
|
on-finished "~2.3.0"
|
2019-06-13 08:46:42 +00:00
|
|
|
parseurl "~1.3.3"
|
|
|
|
statuses "~1.5.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
unpipe "~1.0.0"
|
|
|
|
|
|
|
|
find-cache-dir@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f"
|
2023-12-11 15:52:23 +00:00
|
|
|
integrity sha512-46TFiBOzX7xq/PcSWfFwkyjpemdRnMe31UQF+os0y+1W3k95f6R4SEt02Hj4p3X0Mir9gfrkmOtshFidS0VPUg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
commondir "^1.0.1"
|
|
|
|
make-dir "^1.0.0"
|
|
|
|
pkg-dir "^2.0.0"
|
|
|
|
|
2019-07-11 19:12:31 +00:00
|
|
|
find-cache-dir@^2.0.0, find-cache-dir@^2.1.0:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7"
|
|
|
|
integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==
|
|
|
|
dependencies:
|
|
|
|
commondir "^1.0.1"
|
|
|
|
make-dir "^2.0.0"
|
|
|
|
pkg-dir "^3.0.0"
|
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
find-up@^2.1.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
|
2023-12-11 15:52:23 +00:00
|
|
|
integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
locate-path "^2.0.0"
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
find-up@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73"
|
|
|
|
integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==
|
|
|
|
dependencies:
|
|
|
|
locate-path "^3.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
find-up@^4.0.0, find-up@^4.1.0:
|
2019-12-04 06:52:02 +00:00
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19"
|
|
|
|
integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==
|
|
|
|
dependencies:
|
|
|
|
locate-path "^5.0.0"
|
|
|
|
path-exists "^4.0.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
find-up@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc"
|
|
|
|
integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==
|
|
|
|
dependencies:
|
|
|
|
locate-path "^6.0.0"
|
|
|
|
path-exists "^4.0.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
flow-enums-runtime@^0.0.6:
|
|
|
|
version "0.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/flow-enums-runtime/-/flow-enums-runtime-0.0.6.tgz#5bb0cd1b0a3e471330f4d109039b7eba5cb3e787"
|
|
|
|
integrity sha512-3PYnM29RFXwvAN6Pc/scUfkI7RwhQ/xqyLUyPNlXUp9S40zI8nup9tUSrTLSVnWGBN38FNiGWbwZOB6uR4OGdw==
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
flow-parser@0.*:
|
|
|
|
version "0.202.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.202.1.tgz#3f87222e6910f6790bb2ce4648c20e1b87d6f9d7"
|
|
|
|
integrity sha512-IA8mhyNEUtzAKh+lj1yNDLFiUr1NSwPC+exQgghQNARFU/DeWGpoNmuYYzMDFIYsOdVdDoTJTxRc+/cS9CVvNg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
flow-parser@^0.206.0:
|
|
|
|
version "0.206.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.206.0.tgz#f4f794f8026535278393308e01ea72f31000bfef"
|
|
|
|
integrity sha512-HVzoK3r6Vsg+lKvlIZzaWNBVai+FXTX1wdYhz/wVlH13tb/gOdLXmlTqy6odmTBhT5UoWUbq0k8263Qhr9d88w==
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
foreground-child@^1.5.6:
|
|
|
|
version "1.5.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-1.5.6.tgz#4fd71ad2dfde96789b980a5c0a295937cb2f5ce9"
|
|
|
|
integrity sha1-T9ca0t/elnibmApcCilZN8svXOk=
|
|
|
|
dependencies:
|
|
|
|
cross-spawn "^4"
|
|
|
|
signal-exit "^3.0.0"
|
|
|
|
|
2023-12-26 10:38:46 +00:00
|
|
|
form-data@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
|
|
|
|
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
|
|
|
|
dependencies:
|
|
|
|
asynckit "^0.4.0"
|
|
|
|
combined-stream "^1.0.8"
|
|
|
|
mime-types "^2.1.12"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
format@^0.2.0:
|
|
|
|
version "0.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b"
|
|
|
|
integrity sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
fresh@0.5.2:
|
|
|
|
version "0.5.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
fs-extra@^8.1.0:
|
|
|
|
version "8.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
|
|
|
|
integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-05-01 07:20:06 +00:00
|
|
|
graceful-fs "^4.2.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
jsonfile "^4.0.0"
|
|
|
|
universalify "^0.1.0"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
fs-minipass@^2.0.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb"
|
|
|
|
integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==
|
|
|
|
dependencies:
|
|
|
|
minipass "^3.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
fs.realpath@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
|
|
|
|
integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
fsevents@^2.3.2:
|
|
|
|
version "2.3.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
|
|
|
|
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
|
|
|
|
|
|
|
|
fsevents@~2.3.2:
|
2022-05-27 08:35:43 +00:00
|
|
|
version "2.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
|
|
|
|
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
function-bind@^1.1.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
|
|
|
|
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
function-bind@^1.1.2:
|
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"
|
|
|
|
integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
|
|
|
|
|
Fix message ordering and improve performance rec. messages
This commit does a few things:
==== Ordering of messages ====
Change the ordering of messages from a mixture of timestamp/clock-value to use
only clock-value.
Datemarks are now not used for sorting anymore, which means that the
order of messages is always causally related (not the case before, as we
were breaking this property by sorting by datemark), but datemark
calculation is unreliable (a reply to a message might have a timestamp <
then the message that is replied to).
So for timestamp calculation we
naively group them ignoring "out-of-order timestamp" messages, although
there's much to improve.
It fixes an issue whereby the user would change their time and the
message will be displayed in the past, although it is still possible to
craft a message with a lower clock value and order it in the past
(there's no way we can prevent this to some extent, but there are ways
to mitigate, but outside the scope of this PR).
==== Performance of receiving messages ====
The app would freeze on pulling messages from a mailserver (100 or so).
This is due to the JS Thread being hogged by CPU calculation, coupled
with the fact that we always tried to process messages all in one go.
This strategy can't scale, and given x is big enough (200,300,1000) the
UI will freeze.
Instead, each message is now processed separately, and we leave a gap
between processing each message for the UI to respond to user input
(otherwise the app freezes again).
Pulling messages will be longer overall, but the app will be usuable
while this happen (albeit it might slow down).
Other strategies are possible (calculate off-db and do a big swap,
avoiding many re-renders etc), but this is the reccommended strategy by
re-frame author (Solving the CPU Hog problem), so sounds like a safe
base point.
The underlying data structure for holding messages was also changed, we
used an immutable Red and Black Tree, same as a sorted map for clojure, but we use
a js library as is twice as performing then clojure sorted map.
We also don't sort messages again each time we receive them O(nlogn), but we
insert them in order O(logn).
Other data structures considered but discarded:
1) Plain vector, but performance prepending/insertion in the middle
(both O(n)) were not great, as not really suited for these operations.
2) Linked list, appealing as append/prepend is O(1), while insertion is
O(n). This is probably acceptable as messages tend to come in order
(from the db, so adding N messages is O(n)), or the network (most of
them prepends, or close to the head), while mailserver would not follow this path.
An implementation of a linked list was built, which performed roughtly the
same as a clojure sorted-map (although faster append/prepend), but not
worth the complexity of having our own implementation.
3) Clojure sorted-map, probably the most versatile, performance were
acceptable, but nowhere near the javascript implementation we decided on
4) Priority map, much slower than a sorted map (twice as slow)
5) Mutable sorted map, js implementation, (bintrees), not explored this very much, but from
just a quick benchmark, performance were much worse that clojure
immutable sorted map
Given that each message is now processed separately, saving the chat /
messages is also debounced to avoid spamming status-go with network
requests. This is a temporary measure for now until that's done directly
in status-go, without having to ping-pong with status-react.
Next steps performance wise is to move stuff to status-go, parsing of
transit, validation, which is heavy, at which point we can re-consider
performance and how to handle messages.
Fixes also an issue with the last message in the chat, we were using the
last message in the chat list, which might not necessarely be the last
message the chat has seen, in case messages were not loaded and a more
recent message is the database (say you fetch historical messages for
1-to-1 A, you don't have any messages in 1-to-1 chat B loaded, you receive an
historical message for chat B, it sets it as last message).
Also use clj beans instead of js->clj for type conversion
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2019-10-24 14:23:20 +00:00
|
|
|
functional-red-black-tree@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
|
|
|
|
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
gauge@^3.0.0:
|
|
|
|
version "3.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395"
|
|
|
|
integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==
|
|
|
|
dependencies:
|
|
|
|
aproba "^1.0.3 || ^2.0.0"
|
|
|
|
color-support "^1.1.2"
|
|
|
|
console-control-strings "^1.0.0"
|
|
|
|
has-unicode "^2.0.1"
|
|
|
|
object-assign "^4.1.1"
|
|
|
|
signal-exit "^3.0.0"
|
|
|
|
string-width "^4.2.3"
|
|
|
|
strip-ansi "^6.0.1"
|
|
|
|
wide-align "^1.1.2"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
gensync@^1.0.0-beta.2:
|
|
|
|
version "1.0.0-beta.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
|
|
|
|
integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
get-caller-file@^2.0.1, get-caller-file@^2.0.5:
|
2019-07-03 19:00:51 +00:00
|
|
|
version "2.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
|
|
|
|
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
get-port-please@^3.1.2:
|
|
|
|
version "3.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/get-port-please/-/get-port-please-3.1.2.tgz#502795e56217128e4183025c89a48c71652f4e49"
|
|
|
|
integrity sha512-Gxc29eLs1fbn6LQ4jSU4vXjlwyZhF5HsGuMAa7gqBP4Rw4yxxltyDUuF5MBclFzDTXO+ACchGQoeela4DSfzdQ==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
get-stdin@^5.0.1:
|
|
|
|
version "5.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398"
|
|
|
|
integrity sha512-jZV7n6jGE3Gt7fgSTJoz91Ak5MuTLwMwkoYdjxuJ/AmjIsE1UC03y/IWkZCQGEvVNS9qoRNwy5BCqxImv0FVeA==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
get-stream@^4.1.0:
|
2019-03-04 12:38:41 +00:00
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5"
|
|
|
|
integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==
|
|
|
|
dependencies:
|
|
|
|
pump "^3.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
get-stream@^5.1.0:
|
2022-05-27 08:35:43 +00:00
|
|
|
version "5.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3"
|
|
|
|
integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==
|
|
|
|
dependencies:
|
|
|
|
pump "^3.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
get-stream@^6.0.0:
|
|
|
|
version "6.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
|
|
|
|
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
get-stream@^8.0.1:
|
|
|
|
version "8.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-8.0.1.tgz#def9dfd71742cd7754a7761ed43749a27d02eca2"
|
|
|
|
integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
glob-parent@~5.1.2:
|
|
|
|
version "5.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
|
|
|
|
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
|
|
|
|
dependencies:
|
|
|
|
is-glob "^4.0.1"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
glob@^7.1.1:
|
|
|
|
version "7.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
|
|
|
|
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
|
|
|
|
dependencies:
|
|
|
|
fs.realpath "^1.0.0"
|
|
|
|
inflight "^1.0.4"
|
|
|
|
inherits "2"
|
|
|
|
minimatch "^3.1.1"
|
|
|
|
once "^1.3.0"
|
|
|
|
path-is-absolute "^1.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
glob@^7.1.3, glob@^7.1.4:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "7.1.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
|
|
|
|
integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
|
2019-06-02 02:22:56 +00:00
|
|
|
dependencies:
|
|
|
|
fs.realpath "^1.0.0"
|
|
|
|
inflight "^1.0.4"
|
|
|
|
inherits "2"
|
|
|
|
minimatch "^3.0.4"
|
|
|
|
once "^1.3.0"
|
|
|
|
path-is-absolute "^1.0.0"
|
|
|
|
|
2022-01-24 13:18:01 +00:00
|
|
|
glob@^7.1.6:
|
|
|
|
version "7.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
|
|
|
|
integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
|
|
|
|
dependencies:
|
|
|
|
fs.realpath "^1.0.0"
|
|
|
|
inflight "^1.0.4"
|
|
|
|
inherits "2"
|
|
|
|
minimatch "^3.0.4"
|
|
|
|
once "^1.3.0"
|
|
|
|
path-is-absolute "^1.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
global-dirs@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-3.0.0.tgz#70a76fe84ea315ab37b1f5576cbde7d48ef72686"
|
|
|
|
integrity sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==
|
|
|
|
dependencies:
|
|
|
|
ini "2.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
globals@^11.1.0:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "11.12.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
|
|
|
|
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
glur@^1.1.2:
|
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/glur/-/glur-1.1.2.tgz#f20ea36db103bfc292343921f1f91e83c3467689"
|
|
|
|
integrity sha512-l+8esYHTKOx2G/Aao4lEQ0bnHWg4fWtJbVoZZT9Knxi01pB8C80BR85nONLFwkkQoFRCmXY+BUcGZN3yZ2QsRA==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
got@^9.6.0:
|
|
|
|
version "9.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85"
|
|
|
|
integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==
|
|
|
|
dependencies:
|
|
|
|
"@sindresorhus/is" "^0.14.0"
|
|
|
|
"@szmarczak/http-timer" "^1.1.2"
|
|
|
|
cacheable-request "^6.0.0"
|
|
|
|
decompress-response "^3.3.0"
|
|
|
|
duplexer3 "^0.1.4"
|
|
|
|
get-stream "^4.1.0"
|
|
|
|
lowercase-keys "^1.0.1"
|
|
|
|
mimic-response "^1.0.1"
|
|
|
|
p-cancelable "^1.0.0"
|
|
|
|
to-readable-stream "^1.0.0"
|
|
|
|
url-parse-lax "^3.0.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "4.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423"
|
|
|
|
integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==
|
2019-07-03 19:00:51 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
graceful-fs@^4.1.3, graceful-fs@^4.2.0:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "4.2.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
|
|
|
|
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
|
2020-05-01 07:20:06 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
graceful-fs@^4.2.4, graceful-fs@^4.2.9:
|
2022-11-20 23:46:04 +00:00
|
|
|
version "4.2.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
|
|
|
|
integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
h3@^1.10.2, h3@^1.11.1:
|
2024-07-01 12:31:58 +00:00
|
|
|
version "1.12.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/h3/-/h3-1.12.0.tgz#9d7f05f08a997d263e484b02436cb027df3026d8"
|
|
|
|
integrity sha512-Zi/CcNeWBXDrFNlV0hUBJQR9F7a96RjMeAZweW/ZWkR9fuXrMcvKnSA63f/zZ9l0GgQOZDVHGvXivNN9PWOwhA==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
2024-07-01 12:31:58 +00:00
|
|
|
cookie-es "^1.1.0"
|
|
|
|
crossws "^0.2.4"
|
2024-05-08 08:51:45 +00:00
|
|
|
defu "^6.1.4"
|
|
|
|
destr "^2.0.3"
|
2024-07-01 12:31:58 +00:00
|
|
|
iron-webcrypto "^1.1.1"
|
2024-05-08 08:51:45 +00:00
|
|
|
ohash "^1.1.3"
|
2024-07-01 12:31:58 +00:00
|
|
|
radix3 "^1.1.2"
|
|
|
|
ufo "^1.5.3"
|
2024-05-08 08:51:45 +00:00
|
|
|
uncrypto "^0.1.3"
|
|
|
|
unenv "^1.9.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
has-ansi@^2.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.0.0"
|
2022-11-20 23:46:04 +00:00
|
|
|
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
|
|
|
|
integrity sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
ansi-regex "^2.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
has-flag@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
|
|
|
|
integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
has-flag@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
|
|
|
|
integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
has-unicode@^2.0.1:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
|
|
|
|
integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
has-yarn@^2.1.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77"
|
|
|
|
integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
has@^1.0.3:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
|
|
|
|
integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
|
|
|
|
dependencies:
|
|
|
|
function-bind "^1.1.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
hash-base@^3.0.0:
|
2020-07-09 10:13:28 +00:00
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33"
|
|
|
|
integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2020-07-09 10:13:28 +00:00
|
|
|
inherits "^2.0.4"
|
|
|
|
readable-stream "^3.6.0"
|
|
|
|
safe-buffer "^5.2.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
hash.js@1.1.7, hash.js@^1.0.0, hash.js@^1.0.3:
|
2018-12-09 14:58:03 +00:00
|
|
|
version "1.1.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42"
|
|
|
|
integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
inherits "^2.0.3"
|
|
|
|
minimalistic-assert "^1.0.1"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
hasha@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/hasha/-/hasha-3.0.0.tgz#52a32fab8569d41ca69a61ff1a214f8eb7c8bd39"
|
|
|
|
integrity sha1-UqMvq4Vp1BymmmH/GiFPjrfIvTk=
|
|
|
|
dependencies:
|
|
|
|
is-stream "^1.0.1"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
hasown@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c"
|
|
|
|
integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==
|
|
|
|
dependencies:
|
|
|
|
function-bind "^1.1.2"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
hast-util-parse-selector@^2.0.0:
|
|
|
|
version "2.2.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz#d57c23f4da16ae3c63b3b6ca4616683313499c3a"
|
|
|
|
integrity sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==
|
|
|
|
|
|
|
|
hastscript@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-6.0.0.tgz#e8768d7eac56c3fdeac8a92830d58e811e5bf640"
|
|
|
|
integrity sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==
|
|
|
|
dependencies:
|
|
|
|
"@types/hast" "^2.0.0"
|
|
|
|
comma-separated-tokens "^1.0.0"
|
|
|
|
hast-util-parse-selector "^2.0.0"
|
|
|
|
property-information "^5.0.0"
|
|
|
|
space-separated-tokens "^1.0.0"
|
|
|
|
|
2024-01-12 15:02:31 +00:00
|
|
|
hermes-estree@0.15.0:
|
|
|
|
version "0.15.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.15.0.tgz#e32f6210ab18c7b705bdcb375f7700f2db15d6ba"
|
|
|
|
integrity sha512-lLYvAd+6BnOqWdnNbP/Q8xfl8LOGw4wVjfrNd9Gt8eoFzhNBRVD95n4l2ksfMVOoxuVyegs85g83KS9QOsxbVQ==
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
hermes-estree@0.18.2:
|
|
|
|
version "0.18.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.18.2.tgz#fd450fa1659cf074ceaa2ddeeb21674f3b2342f3"
|
|
|
|
integrity sha512-KoLsoWXJ5o81nit1wSyEZnWUGy9cBna9iYMZBR7skKh7okYAYKqQ9/OczwpMHn/cH0hKDyblulGsJ7FknlfVxQ==
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2024-01-12 15:02:31 +00:00
|
|
|
hermes-parser@0.15.0:
|
|
|
|
version "0.15.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.15.0.tgz#f611a297c2a2dbbfbce8af8543242254f604c382"
|
|
|
|
integrity sha512-Q1uks5rjZlE9RjMMjSUCkGrEIPI5pKJILeCtK1VmTj7U4pf3wVPoo+cxfu+s4cBAPy2JzikIIdCZgBoR6x7U1Q==
|
|
|
|
dependencies:
|
|
|
|
hermes-estree "0.15.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
hermes-parser@0.18.2:
|
|
|
|
version "0.18.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.18.2.tgz#50f15e2fcd559a48c68cd7af259d4292298bd14d"
|
|
|
|
integrity sha512-1eQfvib+VPpgBZ2zYKQhpuOjw1tH+Emuib6QmjkJWJMhyjM8xnXMvA+76o9LhF0zOAJDZgPfQhg43cyXEyl5Ew==
|
|
|
|
dependencies:
|
|
|
|
hermes-estree "0.18.2"
|
|
|
|
|
2021-01-07 12:59:57 +00:00
|
|
|
hermes-profile-transformer@^0.0.6:
|
|
|
|
version "0.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/hermes-profile-transformer/-/hermes-profile-transformer-0.0.6.tgz#bd0f5ecceda80dd0ddaae443469ab26fb38fc27b"
|
|
|
|
integrity sha512-cnN7bQUm65UWOy6cbGcCcZ3rpwW8Q/j4OP5aWRhEry4Z2t2aR1cjrbp0BS+KiBN0smvP1caBgAuxutvyvJILzQ==
|
|
|
|
dependencies:
|
|
|
|
source-map "^0.7.3"
|
2019-09-13 22:01:39 +00:00
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
highlight.js@^10.4.1, highlight.js@~10.7.0:
|
|
|
|
version "10.7.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.7.3.tgz#697272e3991356e40c3cac566a74eef681756531"
|
|
|
|
integrity sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
hmac-drbg@^1.0.0, hmac-drbg@^1.0.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
|
|
|
|
integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=
|
|
|
|
dependencies:
|
|
|
|
hash.js "^1.0.3"
|
|
|
|
minimalistic-assert "^1.0.0"
|
|
|
|
minimalistic-crypto-utils "^1.0.1"
|
|
|
|
|
2021-05-24 14:25:05 +00:00
|
|
|
hoist-non-react-statics@3.x.x, hoist-non-react-statics@^3.3.0:
|
2020-09-16 08:25:21 +00:00
|
|
|
version "3.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
|
|
|
|
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
|
|
|
|
dependencies:
|
|
|
|
react-is "^16.7.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
home-or-tmp@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-3.0.0.tgz#57a8fe24cf33cdd524860a15821ddc25c86671fb"
|
2023-12-11 15:52:23 +00:00
|
|
|
integrity sha512-pj6ktgQDedSIbzwrC108F9aZadnF2ZJ8mP8QbGq2nLPOmqpdqKWMoU4JPJaFEzpoTl6X/jOwE8BlkTOfVPR98A==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-05 18:21:37 +00:00
|
|
|
hosted-git-info@^2.1.4:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.8.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488"
|
|
|
|
integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==
|
|
|
|
|
|
|
|
html-escaper@^2.0.0:
|
|
|
|
version "2.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
|
|
|
|
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
http-cache-semantics@^4.0.0:
|
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
|
|
|
|
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
http-errors@2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3"
|
|
|
|
integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
depd "2.0.0"
|
2019-07-05 12:21:00 +00:00
|
|
|
inherits "2.0.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
setprototypeof "1.2.0"
|
|
|
|
statuses "2.0.1"
|
|
|
|
toidentifier "1.0.1"
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
http-shutdown@^1.2.2:
|
|
|
|
version "1.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/http-shutdown/-/http-shutdown-1.2.2.tgz#41bc78fc767637c4c95179bc492f312c0ae64c5f"
|
|
|
|
integrity sha512-S9wWkJ/VSY9/k4qcjG318bqJNruzE4HySUhFYknwmu6LBP97KLLfwNf+n4V1BHurvFNkSKLFnK/RsuUnRTf9Vw==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
https-browserify@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"
|
|
|
|
integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
https-proxy-agent@^5.0.0:
|
|
|
|
version "5.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6"
|
|
|
|
integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==
|
|
|
|
dependencies:
|
|
|
|
agent-base "6"
|
|
|
|
debug "4"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
human-signals@^2.1.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
|
|
|
|
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
human-signals@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
|
|
|
|
integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==
|
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
i18n-js@^3.3.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.5.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/i18n-js/-/i18n-js-3.5.1.tgz#9787450894059bec1af791123231e59898eb97c1"
|
|
|
|
integrity sha512-nJgbE5Vj9qzOQfjdVd/uoMoO8ppVaB/3LB6KOmMfD8IQ1vNNh307iHyQLK8ZnLYWkAszfPvVpYmUt1Le/RuHMQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
idb-keyval@^6.2.1:
|
|
|
|
version "6.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/idb-keyval/-/idb-keyval-6.2.1.tgz#94516d625346d16f56f3b33855da11bfded2db33"
|
|
|
|
integrity sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
ieee754@^1.1.13, ieee754@^1.2.1:
|
|
|
|
version "1.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
|
|
|
|
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
ieee754@^1.1.4:
|
2019-06-02 02:22:56 +00:00
|
|
|
version "1.1.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84"
|
|
|
|
integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
ignore-by-default@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
|
|
|
|
integrity sha1-SMptcvbGo68Aqa1K5odr44ieKwk=
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
image-size@^1.0.2:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.0.2.tgz#d778b6d0ab75b2737c1556dd631652eb963bc486"
|
|
|
|
integrity sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==
|
|
|
|
dependencies:
|
|
|
|
queue "6.0.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
import-fresh@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
|
|
|
caller-path "^2.0.0"
|
|
|
|
resolve-from "^3.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
import-lazy@^2.1.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
|
|
|
|
integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
import-local@^3.0.2:
|
|
|
|
version "3.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6"
|
|
|
|
integrity sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==
|
|
|
|
dependencies:
|
|
|
|
pkg-dir "^4.2.0"
|
|
|
|
resolve-cwd "^3.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
imurmurhash@^0.1.4:
|
|
|
|
version "0.1.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
|
|
|
|
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
indent-string@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251"
|
|
|
|
integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
inflight@^1.0.4:
|
|
|
|
version "1.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
|
|
|
|
integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
|
|
|
|
dependencies:
|
|
|
|
once "^1.3.0"
|
|
|
|
wrappy "1"
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "2.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
|
|
|
|
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
inherits@2.0.1:
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1"
|
|
|
|
integrity sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=
|
|
|
|
|
|
|
|
inherits@2.0.3:
|
|
|
|
version "2.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
|
|
|
|
integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
ini@2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5"
|
|
|
|
integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==
|
|
|
|
|
2023-06-23 13:26:24 +00:00
|
|
|
ini@~1.3.0:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "1.3.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
|
|
|
|
integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
invariant@2.2.4, invariant@^2.2.2, invariant@^2.2.4, invariant@^2.2.x:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.2.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
|
|
|
|
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
|
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.0.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
iron-webcrypto@^1.1.1:
|
|
|
|
version "1.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz#aa60ff2aa10550630f4c0b11fd2442becdb35a6f"
|
|
|
|
integrity sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==
|
2024-05-08 08:51:45 +00:00
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
is-alphabetical@^1.0.0:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d"
|
|
|
|
integrity sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==
|
|
|
|
|
|
|
|
is-alphanumerical@^1.0.0:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz#7eb9a2431f855f6b1ef1a78e326df515696c4dbf"
|
|
|
|
integrity sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==
|
|
|
|
dependencies:
|
|
|
|
is-alphabetical "^1.0.0"
|
|
|
|
is-decimal "^1.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
is-arrayish@^0.2.1:
|
|
|
|
version "0.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
|
|
|
|
integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
is-binary-path@~2.1.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
|
|
|
|
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
|
|
|
|
dependencies:
|
|
|
|
binary-extensions "^2.0.0"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
is-ci@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c"
|
|
|
|
integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==
|
|
|
|
dependencies:
|
|
|
|
ci-info "^2.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
is-core-module@^2.13.0:
|
|
|
|
version "2.13.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384"
|
|
|
|
integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==
|
|
|
|
dependencies:
|
|
|
|
hasown "^2.0.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
is-core-module@^2.9.0:
|
|
|
|
version "2.11.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144"
|
|
|
|
integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==
|
|
|
|
dependencies:
|
|
|
|
has "^1.0.3"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
is-decimal@^1.0.0:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5"
|
|
|
|
integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
is-directory@^0.3.1:
|
|
|
|
version "0.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
is-docker@^2.0.0:
|
|
|
|
version "2.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
|
|
|
|
integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
is-docker@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-3.0.0.tgz#90093aa3106277d8a77a5910dbae71747e15a200"
|
|
|
|
integrity sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
is-extglob@^2.1.1:
|
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
|
|
|
|
integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
is-fullwidth-code-point@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f"
|
|
|
|
integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
is-fullwidth-code-point@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"
|
|
|
|
integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
|
|
|
|
|
|
|
|
is-generator-fn@^2.0.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118"
|
|
|
|
integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
|
2022-05-27 08:35:43 +00:00
|
|
|
version "4.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
|
|
|
|
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
|
|
|
|
dependencies:
|
|
|
|
is-extglob "^2.1.1"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
is-hexadecimal@^1.0.0:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7"
|
|
|
|
integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
is-inside-container@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-inside-container/-/is-inside-container-1.0.0.tgz#e81fba699662eb31dbdaf26766a61d4814717ea4"
|
|
|
|
integrity sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==
|
|
|
|
dependencies:
|
|
|
|
is-docker "^3.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
is-installed-globally@^0.4.0:
|
|
|
|
version "0.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.4.0.tgz#9a0fd407949c30f86eb6959ef1b7994ed0b7b520"
|
|
|
|
integrity sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==
|
|
|
|
dependencies:
|
|
|
|
global-dirs "^3.0.0"
|
|
|
|
is-path-inside "^3.0.2"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
is-interactive@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e"
|
|
|
|
integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
is-npm@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-5.0.0.tgz#43e8d65cc56e1b67f8d47262cf667099193f45a8"
|
|
|
|
integrity sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
is-number@^7.0.0:
|
|
|
|
version "7.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
|
|
|
|
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
is-obj@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
|
|
|
|
integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==
|
|
|
|
|
|
|
|
is-path-inside@^3.0.2:
|
|
|
|
version "3.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
|
|
|
|
integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==
|
|
|
|
|
2022-08-24 14:21:49 +00:00
|
|
|
is-plain-obj@^2.1.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
|
|
|
|
integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
is-plain-object@^2.0.4:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
|
|
|
|
integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==
|
|
|
|
dependencies:
|
|
|
|
isobject "^3.0.1"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
is-stream@^1.0.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
|
|
|
|
integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
is-stream@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3"
|
|
|
|
integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
is-stream@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac"
|
|
|
|
integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
is-typedarray@^1.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
|
|
|
|
integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
is-unicode-supported@^0.1.0:
|
|
|
|
version "0.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7"
|
|
|
|
integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
is-wsl@^1.1.0:
|
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
is-wsl@^2.1.1, is-wsl@^2.2.0:
|
|
|
|
version "2.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
|
|
|
|
integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
|
|
|
|
dependencies:
|
|
|
|
is-docker "^2.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
is-wsl@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-3.1.0.tgz#e1c657e39c10090afcbedec61720f6b924c3cbd2"
|
|
|
|
integrity sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==
|
|
|
|
dependencies:
|
|
|
|
is-inside-container "^1.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
is-yarn-global@^0.3.0:
|
|
|
|
version "0.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232"
|
|
|
|
integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
is64bit@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/is64bit/-/is64bit-2.0.0.tgz#198c627cbcb198bbec402251f88e5e1a51236c07"
|
|
|
|
integrity sha512-jv+8jaWCl0g2lSBkNSVXdzfBA0npK1HGC2KtWM9FumFRoGS94g3NbCCLVnCYHLjp4GrW2KZeeSTMo5ddtznmGw==
|
|
|
|
dependencies:
|
|
|
|
system-architecture "^0.1.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
isarray@^1.0.0, isarray@~1.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
|
|
|
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
|
|
|
|
|
|
|
|
isexe@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
|
|
|
|
integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
isobject@^3.0.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
|
|
|
|
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
isomorphic-unfetch@3.1.0, isomorphic-unfetch@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz#87341d5f4f7b63843d468438128cb087b7c3e98f"
|
|
|
|
integrity sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q==
|
|
|
|
dependencies:
|
|
|
|
node-fetch "^2.6.1"
|
|
|
|
unfetch "^4.2.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
istanbul-lib-coverage@^2.0.5:
|
|
|
|
version "2.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz#675f0ab69503fad4b1d849f736baaca803344f49"
|
|
|
|
integrity sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
istanbul-lib-coverage@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec"
|
|
|
|
integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
istanbul-lib-coverage@^3.2.0:
|
|
|
|
version "3.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3"
|
|
|
|
integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
istanbul-lib-hook@^2.0.7:
|
|
|
|
version "2.0.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-2.0.7.tgz#c95695f383d4f8f60df1f04252a9550e15b5b133"
|
|
|
|
integrity sha512-vrRztU9VRRFDyC+aklfLoeXyNdTfga2EI3udDGn4cZ6fpSXpHLV9X6CHvfoMCPtggg8zvDDmC4b9xfu0z6/llA==
|
|
|
|
dependencies:
|
|
|
|
append-transform "^1.0.0"
|
|
|
|
|
|
|
|
istanbul-lib-instrument@^3.3.0:
|
|
|
|
version "3.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz#a5f63d91f0bbc0c3e479ef4c5de027335ec6d630"
|
|
|
|
integrity sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/generator" "^7.4.0"
|
|
|
|
"@babel/parser" "^7.4.3"
|
|
|
|
"@babel/template" "^7.4.0"
|
|
|
|
"@babel/traverse" "^7.4.3"
|
|
|
|
"@babel/types" "^7.4.0"
|
|
|
|
istanbul-lib-coverage "^2.0.5"
|
|
|
|
semver "^6.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
istanbul-lib-instrument@^5.0.4:
|
|
|
|
version "5.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d"
|
|
|
|
integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/core" "^7.12.3"
|
|
|
|
"@babel/parser" "^7.14.7"
|
|
|
|
"@istanbuljs/schema" "^0.1.2"
|
|
|
|
istanbul-lib-coverage "^3.2.0"
|
|
|
|
semver "^6.3.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
istanbul-lib-instrument@^6.0.0:
|
|
|
|
version "6.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz#71e87707e8041428732518c6fb5211761753fbdf"
|
|
|
|
integrity sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/core" "^7.12.3"
|
|
|
|
"@babel/parser" "^7.14.7"
|
|
|
|
"@istanbuljs/schema" "^0.1.2"
|
|
|
|
istanbul-lib-coverage "^3.2.0"
|
|
|
|
semver "^7.5.4"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
istanbul-lib-report@^2.0.8:
|
|
|
|
version "2.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz#5a8113cd746d43c4889eba36ab10e7d50c9b4f33"
|
|
|
|
integrity sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==
|
|
|
|
dependencies:
|
|
|
|
istanbul-lib-coverage "^2.0.5"
|
|
|
|
make-dir "^2.1.0"
|
|
|
|
supports-color "^6.1.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
istanbul-lib-report@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6"
|
|
|
|
integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==
|
|
|
|
dependencies:
|
|
|
|
istanbul-lib-coverage "^3.0.0"
|
|
|
|
make-dir "^3.0.0"
|
|
|
|
supports-color "^7.1.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
istanbul-lib-source-maps@^3.0.6:
|
|
|
|
version "3.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz#284997c48211752ec486253da97e3879defba8c8"
|
|
|
|
integrity sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==
|
|
|
|
dependencies:
|
|
|
|
debug "^4.1.1"
|
|
|
|
istanbul-lib-coverage "^2.0.5"
|
|
|
|
make-dir "^2.1.0"
|
|
|
|
rimraf "^2.6.3"
|
|
|
|
source-map "^0.6.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
istanbul-lib-source-maps@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz#75743ce6d96bb86dc7ee4352cf6366a23f0b1ad9"
|
|
|
|
integrity sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==
|
|
|
|
dependencies:
|
|
|
|
debug "^4.1.1"
|
|
|
|
istanbul-lib-coverage "^3.0.0"
|
|
|
|
source-map "^0.6.1"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
istanbul-reports@^2.2.4:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.2.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-2.2.7.tgz#5d939f6237d7b48393cc0959eab40cd4fd056931"
|
|
|
|
integrity sha512-uu1F/L1o5Y6LzPVSVZXNOoD/KXpJue9aeLRd0sM9uMXfZvzomB0WxVamWb5ue8kA2vVWEmW7EG+A5n3f1kqHKg==
|
2019-07-03 19:00:51 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
html-escaper "^2.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
istanbul-reports@^3.1.3:
|
2023-12-11 15:52:23 +00:00
|
|
|
version "3.1.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.6.tgz#2544bcab4768154281a2f0870471902704ccaa1a"
|
|
|
|
integrity sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
html-escaper "^2.0.0"
|
|
|
|
istanbul-lib-report "^3.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-changed-files@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a"
|
|
|
|
integrity sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
execa "^5.0.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
p-limit "^3.1.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-circus@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.7.0.tgz#b6817a45fcc835d8b16d5962d0c026473ee3668a"
|
|
|
|
integrity sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/environment" "^29.7.0"
|
|
|
|
"@jest/expect" "^29.7.0"
|
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/node" "*"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
co "^4.6.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
dedent "^1.0.0"
|
2022-11-20 23:46:04 +00:00
|
|
|
is-generator-fn "^2.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-each "^29.7.0"
|
|
|
|
jest-matcher-utils "^29.7.0"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-runtime "^29.7.0"
|
|
|
|
jest-snapshot "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
p-limit "^3.1.0"
|
|
|
|
pretty-format "^29.7.0"
|
|
|
|
pure-rand "^6.0.0"
|
|
|
|
slash "^3.0.0"
|
|
|
|
stack-utils "^2.0.3"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-cli@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.7.0.tgz#5592c940798e0cae677eec169264f2d839a37995"
|
|
|
|
integrity sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/core" "^29.7.0"
|
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
create-jest "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
exit "^0.1.2"
|
|
|
|
import-local "^3.0.2"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-config "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
jest-validate "^29.7.0"
|
|
|
|
yargs "^17.3.1"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-config@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.7.0.tgz#bcbda8806dbcc01b1e316a46bb74085a84b0245f"
|
|
|
|
integrity sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/core" "^7.11.6"
|
|
|
|
"@jest/test-sequencer" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
babel-jest "^29.7.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
ci-info "^3.2.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
deepmerge "^4.2.2"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
glob "^7.1.3"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-circus "^29.7.0"
|
|
|
|
jest-environment-node "^29.7.0"
|
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
jest-regex-util "^29.6.3"
|
|
|
|
jest-resolve "^29.7.0"
|
|
|
|
jest-runner "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
jest-validate "^29.7.0"
|
|
|
|
micromatch "^4.0.4"
|
|
|
|
parse-json "^5.2.0"
|
|
|
|
pretty-format "^29.7.0"
|
|
|
|
slash "^3.0.0"
|
|
|
|
strip-json-comments "^3.1.1"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
|
|
|
jest-diff@^25.5.0:
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-25.5.0.tgz#1dd26ed64f96667c068cef026b677dfa01afcfa9"
|
|
|
|
integrity sha512-z1kygetuPiREYdNIumRpAHY6RXiGmp70YHptjdaxTWGmA085W3iCnXNx0DhflK3vwrKmrRWyY1wUpkPMVxMK7A==
|
|
|
|
dependencies:
|
|
|
|
chalk "^3.0.0"
|
|
|
|
diff-sequences "^25.2.6"
|
|
|
|
jest-get-type "^25.2.6"
|
|
|
|
pretty-format "^25.5.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
jest-diff@^28.1.3:
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-28.1.3.tgz#948a192d86f4e7a64c5264ad4da4877133d8792f"
|
|
|
|
integrity sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
chalk "^4.0.0"
|
|
|
|
diff-sequences "^28.1.1"
|
|
|
|
jest-get-type "^28.0.2"
|
|
|
|
pretty-format "^28.1.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-diff@^29.0.1, jest-diff@^29.3.1:
|
|
|
|
version "29.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.3.1.tgz#d8215b72fed8f1e647aed2cae6c752a89e757527"
|
|
|
|
integrity sha512-vU8vyiO7568tmin2lA3r2DP8oRvzhvRcD4DjpXc6uGveQodyk7CKLhQlCSiwgx3g0pFaE88/KLZ0yaTWMc4Uiw==
|
|
|
|
dependencies:
|
|
|
|
chalk "^4.0.0"
|
|
|
|
diff-sequences "^29.3.1"
|
|
|
|
jest-get-type "^29.2.0"
|
|
|
|
pretty-format "^29.3.1"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-diff@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a"
|
|
|
|
integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
diff-sequences "^29.6.3"
|
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
pretty-format "^29.7.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-docblock@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.7.0.tgz#8fddb6adc3cdc955c93e2a87f61cfd350d5d119a"
|
|
|
|
integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
detect-newline "^3.0.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-each@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.7.0.tgz#162a9b3f2328bdd991beaabffbb74745e56577d1"
|
|
|
|
integrity sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==
|
2022-11-20 23:46:04 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
pretty-format "^29.7.0"
|
2019-07-03 19:00:51 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
jest-environment-node@^29.6.3, jest-environment-node@^29.7.0:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.7.0.tgz#0b93e111dda8ec120bc8300e6d1fb9576e164376"
|
|
|
|
integrity sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==
|
|
|
|
dependencies:
|
|
|
|
"@jest/environment" "^29.7.0"
|
|
|
|
"@jest/fake-timers" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@types/node" "*"
|
|
|
|
jest-mock "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-get-type@^25.2.6:
|
|
|
|
version "25.2.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-25.2.6.tgz#0b0a32fab8908b44d508be81681487dbabb8d877"
|
|
|
|
integrity sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
jest-get-type@^28.0.2:
|
|
|
|
version "28.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-28.0.2.tgz#34622e628e4fdcd793d46db8a242227901fcf203"
|
|
|
|
integrity sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-get-type@^29.2.0:
|
|
|
|
version "29.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.2.0.tgz#726646f927ef61d583a3b3adb1ab13f3a5036408"
|
|
|
|
integrity sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
jest-get-type@^29.6.3:
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1"
|
|
|
|
integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==
|
|
|
|
|
|
|
|
jest-haste-map@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.7.0.tgz#3c2396524482f5a0506376e6c858c3bbcc17b104"
|
|
|
|
integrity sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@types/graceful-fs" "^4.1.3"
|
2023-06-14 01:47:41 +00:00
|
|
|
"@types/node" "*"
|
|
|
|
anymatch "^3.0.3"
|
|
|
|
fb-watchman "^2.0.0"
|
|
|
|
graceful-fs "^4.2.9"
|
2023-12-11 15:52:23 +00:00
|
|
|
jest-regex-util "^29.6.3"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
jest-worker "^29.7.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
micromatch "^4.0.4"
|
2023-12-11 15:52:23 +00:00
|
|
|
walker "^1.0.8"
|
2023-06-14 01:47:41 +00:00
|
|
|
optionalDependencies:
|
|
|
|
fsevents "^2.3.2"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
jest-image-snapshot@^5.1.0:
|
|
|
|
version "5.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-image-snapshot/-/jest-image-snapshot-5.2.0.tgz#4af046935b465f0460aa73e890717bbc25d431e9"
|
|
|
|
integrity sha512-msKQqsxr4ZS8S3FQ6ot1SPlDKc4pCfyKY3SxU9LEoASj1zoEfglDYjmxNX53pxpNf7Fp7CJZvwP4xkNXVQgEXA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
chalk "^1.1.3"
|
|
|
|
get-stdin "^5.0.1"
|
|
|
|
glur "^1.1.2"
|
|
|
|
lodash "^4.17.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
mkdirp "^0.5.1"
|
|
|
|
pixelmatch "^5.1.0"
|
|
|
|
pngjs "^3.4.0"
|
|
|
|
rimraf "^2.6.2"
|
|
|
|
ssim.js "^3.1.1"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-leak-detector@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz#5b7ec0dadfdfec0ca383dc9aa016d36b5ea4c728"
|
|
|
|
integrity sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
pretty-format "^29.7.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
|
|
|
jest-matcher-utils@^25.5.0:
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-25.5.0.tgz#fbc98a12d730e5d2453d7f1ed4a4d948e34b7867"
|
|
|
|
integrity sha512-VWI269+9JS5cpndnpCwm7dy7JtGQT30UHfrnM3mXl22gHGt/b7NkjBqXfbhZ8V4B7ANUsjK18PlSBmG0YH7gjw==
|
|
|
|
dependencies:
|
|
|
|
chalk "^3.0.0"
|
|
|
|
jest-diff "^25.5.0"
|
|
|
|
jest-get-type "^25.2.6"
|
|
|
|
pretty-format "^25.5.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
jest-matcher-utils@^28.1.3:
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-28.1.3.tgz#5a77f1c129dd5ba3b4d7fc20728806c78893146e"
|
|
|
|
integrity sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==
|
|
|
|
dependencies:
|
|
|
|
chalk "^4.0.0"
|
|
|
|
jest-diff "^28.1.3"
|
|
|
|
jest-get-type "^28.0.2"
|
|
|
|
pretty-format "^28.1.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-matcher-utils@^29.0.1:
|
|
|
|
version "29.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.3.1.tgz#6e7f53512f80e817dfa148672bd2d5d04914a572"
|
|
|
|
integrity sha512-fkRMZUAScup3txIKfMe3AIZZmPEjWEdsPJFK3AIy5qRohWqQFg1qrmKfYXR9qEkNc7OdAu2N4KPHibEmy4HPeQ==
|
|
|
|
dependencies:
|
|
|
|
chalk "^4.0.0"
|
|
|
|
jest-diff "^29.3.1"
|
|
|
|
jest-get-type "^29.2.0"
|
|
|
|
pretty-format "^29.3.1"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-matcher-utils@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz#ae8fec79ff249fd592ce80e3ee474e83a6c44f12"
|
|
|
|
integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==
|
|
|
|
dependencies:
|
|
|
|
chalk "^4.0.0"
|
|
|
|
jest-diff "^29.7.0"
|
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
pretty-format "^29.7.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-message-util@^25.5.0:
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-25.5.0.tgz#ea11d93204cc7ae97456e1d8716251185b8880ea"
|
|
|
|
integrity sha512-ezddz3YCT/LT0SKAmylVyWWIGYoKHOFOFXx3/nA4m794lfVUskMcwhip6vTgdVrOtYdjeQeis2ypzes9mZb4EA==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.0.0"
|
|
|
|
"@jest/types" "^25.5.0"
|
|
|
|
"@types/stack-utils" "^1.0.1"
|
|
|
|
chalk "^3.0.0"
|
|
|
|
graceful-fs "^4.2.4"
|
|
|
|
micromatch "^4.0.2"
|
|
|
|
slash "^3.0.0"
|
|
|
|
stack-utils "^1.0.1"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
jest-message-util@^28.1.3:
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-28.1.3.tgz#232def7f2e333f1eecc90649b5b94b0055e7c43d"
|
|
|
|
integrity sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
"@babel/code-frame" "^7.12.13"
|
|
|
|
"@jest/types" "^28.1.3"
|
|
|
|
"@types/stack-utils" "^2.0.0"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
micromatch "^4.0.4"
|
|
|
|
pretty-format "^28.1.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
slash "^3.0.0"
|
2022-11-20 23:46:04 +00:00
|
|
|
stack-utils "^2.0.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-message-util@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.7.0.tgz#8bc392e204e95dfe7564abbe72a404e28e51f7f3"
|
|
|
|
integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==
|
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.12.13"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@types/stack-utils" "^2.0.0"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
micromatch "^4.0.4"
|
|
|
|
pretty-format "^29.7.0"
|
|
|
|
slash "^3.0.0"
|
|
|
|
stack-utils "^2.0.3"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-mock@^25.5.0:
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-25.5.0.tgz#a91a54dabd14e37ecd61665d6b6e06360a55387a"
|
|
|
|
integrity sha512-eXWuTV8mKzp/ovHc5+3USJMYsTBhyQ+5A1Mak35dey/RG8GlM4YWVylZuGgVXinaW6tpvk/RSecmF37FKUlpXA==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^25.5.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-mock@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.7.0.tgz#4e836cf60e99c6fcfabe9f99d017f3fdd50a6347"
|
|
|
|
integrity sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@types/node" "*"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-pnp-resolver@^1.2.2:
|
|
|
|
version "1.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e"
|
|
|
|
integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==
|
|
|
|
|
|
|
|
jest-regex-util@^25.2.6:
|
|
|
|
version "25.2.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-25.2.6.tgz#d847d38ba15d2118d3b06390056028d0f2fd3964"
|
|
|
|
integrity sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
jest-regex-util@^29.6.3:
|
|
|
|
version "29.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.6.3.tgz#4a556d9c776af68e1c5f48194f4d0327d24e8a52"
|
|
|
|
integrity sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-resolve-dependencies@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz#1b04f2c095f37fc776ff40803dc92921b1e88428"
|
|
|
|
integrity sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-regex-util "^29.6.3"
|
|
|
|
jest-snapshot "^29.7.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-resolve@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.7.0.tgz#64d6a8992dd26f635ab0c01e5eef4399c6bcbc30"
|
|
|
|
integrity sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==
|
2022-11-20 23:46:04 +00:00
|
|
|
dependencies:
|
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-haste-map "^29.7.0"
|
2022-11-20 23:46:04 +00:00
|
|
|
jest-pnp-resolver "^1.2.2"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-util "^29.7.0"
|
|
|
|
jest-validate "^29.7.0"
|
|
|
|
resolve "^1.20.0"
|
|
|
|
resolve.exports "^2.0.0"
|
2022-11-20 23:46:04 +00:00
|
|
|
slash "^3.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-runner@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.7.0.tgz#809af072d408a53dcfd2e849a4c976d3132f718e"
|
|
|
|
integrity sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/console" "^29.7.0"
|
|
|
|
"@jest/environment" "^29.7.0"
|
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
"@jest/transform" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/node" "*"
|
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
emittery "^0.13.1"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-docblock "^29.7.0"
|
|
|
|
jest-environment-node "^29.7.0"
|
|
|
|
jest-haste-map "^29.7.0"
|
|
|
|
jest-leak-detector "^29.7.0"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-resolve "^29.7.0"
|
|
|
|
jest-runtime "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
jest-watcher "^29.7.0"
|
|
|
|
jest-worker "^29.7.0"
|
|
|
|
p-limit "^3.1.0"
|
|
|
|
source-map-support "0.5.13"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-runtime@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.7.0.tgz#efecb3141cf7d3767a3a0cc8f7c9990587d3d817"
|
|
|
|
integrity sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==
|
|
|
|
dependencies:
|
|
|
|
"@jest/environment" "^29.7.0"
|
|
|
|
"@jest/fake-timers" "^29.7.0"
|
|
|
|
"@jest/globals" "^29.7.0"
|
|
|
|
"@jest/source-map" "^29.6.3"
|
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
"@jest/transform" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
"@types/node" "*"
|
2022-11-20 23:46:04 +00:00
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
cjs-module-lexer "^1.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
collect-v8-coverage "^1.0.0"
|
|
|
|
glob "^7.1.3"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-haste-map "^29.7.0"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-mock "^29.7.0"
|
|
|
|
jest-regex-util "^29.6.3"
|
|
|
|
jest-resolve "^29.7.0"
|
|
|
|
jest-snapshot "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
slash "^3.0.0"
|
|
|
|
strip-bom "^4.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-silent-reporter@^0.5.0:
|
|
|
|
version "0.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-silent-reporter/-/jest-silent-reporter-0.5.0.tgz#5fd8ccd61665227e3bf19d908b7350719d06ff38"
|
|
|
|
integrity sha512-epdLt8Oj0a1AyRiR6F8zx/1SVT1Mi7VU3y4wB2uOBHs/ohIquC7v2eeja7UN54uRPyHInIKWdL+RdG228n5pJQ==
|
2022-11-20 23:46:04 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
chalk "^4.0.0"
|
|
|
|
jest-util "^26.0.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-snapshot@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.7.0.tgz#c2c574c3f51865da1bb329036778a69bf88a6be5"
|
|
|
|
integrity sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@babel/core" "^7.11.6"
|
|
|
|
"@babel/generator" "^7.7.2"
|
|
|
|
"@babel/plugin-syntax-jsx" "^7.7.2"
|
|
|
|
"@babel/plugin-syntax-typescript" "^7.7.2"
|
|
|
|
"@babel/types" "^7.3.3"
|
|
|
|
"@jest/expect-utils" "^29.7.0"
|
|
|
|
"@jest/transform" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
babel-preset-current-node-syntax "^1.0.0"
|
2022-11-20 23:46:04 +00:00
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
expect "^29.7.0"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
jest-diff "^29.7.0"
|
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
jest-matcher-utils "^29.7.0"
|
|
|
|
jest-message-util "^29.7.0"
|
|
|
|
jest-util "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
natural-compare "^1.4.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
pretty-format "^29.7.0"
|
|
|
|
semver "^7.5.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
jest-util@^25.5.0:
|
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-25.5.0.tgz#31c63b5d6e901274d264a4fec849230aa3fa35b0"
|
|
|
|
integrity sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^25.5.0"
|
|
|
|
chalk "^3.0.0"
|
|
|
|
graceful-fs "^4.2.4"
|
|
|
|
is-ci "^2.0.0"
|
|
|
|
make-dir "^3.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-util@^26.0.0:
|
2022-11-23 13:59:18 +00:00
|
|
|
version "26.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1"
|
|
|
|
integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^26.6.2"
|
|
|
|
"@types/node" "*"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
graceful-fs "^4.2.4"
|
|
|
|
is-ci "^2.0.0"
|
|
|
|
micromatch "^4.0.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
jest-util@^28.1.3:
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-28.1.3.tgz#f4f932aa0074f0679943220ff9cbba7e497028b0"
|
|
|
|
integrity sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^28.1.3"
|
|
|
|
"@types/node" "*"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
ci-info "^3.2.0"
|
|
|
|
graceful-fs "^4.2.9"
|
|
|
|
picomatch "^2.2.3"
|
|
|
|
|
|
|
|
jest-util@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc"
|
|
|
|
integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@jest/types" "^29.6.3"
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/node" "*"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
ci-info "^3.2.0"
|
|
|
|
graceful-fs "^4.2.9"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
picomatch "^2.2.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2024-01-12 15:02:31 +00:00
|
|
|
jest-validate@^29.6.3, jest-validate@^29.7.0:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.7.0.tgz#7bf705511c64da591d46b15fce41400d52147d9c"
|
|
|
|
integrity sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/types" "^29.6.3"
|
|
|
|
camelcase "^6.2.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
chalk "^4.0.0"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-get-type "^29.6.3"
|
|
|
|
leven "^3.1.0"
|
|
|
|
pretty-format "^29.7.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-watcher@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.7.0.tgz#7810d30d619c3a62093223ce6bb359ca1b28a2f2"
|
|
|
|
integrity sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/test-result" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
2022-11-20 23:46:04 +00:00
|
|
|
"@types/node" "*"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
ansi-escapes "^4.2.1"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
emittery "^0.13.1"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
string-length "^4.0.1"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
jest-worker@^29.6.3, jest-worker@^29.7.0:
|
2023-12-11 15:52:23 +00:00
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a"
|
|
|
|
integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==
|
|
|
|
dependencies:
|
|
|
|
"@types/node" "*"
|
|
|
|
jest-util "^29.7.0"
|
|
|
|
merge-stream "^2.0.0"
|
|
|
|
supports-color "^8.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jest/-/jest-29.7.0.tgz#994676fc24177f088f1c5e3737f5697204ff2613"
|
|
|
|
integrity sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jest/core" "^29.7.0"
|
|
|
|
"@jest/types" "^29.6.3"
|
2019-09-07 12:57:22 +00:00
|
|
|
import-local "^3.0.2"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
jest-cli "^29.7.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
jiti@^1.21.0:
|
2024-07-01 12:31:58 +00:00
|
|
|
version "1.21.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.6.tgz#6c7f7398dd4b3142767f9a168af2f317a428d268"
|
|
|
|
integrity sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==
|
2024-05-08 08:51:45 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
joi@^17.2.1:
|
|
|
|
version "17.9.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/joi/-/joi-17.9.1.tgz#74899b9fa3646904afa984a11df648eca66c9018"
|
|
|
|
integrity sha512-FariIi9j6QODKATGBrEX7HZcja8Bsh3rfdGYy/Sb65sGlZWK/QWesU1ghk7aJWDj95knjXlQfSmzFSPPkLVsfw==
|
|
|
|
dependencies:
|
|
|
|
"@hapi/hoek" "^9.0.0"
|
|
|
|
"@hapi/topo" "^5.0.0"
|
|
|
|
"@sideway/address" "^4.1.3"
|
|
|
|
"@sideway/formula" "^3.0.1"
|
|
|
|
"@sideway/pinpoint" "^2.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
js-sha3@0.8.0:
|
|
|
|
version "0.8.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840"
|
|
|
|
integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
|
|
|
|
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
|
|
|
|
|
2019-09-05 18:21:37 +00:00
|
|
|
js-yaml@^3.13.1:
|
2019-07-03 19:00:51 +00:00
|
|
|
version "3.13.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847"
|
|
|
|
integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==
|
|
|
|
dependencies:
|
|
|
|
argparse "^1.0.7"
|
2022-11-20 23:46:04 +00:00
|
|
|
esprima "^4.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
jsc-android@^250231.0.0:
|
|
|
|
version "250231.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jsc-android/-/jsc-android-250231.0.0.tgz#91720f8df382a108872fa4b3f558f33ba5e95262"
|
|
|
|
integrity sha512-rS46PvsjYmdmuz1OAWXY/1kCYG7pnf1TBqeTiOJr1iDz7s5DLxxC9n/ZMknLDxzYzNVfI7R95MH10emSSG1Wuw==
|
|
|
|
|
|
|
|
jsc-safe-url@^0.2.2:
|
|
|
|
version "0.2.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/jsc-safe-url/-/jsc-safe-url-0.2.4.tgz#141c14fbb43791e88d5dc64e85a374575a83477a"
|
|
|
|
integrity sha512-0wM3YBWtYePOjfyXQH5MWQ8H7sdk5EXSwZvmSLKk2RboVQ2Bu239jycHDz5J/8Blf3K0Qnoy2b6xD+z10MFB+Q==
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
jscodeshift@^0.14.0:
|
|
|
|
version "0.14.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jscodeshift/-/jscodeshift-0.14.0.tgz#7542e6715d6d2e8bde0b4e883f0ccea358b46881"
|
|
|
|
integrity sha512-7eCC1knD7bLUPuSCwXsMZUH51O8jIcoVyKtI6P0XM0IVzlGjckPy3FIwQlorzbN0Sg79oK+RlohN32Mqf/lrYA==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/core" "^7.13.16"
|
|
|
|
"@babel/parser" "^7.13.16"
|
|
|
|
"@babel/plugin-proposal-class-properties" "^7.13.0"
|
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.13.8"
|
|
|
|
"@babel/plugin-proposal-optional-chaining" "^7.13.12"
|
|
|
|
"@babel/plugin-transform-modules-commonjs" "^7.13.8"
|
|
|
|
"@babel/preset-flow" "^7.13.13"
|
|
|
|
"@babel/preset-typescript" "^7.13.0"
|
|
|
|
"@babel/register" "^7.13.16"
|
2023-04-12 09:55:19 +00:00
|
|
|
babel-core "^7.0.0-bridge.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
chalk "^4.1.2"
|
2023-04-12 09:55:19 +00:00
|
|
|
flow-parser "0.*"
|
|
|
|
graceful-fs "^4.2.4"
|
2023-12-11 15:52:23 +00:00
|
|
|
micromatch "^4.0.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
neo-async "^2.5.0"
|
|
|
|
node-dir "^0.1.17"
|
2023-12-11 15:52:23 +00:00
|
|
|
recast "^0.21.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
temp "^0.8.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
write-file-atomic "^2.3.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
jsesc@^2.5.1:
|
|
|
|
version "2.5.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
|
|
|
|
integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==
|
|
|
|
|
|
|
|
jsesc@~0.5.0:
|
|
|
|
version "0.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d"
|
|
|
|
integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
json-buffer@3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898"
|
|
|
|
integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
json-parse-better-errors@^1.0.1:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
|
|
|
|
integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
json-parse-even-better-errors@^2.3.0:
|
|
|
|
version "2.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d"
|
|
|
|
integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
json5@^2.2.1, json5@^2.2.3:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "2.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
|
|
|
|
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
jsonfile@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
|
|
|
|
integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
|
|
|
|
optionalDependencies:
|
|
|
|
graceful-fs "^4.1.6"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
keyv@^3.0.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9"
|
|
|
|
integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==
|
|
|
|
dependencies:
|
|
|
|
json-buffer "3.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
keyvaluestorage-interface@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz#13ebdf71f5284ad54be94bd1ad9ed79adad515ff"
|
|
|
|
integrity sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
kind-of@^6.0.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "6.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
|
|
|
|
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
kleur@^3.0.3:
|
|
|
|
version "3.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
|
|
|
|
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
latest-version@^5.1.0:
|
|
|
|
version "5.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face"
|
|
|
|
integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==
|
|
|
|
dependencies:
|
|
|
|
package-json "^6.3.0"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
leven@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2"
|
|
|
|
integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
lighthouse-logger@^1.0.0:
|
|
|
|
version "1.4.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/lighthouse-logger/-/lighthouse-logger-1.4.2.tgz#aef90f9e97cd81db367c7634292ee22079280aaa"
|
|
|
|
integrity sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==
|
|
|
|
dependencies:
|
|
|
|
debug "^2.6.9"
|
|
|
|
marky "^1.2.2"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
lines-and-columns@^1.1.6:
|
|
|
|
version "1.1.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
|
|
|
|
integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
listhen@^1.7.2:
|
|
|
|
version "1.7.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/listhen/-/listhen-1.7.2.tgz#66b81740692269d5d8cafdc475020f2fc51afbae"
|
|
|
|
integrity sha512-7/HamOm5YD9Wb7CFgAZkKgVPA96WwhcTQoqtm2VTZGVbVVn3IWKRBTgrU7cchA3Q8k9iCsG8Osoi9GX4JsGM9g==
|
|
|
|
dependencies:
|
|
|
|
"@parcel/watcher" "^2.4.1"
|
|
|
|
"@parcel/watcher-wasm" "^2.4.1"
|
|
|
|
citty "^0.1.6"
|
|
|
|
clipboardy "^4.0.0"
|
|
|
|
consola "^3.2.3"
|
|
|
|
crossws "^0.2.0"
|
|
|
|
defu "^6.1.4"
|
|
|
|
get-port-please "^3.1.2"
|
|
|
|
h3 "^1.10.2"
|
|
|
|
http-shutdown "^1.2.2"
|
|
|
|
jiti "^1.21.0"
|
|
|
|
mlly "^1.6.1"
|
|
|
|
node-forge "^1.3.1"
|
|
|
|
pathe "^1.1.2"
|
|
|
|
std-env "^3.7.0"
|
|
|
|
ufo "^1.4.0"
|
|
|
|
untun "^0.1.3"
|
|
|
|
uqr "^0.1.2"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
load-json-file@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b"
|
|
|
|
integrity sha1-L19Fq5HjMhYjT9U62rZo607AmTs=
|
|
|
|
dependencies:
|
|
|
|
graceful-fs "^4.1.2"
|
|
|
|
parse-json "^4.0.0"
|
|
|
|
pify "^3.0.0"
|
|
|
|
strip-bom "^3.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
locate-path@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
|
2023-12-11 15:52:23 +00:00
|
|
|
integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
p-locate "^2.0.0"
|
|
|
|
path-exists "^3.0.0"
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
locate-path@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e"
|
|
|
|
integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==
|
|
|
|
dependencies:
|
|
|
|
p-locate "^3.0.0"
|
|
|
|
path-exists "^3.0.0"
|
2019-03-04 12:38:41 +00:00
|
|
|
|
2019-12-04 06:52:02 +00:00
|
|
|
locate-path@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0"
|
|
|
|
integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==
|
|
|
|
dependencies:
|
|
|
|
p-locate "^4.1.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
locate-path@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286"
|
|
|
|
integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==
|
|
|
|
dependencies:
|
|
|
|
p-locate "^5.0.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
lodash.debounce@^4.0.8:
|
|
|
|
version "4.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
|
|
|
|
integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
lodash.flattendeep@^4.4.0:
|
|
|
|
version "4.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2"
|
|
|
|
integrity sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
lodash.isequal@4.5.0:
|
|
|
|
version "4.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
|
|
|
|
integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
lodash.throttle@^4.1.1:
|
|
|
|
version "4.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
lodash@4.17.x, lodash@^4.17.10, lodash@^4.17.21, lodash@^4.17.4:
|
2021-05-24 14:25:05 +00:00
|
|
|
version "4.17.21"
|
|
|
|
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
|
|
|
|
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "4.17.15"
|
|
|
|
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
|
|
|
|
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
log-symbols@^4.1.0:
|
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503"
|
|
|
|
integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
2023-06-14 01:47:41 +00:00
|
|
|
chalk "^4.1.0"
|
|
|
|
is-unicode-supported "^0.1.0"
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2021-01-07 12:59:57 +00:00
|
|
|
logkitty@^0.7.1:
|
|
|
|
version "0.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/logkitty/-/logkitty-0.7.1.tgz#8e8d62f4085a826e8d38987722570234e33c6aa7"
|
|
|
|
integrity sha512-/3ER20CTTbahrCrpYfPn7Xavv9diBROZpoXGVZDWMw4b/X4uuUwAC0ki85tgsdMRONURyIJbcOvS94QsUBYPbQ==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
|
|
|
ansi-fragments "^0.2.1"
|
|
|
|
dayjs "^1.8.15"
|
2021-01-07 12:59:57 +00:00
|
|
|
yargs "^15.1.0"
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
lolex@^5.0.0:
|
|
|
|
version "5.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/lolex/-/lolex-5.1.2.tgz#953694d098ce7c07bc5ed6d0e42bc6c0c6d5a367"
|
|
|
|
integrity sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==
|
|
|
|
dependencies:
|
|
|
|
"@sinonjs/commons" "^1.7.0"
|
|
|
|
|
2024-04-02 11:02:54 +00:00
|
|
|
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
|
|
|
|
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
|
|
|
|
dependencies:
|
|
|
|
js-tokens "^3.0.0 || ^4.0.0"
|
|
|
|
|
2022-08-02 10:48:12 +00:00
|
|
|
lottie-ios@3.2.3:
|
|
|
|
version "3.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/lottie-ios/-/lottie-ios-3.2.3.tgz#d5a029ccce611603d178ea7ba725c1446f2310b4"
|
|
|
|
integrity sha512-mubYMN6+1HXa8z3EJKBvNBkl4UoVM4McjESeB2PgvRMSngmJtC5yUMRdhbbrIAn5Liu3hFGao/14s5hQIgtkRQ==
|
|
|
|
|
|
|
|
lottie-react-native@^5.1.3:
|
2024-04-02 11:02:54 +00:00
|
|
|
version "5.1.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/lottie-react-native/-/lottie-react-native-5.1.6.tgz#6ae72829c3c0b95952dddd3d78c043f4dfbcb487"
|
|
|
|
integrity sha512-vhdeZstXMfuVKwnddYWjJgQ/1whGL58IJEJu/iSf0XQ5gAb4pp/+vy91mdYQLezlb8Aw4Vu3fKnqErJL2hwchg==
|
2022-08-02 10:48:12 +00:00
|
|
|
dependencies:
|
|
|
|
invariant "^2.2.2"
|
|
|
|
react-native-safe-modules "^1.0.3"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
lowercase-keys@^1.0.0, lowercase-keys@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f"
|
|
|
|
integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==
|
|
|
|
|
|
|
|
lowercase-keys@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479"
|
|
|
|
integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
lowlight@^1.17.0:
|
|
|
|
version "1.20.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/lowlight/-/lowlight-1.20.0.tgz#ddb197d33462ad0d93bf19d17b6c301aa3941888"
|
|
|
|
integrity sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==
|
|
|
|
dependencies:
|
|
|
|
fault "^1.0.0"
|
|
|
|
highlight.js "~10.7.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
lru-cache@^10.2.0:
|
2024-07-01 12:31:58 +00:00
|
|
|
version "10.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.3.0.tgz#4a4aaf10c84658ab70f79a85a9a3f1e1fb11196b"
|
|
|
|
integrity sha512-CQl19J/g+Hbjbv4Y3mFNNXFEL/5t/KCg8POCuUqd4rMKjGG+j1ybER83hxV58zL+dFI1PTkt3GNFSHRt+d8qEQ==
|
2024-05-08 08:51:45 +00:00
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
lru-cache@^4.0.1:
|
2018-12-09 14:58:03 +00:00
|
|
|
version "4.1.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd"
|
|
|
|
integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
pseudomap "^1.0.2"
|
2018-12-09 14:58:03 +00:00
|
|
|
yallist "^2.1.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
lru-cache@^5.1.1:
|
|
|
|
version "5.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
|
|
|
|
integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
|
|
|
|
dependencies:
|
|
|
|
yallist "^3.0.2"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
lru-cache@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
|
|
|
|
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
|
|
|
|
dependencies:
|
|
|
|
yallist "^4.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
make-dir@^1.0.0:
|
|
|
|
version "1.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
|
|
|
|
integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==
|
|
|
|
dependencies:
|
|
|
|
pify "^3.0.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
make-dir@^2.0.0, make-dir@^2.1.0:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5"
|
|
|
|
integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==
|
|
|
|
dependencies:
|
|
|
|
pify "^4.0.1"
|
|
|
|
semver "^5.6.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
make-dir@^3.0.0:
|
|
|
|
version "3.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.0.2.tgz#04a1acbf22221e1d6ef43559f43e05a90dbb4392"
|
|
|
|
integrity sha512-rYKABKutXa6vXTXhoV18cBE7PaewPXHe/Bdq4v+ZLMhxbWApkFFplT0LcbMW+6BbjnQXzZ/sAvSE/JdguApG5w==
|
|
|
|
dependencies:
|
|
|
|
semver "^6.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
make-dir@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f"
|
|
|
|
integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==
|
|
|
|
dependencies:
|
|
|
|
semver "^6.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
makeerror@1.0.12:
|
|
|
|
version "1.0.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a"
|
|
|
|
integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==
|
|
|
|
dependencies:
|
|
|
|
tmpl "1.0.5"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
makeerror@1.0.x:
|
|
|
|
version "1.0.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c"
|
|
|
|
integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=
|
|
|
|
dependencies:
|
|
|
|
tmpl "1.0.x"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
marky@^1.2.2:
|
|
|
|
version "1.2.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/marky/-/marky-1.2.5.tgz#55796b688cbd72390d2d399eaaf1832c9413e3c0"
|
|
|
|
integrity sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
md5.js@^1.3.4:
|
|
|
|
version "1.3.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f"
|
|
|
|
integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==
|
|
|
|
dependencies:
|
|
|
|
hash-base "^3.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
safe-buffer "^5.1.2"
|
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
mdn-data@2.0.14:
|
|
|
|
version "2.0.14"
|
|
|
|
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
|
|
|
|
integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
memoize-one@^5.0.0:
|
|
|
|
version "5.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e"
|
|
|
|
integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==
|
|
|
|
|
2022-08-24 14:21:49 +00:00
|
|
|
merge-options@^3.0.4:
|
|
|
|
version "3.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/merge-options/-/merge-options-3.0.4.tgz#84709c2aa2a4b24c1981f66c179fe5565cc6dbb7"
|
|
|
|
integrity sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==
|
|
|
|
dependencies:
|
|
|
|
is-plain-obj "^2.1.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
merge-source-map@^1.1.0:
|
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/merge-source-map/-/merge-source-map-1.1.0.tgz#2fdde7e6020939f70906a68f2d7ae685e4c8c646"
|
|
|
|
integrity sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==
|
|
|
|
dependencies:
|
|
|
|
source-map "^0.6.1"
|
|
|
|
|
2019-09-05 18:21:37 +00:00
|
|
|
merge-stream@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
|
|
|
|
integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-babel-transformer@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-babel-transformer/-/metro-babel-transformer-0.80.4.tgz#67dd300dd794d35ce24e22c17f317750669dd2b2"
|
|
|
|
integrity sha512-QP1kjYLap4O3w9tA4bYO8iyuNpR65If5Z97Ku37O4CwQPAwQaTmg67g4OdABS4BVK10fsxdExKp+fC37XirPow==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/core" "^7.20.0"
|
2024-03-22 14:21:44 +00:00
|
|
|
hermes-parser "0.18.2"
|
2023-04-12 09:55:19 +00:00
|
|
|
nullthrows "^1.1.1"
|
2019-03-04 12:38:41 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-cache-key@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-cache-key/-/metro-cache-key-0.80.4.tgz#dc92ca7aa251b9f6ed232fef98a4649fcc5d614e"
|
|
|
|
integrity sha512-okOOSRFou7Mxaaigoi+KxdFIU/ZJtvDCC6l8BYKsdMx86JDlVdvtIgFU4tFrY1yEkv0wnn7WH0X3xSz4mHKwoQ==
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-cache@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.80.4.tgz#3bfe8176353dd1e44fef4361339bd8ee992d5900"
|
|
|
|
integrity sha512-Dj+GoYt4PvsnnE4GdXhqV9PxEF7GPilY5NPeoTgptWZLlaDuTT2+cJQoDOOit1SfRjnF0zqABtVvB6GGBWdtaQ==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-core "0.80.4"
|
2023-12-11 15:52:23 +00:00
|
|
|
rimraf "^3.0.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-config@0.80.4, metro-config@^0.80.3:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-config/-/metro-config-0.80.4.tgz#f14fe1465bf8812cd9a930f9a1667350161050cf"
|
|
|
|
integrity sha512-X3/3tleFYB4SdoxXg8uJ+qc8eITKiLnXs3Ev6pihM4jIM5JD89riwUsSLKVsovfZs8ETqKtjevzfe6jQ2O5NtQ==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
connect "^3.6.5"
|
2019-03-04 12:38:41 +00:00
|
|
|
cosmiconfig "^5.0.5"
|
2024-01-12 15:02:31 +00:00
|
|
|
jest-validate "^29.6.3"
|
2024-03-22 14:21:44 +00:00
|
|
|
metro "0.80.4"
|
|
|
|
metro-cache "0.80.4"
|
|
|
|
metro-core "0.80.4"
|
|
|
|
metro-runtime "0.80.4"
|
2023-12-11 15:52:23 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-core@0.80.4, metro-core@^0.80.3:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.80.4.tgz#1421e432f2f9ec69d82ea1f19832a0544a3ce294"
|
|
|
|
integrity sha512-HRb+zydAhI7QyLpK4D6ARZsKjaBwEn+kCrJEjnVFij8wjJxIIHVilgNCETgg9NWvKJFUoZZCG7ewHkxQ9Qpd8Q==
|
2023-12-11 15:52:23 +00:00
|
|
|
dependencies:
|
2018-11-28 18:02:20 +00:00
|
|
|
lodash.throttle "^4.1.1"
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-resolver "0.80.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-file-map@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-file-map/-/metro-file-map-0.80.4.tgz#22d2e1fc1110490ab1a6c3ab4de4c21fef1951af"
|
|
|
|
integrity sha512-EvBC31JI5vsyebeQ8PWpGENuAWy2Ka7sLqEW7OInW+aLVWmBq02h0BNl33xRgAMz0gwvMf2nKie82hmefYF6ew==
|
2023-12-11 15:52:23 +00:00
|
|
|
dependencies:
|
|
|
|
anymatch "^3.0.3"
|
|
|
|
debug "^2.2.0"
|
|
|
|
fb-watchman "^2.0.0"
|
|
|
|
graceful-fs "^4.2.4"
|
|
|
|
invariant "^2.2.4"
|
2024-03-22 14:21:44 +00:00
|
|
|
jest-worker "^29.6.3"
|
2023-12-11 15:52:23 +00:00
|
|
|
micromatch "^4.0.4"
|
|
|
|
node-abort-controller "^3.1.1"
|
|
|
|
nullthrows "^1.1.1"
|
|
|
|
walker "^1.0.7"
|
|
|
|
optionalDependencies:
|
|
|
|
fsevents "^2.3.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-minify-terser@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-minify-terser/-/metro-minify-terser-0.80.4.tgz#008a4874f6167a4da5d24c90d4281b56f09ba684"
|
|
|
|
integrity sha512-cuxfRZWDWGKjh+Z6t4KJkrvmV4JUKXfvQuAX7Pa7U0Mf1YJdLtoGQ5iVOu/6MkfYGXbppqGk2qmFECrRGRh0cA==
|
2023-12-11 15:52:23 +00:00
|
|
|
dependencies:
|
|
|
|
terser "^5.15.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-resolver@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.80.4.tgz#c04f2bf3995e11ee0484a067b7a51904ccee9964"
|
|
|
|
integrity sha512-PCiVWN+d3gtWlobf8jPypwKx9T1QrZmhLJAyqIWLoOsZbpSfj1dn5h0ajCr8rYi9LNzIHm58GGYJK8VFHNn8Cw==
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-runtime@0.80.4, metro-runtime@^0.80.3:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-runtime/-/metro-runtime-0.80.4.tgz#24fe3e332cfbe303f944fc6d5f0c28bef6704ee1"
|
|
|
|
integrity sha512-CWIvf0zmL4jKHSj81zjUAbEwjTqFQmETI0NIQvN4JNwTSHiz50WPOuHnUUcmwM6Dye/ta6KNTELnERp0tKEYYg==
|
2023-06-14 01:47:41 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/runtime" "^7.0.0"
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-source-map@0.80.4, metro-source-map@^0.80.3:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.80.4.tgz#809d7d0eb36ccf912eecb4dc80ab50177f9fb5e1"
|
|
|
|
integrity sha512-x+0By55ml6IcGqY9x9HE0hyU0S+uDssrTQ0bPvuydG+iKCX85DzGnlT8k0Vs+EYgZl3KMWcvQ9TpGHW4LRL4GQ==
|
2024-01-12 15:02:31 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/traverse" "^7.20.0"
|
|
|
|
"@babel/types" "^7.20.0"
|
|
|
|
invariant "^2.2.4"
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-symbolicate "0.80.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
nullthrows "^1.1.1"
|
2024-03-22 14:21:44 +00:00
|
|
|
ob1 "0.80.4"
|
2018-11-28 18:02:20 +00:00
|
|
|
source-map "^0.5.6"
|
2019-08-06 16:16:51 +00:00
|
|
|
vlq "^1.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-symbolicate@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-symbolicate/-/metro-symbolicate-0.80.4.tgz#1c72c5c7b29941ecd95e53f2a25570e61dfd4eec"
|
|
|
|
integrity sha512-UmtH96G5TrcAgbIqdE4xA8MBS9fbZW9Pln+n7eJ0tQ0Fw0M/jzdpiZzhx3bIB2zzqbdm6Nv/kB1+aEo0WvXdyg==
|
2024-01-12 15:02:31 +00:00
|
|
|
dependencies:
|
|
|
|
invariant "^2.2.4"
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-source-map "0.80.4"
|
2024-01-12 15:02:31 +00:00
|
|
|
nullthrows "^1.1.1"
|
|
|
|
source-map "^0.5.6"
|
|
|
|
through2 "^2.0.1"
|
|
|
|
vlq "^1.0.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-transform-plugins@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-transform-plugins/-/metro-transform-plugins-0.80.4.tgz#fd76d62f080d556a8626ec6a92f55d033aa64283"
|
|
|
|
integrity sha512-cvmTLBA9ET64h+tgHt6prHlvOq98zBA1Glc9+wLZihPJo+Qmu9i3nQ1g4O+4aUnHivDlp+4C00BMNC+aC/buRQ==
|
2021-01-07 12:59:57 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/core" "^7.20.0"
|
|
|
|
"@babel/generator" "^7.20.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
"@babel/template" "^7.0.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/traverse" "^7.20.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
nullthrows "^1.1.1"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-transform-worker@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro-transform-worker/-/metro-transform-worker-0.80.4.tgz#33cab53b0cc527b627f7f7ef9c07a41dd15682d3"
|
|
|
|
integrity sha512-hLCrlxXyyaV64XQNSiyY/0jMVvGXrgXMkpJ4KwH2t4clxbxyt6TBW+4TqmgAeU9WGclY0OuQ0HzfvIZiONcUOw==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/core" "^7.20.0"
|
|
|
|
"@babel/generator" "^7.20.0"
|
|
|
|
"@babel/parser" "^7.20.0"
|
|
|
|
"@babel/types" "^7.20.0"
|
2024-03-22 14:21:44 +00:00
|
|
|
metro "0.80.4"
|
|
|
|
metro-babel-transformer "0.80.4"
|
|
|
|
metro-cache "0.80.4"
|
|
|
|
metro-cache-key "0.80.4"
|
|
|
|
metro-source-map "0.80.4"
|
|
|
|
metro-transform-plugins "0.80.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
nullthrows "^1.1.1"
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
metro@0.80.4, metro@^0.80.3:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/metro/-/metro-0.80.4.tgz#5f8cd8f7b730418ec6e7b377611caf620be33158"
|
|
|
|
integrity sha512-fBhZKU1z44KdhS6sH6Sk97595A66EOniH+jI9OjKDu6piH1SIEqQgdWAuWfJJMzgBHcJceRRvJY1zzsOT/Zx0g==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
2020-05-01 07:20:06 +00:00
|
|
|
"@babel/code-frame" "^7.0.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/core" "^7.20.0"
|
|
|
|
"@babel/generator" "^7.20.0"
|
|
|
|
"@babel/parser" "^7.20.0"
|
2019-03-04 12:38:41 +00:00
|
|
|
"@babel/template" "^7.0.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
"@babel/traverse" "^7.20.0"
|
|
|
|
"@babel/types" "^7.20.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
accepts "^1.3.7"
|
|
|
|
chalk "^4.0.0"
|
2020-05-01 07:20:06 +00:00
|
|
|
ci-info "^2.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
connect "^3.6.5"
|
|
|
|
debug "^2.2.0"
|
|
|
|
denodeify "^1.2.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
error-stack-parser "^2.0.6"
|
2023-06-14 01:47:41 +00:00
|
|
|
graceful-fs "^4.2.4"
|
2024-03-22 14:21:44 +00:00
|
|
|
hermes-parser "0.18.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
image-size "^1.0.2"
|
2019-03-04 12:38:41 +00:00
|
|
|
invariant "^2.2.4"
|
2024-03-22 14:21:44 +00:00
|
|
|
jest-worker "^29.6.3"
|
2023-12-11 15:52:23 +00:00
|
|
|
jsc-safe-url "^0.2.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
lodash.throttle "^4.1.1"
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-babel-transformer "0.80.4"
|
|
|
|
metro-cache "0.80.4"
|
|
|
|
metro-cache-key "0.80.4"
|
|
|
|
metro-config "0.80.4"
|
|
|
|
metro-core "0.80.4"
|
|
|
|
metro-file-map "0.80.4"
|
|
|
|
metro-minify-terser "0.80.4"
|
|
|
|
metro-resolver "0.80.4"
|
|
|
|
metro-runtime "0.80.4"
|
|
|
|
metro-source-map "0.80.4"
|
|
|
|
metro-symbolicate "0.80.4"
|
|
|
|
metro-transform-plugins "0.80.4"
|
|
|
|
metro-transform-worker "0.80.4"
|
2023-04-12 09:55:19 +00:00
|
|
|
mime-types "^2.1.27"
|
2019-03-04 12:38:41 +00:00
|
|
|
node-fetch "^2.2.0"
|
2020-05-01 07:20:06 +00:00
|
|
|
nullthrows "^1.1.1"
|
2023-12-11 15:52:23 +00:00
|
|
|
rimraf "^3.0.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
serialize-error "^2.1.0"
|
|
|
|
source-map "^0.5.6"
|
2023-04-12 09:55:19 +00:00
|
|
|
strip-ansi "^6.0.0"
|
|
|
|
throat "^5.0.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
ws "^7.5.1"
|
2023-12-11 15:52:23 +00:00
|
|
|
yargs "^17.6.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
micromatch@^4.0.2:
|
|
|
|
version "4.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259"
|
|
|
|
integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==
|
|
|
|
dependencies:
|
|
|
|
braces "^3.0.1"
|
|
|
|
picomatch "^2.0.5"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
micromatch@^4.0.4:
|
2022-11-20 23:46:04 +00:00
|
|
|
version "4.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
|
|
|
|
integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
braces "^3.0.2"
|
|
|
|
picomatch "^2.3.1"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
micromatch@^4.0.5:
|
|
|
|
version "4.0.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5"
|
|
|
|
integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==
|
|
|
|
dependencies:
|
|
|
|
braces "^3.0.3"
|
|
|
|
picomatch "^2.3.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
miller-rabin@^4.0.0:
|
|
|
|
version "4.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"
|
|
|
|
integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==
|
|
|
|
dependencies:
|
|
|
|
bn.js "^4.0.0"
|
|
|
|
brorand "^1.0.1"
|
2019-06-02 02:22:56 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
mime-db@1.52.0, "mime-db@>= 1.43.0 < 2":
|
|
|
|
version "1.52.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
|
|
|
|
integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.34:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "2.1.35"
|
|
|
|
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a"
|
|
|
|
integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==
|
|
|
|
dependencies:
|
|
|
|
mime-db "1.52.0"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
mime@1.6.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
|
|
|
|
integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
mime@^2.4.1:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "2.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367"
|
|
|
|
integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==
|
2019-08-06 16:16:51 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
mime@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/mime/-/mime-3.0.0.tgz#b374550dca3a0c18443b0c950a6a58f1931cf7a7"
|
|
|
|
integrity sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==
|
|
|
|
|
2021-01-07 12:59:57 +00:00
|
|
|
mimic-fn@^2.1.0:
|
2019-08-06 16:16:51 +00:00
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
|
|
|
|
integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
mimic-fn@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc"
|
|
|
|
integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
mimic-response@^1.0.0, mimic-response@^1.0.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
|
|
|
|
integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
min-indent@^1.0.0:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
|
|
|
|
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
|
|
|
|
integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
|
|
|
|
|
|
|
|
minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
|
|
|
|
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
minimatch@^3.0.2, minimatch@^3.1.1:
|
2022-11-20 23:46:04 +00:00
|
|
|
version "3.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
|
|
|
|
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
|
|
|
|
dependencies:
|
|
|
|
brace-expansion "^1.1.7"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
minimatch@^3.0.4:
|
|
|
|
version "3.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
|
|
|
|
integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
|
|
|
|
dependencies:
|
|
|
|
brace-expansion "^1.1.7"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
minimist@^1.2.0, minimist@^1.2.5:
|
2020-04-28 08:57:17 +00:00
|
|
|
version "1.2.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
|
|
|
|
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
minipass@^3.0.0:
|
|
|
|
version "3.1.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.5.tgz#71f6251b0a33a49c01b3cf97ff77eda030dff732"
|
|
|
|
integrity sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw==
|
|
|
|
dependencies:
|
|
|
|
yallist "^4.0.0"
|
|
|
|
|
|
|
|
minizlib@^2.1.1:
|
|
|
|
version "2.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931"
|
|
|
|
integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==
|
|
|
|
dependencies:
|
|
|
|
minipass "^3.0.0"
|
|
|
|
yallist "^4.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
mkdirp@^0.5.0, mkdirp@^0.5.1:
|
2020-04-28 08:57:17 +00:00
|
|
|
version "0.5.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
|
|
|
|
integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==
|
|
|
|
dependencies:
|
|
|
|
minimist "^1.2.5"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
mkdirp@^1.0.3, mkdirp@^1.0.4:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
|
|
|
|
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
mlly@^1.6.1, mlly@^1.7.0:
|
|
|
|
version "1.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/mlly/-/mlly-1.7.1.tgz#e0336429bb0731b6a8e887b438cbdae522c8f32f"
|
|
|
|
integrity sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
|
|
|
acorn "^8.11.3"
|
|
|
|
pathe "^1.1.2"
|
2024-07-01 12:31:58 +00:00
|
|
|
pkg-types "^1.1.1"
|
|
|
|
ufo "^1.5.3"
|
2024-05-08 08:51:45 +00:00
|
|
|
|
|
|
|
mri@^1.2.0:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b"
|
|
|
|
integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
ms@2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
|
|
|
|
integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
ms@2.1.2, ms@^2.1.1:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "2.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
|
|
|
|
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
ms@2.1.3:
|
|
|
|
version "2.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
|
|
|
|
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
multiformats@^9.4.2:
|
|
|
|
version "9.9.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.9.0.tgz#c68354e7d21037a8f1f8833c8ccd68618e8f1d37"
|
|
|
|
integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==
|
|
|
|
|
|
|
|
napi-wasm@^1.1.0:
|
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/napi-wasm/-/napi-wasm-1.1.0.tgz#bbe617823765ae9c1bc12ff5942370eae7b2ba4e"
|
|
|
|
integrity sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
natural-compare@^1.4.0:
|
|
|
|
version "1.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
|
|
|
|
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
negotiator@0.6.3:
|
|
|
|
version "0.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
|
|
|
|
integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
|
|
|
|
|
|
|
|
neo-async@^2.5.0:
|
|
|
|
version "2.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
|
|
|
|
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
nested-error-stacks@^2.0.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/nested-error-stacks/-/nested-error-stacks-2.1.0.tgz#0fbdcf3e13fe4994781280524f8b96b0cdff9c61"
|
|
|
|
integrity sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug==
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
next-tick@^1.1.0:
|
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb"
|
|
|
|
integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
nocache@^3.0.1:
|
|
|
|
version "3.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/nocache/-/nocache-3.0.4.tgz#5b37a56ec6e09fc7d401dceaed2eab40c8bfdf79"
|
|
|
|
integrity sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==
|
2021-01-07 12:59:57 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
node-abort-controller@^3.1.1:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-3.1.1.tgz#a94377e964a9a37ac3976d848cb5c765833b8548"
|
|
|
|
integrity sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
node-addon-api@^7.0.0:
|
|
|
|
version "7.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.0.tgz#71f609369379c08e251c558527a107107b5e0fdb"
|
|
|
|
integrity sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
node-dir@^0.1.17:
|
|
|
|
version "0.1.17"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.17.tgz#5f5665d93351335caabef8f1c554516cf5f1e4e5"
|
|
|
|
integrity sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==
|
|
|
|
dependencies:
|
|
|
|
minimatch "^3.0.2"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
node-fetch-native@^1.6.1, node-fetch-native@^1.6.2, node-fetch-native@^1.6.3:
|
|
|
|
version "1.6.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-fetch-native/-/node-fetch-native-1.6.4.tgz#679fc8fd8111266d47d7e72c379f1bed9acff06e"
|
|
|
|
integrity sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==
|
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
node-fetch@^2.2.0, node-fetch@^2.6.0:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "2.6.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.9.tgz#7c7f744b5cc6eb5fd404e0c7a9fec630a55657e6"
|
|
|
|
integrity sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==
|
|
|
|
dependencies:
|
|
|
|
whatwg-url "^5.0.0"
|
2019-03-04 12:38:41 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
node-fetch@^2.6.1:
|
|
|
|
version "2.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
|
|
|
|
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
|
|
|
|
dependencies:
|
|
|
|
whatwg-url "^5.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
node-fetch@^2.6.7:
|
|
|
|
version "2.6.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
|
|
|
|
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
|
|
|
|
dependencies:
|
|
|
|
whatwg-url "^5.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
node-forge@^1.3.1:
|
|
|
|
version "1.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3"
|
|
|
|
integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
node-gyp-build@^4.3.0:
|
|
|
|
version "4.8.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5"
|
|
|
|
integrity sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
node-int64@^0.4.0:
|
|
|
|
version "0.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
|
|
|
|
integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
node-libs-browser@^2.2.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz#b64f513d18338625f90346d27b0d235e631f6425"
|
|
|
|
integrity sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==
|
|
|
|
dependencies:
|
|
|
|
assert "^1.1.1"
|
|
|
|
browserify-zlib "^0.2.0"
|
|
|
|
buffer "^4.3.0"
|
|
|
|
console-browserify "^1.1.0"
|
|
|
|
constants-browserify "^1.0.0"
|
|
|
|
crypto-browserify "^3.11.0"
|
|
|
|
domain-browser "^1.1.1"
|
|
|
|
events "^3.0.0"
|
|
|
|
https-browserify "^1.0.0"
|
|
|
|
os-browserify "^0.3.0"
|
|
|
|
path-browserify "0.0.1"
|
|
|
|
process "^0.11.10"
|
|
|
|
punycode "^1.2.4"
|
|
|
|
querystring-es3 "^0.2.0"
|
|
|
|
readable-stream "^2.3.3"
|
|
|
|
stream-browserify "^2.0.1"
|
|
|
|
stream-http "^2.7.2"
|
|
|
|
string_decoder "^1.0.0"
|
|
|
|
timers-browserify "^2.0.4"
|
|
|
|
tty-browserify "0.0.0"
|
|
|
|
url "^0.11.0"
|
|
|
|
util "^0.11.0"
|
|
|
|
vm-browserify "^1.0.1"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
node-libs-react-native@^1.2.1:
|
|
|
|
version "1.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-libs-react-native/-/node-libs-react-native-1.2.1.tgz#c9fd1d1b2cd2573d3e75633cea8bccd53b334f24"
|
|
|
|
integrity sha512-2LkPntNVa5MInMxtP7fW9F/uGo7KZCURI5/YoNn9/qOGIQpxEqnsndQWAPipsw8+ZVrIxPGkKEgJ2sSdvz0NKQ==
|
|
|
|
dependencies:
|
|
|
|
assert "^1.4.1"
|
|
|
|
base-64 "^0.1.0"
|
|
|
|
browserify-zlib "^0.2.0"
|
|
|
|
buffer "^6.0.3"
|
|
|
|
console-browserify "^1.1.0"
|
|
|
|
constants-browserify "^1.0.0"
|
|
|
|
domain-browser "^1.1.1"
|
|
|
|
events "^1.0.0"
|
|
|
|
https-browserify "^1.0.0"
|
|
|
|
os-browserify "^0.3.0"
|
|
|
|
path-browserify "0.0.0"
|
|
|
|
process "^0.11.0"
|
|
|
|
punycode "^2.1.0"
|
|
|
|
querystring-es3 "^0.2.0"
|
|
|
|
react-native-crypto "^2.0.1"
|
|
|
|
react-native-randombytes "^3.5.1"
|
|
|
|
readable-stream "^2.2.9"
|
|
|
|
stream-http "^2.3.1"
|
|
|
|
string_decoder "^1.0.3"
|
|
|
|
timers-browserify "^2.0.2"
|
|
|
|
tty-browserify "0.0.0"
|
|
|
|
url "^0.11.0"
|
|
|
|
util "^0.10.3"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
node-releases@^2.0.13:
|
|
|
|
version "2.0.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d"
|
|
|
|
integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
node-releases@^2.0.8:
|
|
|
|
version "2.0.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f"
|
|
|
|
integrity sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==
|
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
node-stream-zip@^1.9.1:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "1.15.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea"
|
|
|
|
integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==
|
2020-05-01 07:20:06 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
nodemon@^2.0.16:
|
|
|
|
version "2.0.16"
|
|
|
|
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.16.tgz#d71b31bfdb226c25de34afea53486c8ef225fdef"
|
|
|
|
integrity sha512-zsrcaOfTWRuUzBn3P44RDliLlp263Z/76FPoHFr3cFFkOz0lTPAcIw8dCzfdVIx/t3AtDYCZRCDkoCojJqaG3w==
|
|
|
|
dependencies:
|
|
|
|
chokidar "^3.5.2"
|
|
|
|
debug "^3.2.7"
|
|
|
|
ignore-by-default "^1.0.1"
|
|
|
|
minimatch "^3.0.4"
|
|
|
|
pstree.remy "^1.1.8"
|
|
|
|
semver "^5.7.1"
|
|
|
|
supports-color "^5.5.0"
|
|
|
|
touch "^3.1.0"
|
|
|
|
undefsafe "^2.0.5"
|
|
|
|
update-notifier "^5.1.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
nopt@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88"
|
|
|
|
integrity sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==
|
|
|
|
dependencies:
|
|
|
|
abbrev "1"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
nopt@~1.0.10:
|
|
|
|
version "1.0.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee"
|
|
|
|
integrity sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=
|
|
|
|
dependencies:
|
|
|
|
abbrev "1"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
normalize-package-data@^2.3.2:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "2.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8"
|
|
|
|
integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
hosted-git-info "^2.1.4"
|
2019-06-13 08:46:42 +00:00
|
|
|
resolve "^1.10.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
semver "2 || 3 || 4 || 5"
|
|
|
|
validate-npm-package-license "^3.0.1"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
normalize-path@^3.0.0, normalize-path@~3.0.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
|
|
|
|
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
|
|
|
|
|
2020-03-05 07:01:30 +00:00
|
|
|
normalize-svg-path@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/normalize-svg-path/-/normalize-svg-path-1.0.1.tgz#6f729ad6b70bb4ca4eff2fe4b107489efe1d56fe"
|
|
|
|
integrity sha1-b3Ka1rcLtMpO/y/ksQdInv4dVv4=
|
|
|
|
dependencies:
|
|
|
|
svg-arc-to-cubic-bezier "^3.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
normalize-url@^4.1.0:
|
|
|
|
version "4.5.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a"
|
|
|
|
integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
npm-run-path@^4.0.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "4.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
|
|
|
|
integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==
|
|
|
|
dependencies:
|
|
|
|
path-key "^3.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
npm-run-path@^5.1.0:
|
|
|
|
version "5.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.3.0.tgz#e23353d0ebb9317f174e93417e4a4d82d0249e9f"
|
|
|
|
integrity sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==
|
|
|
|
dependencies:
|
|
|
|
path-key "^4.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
npmlog@^5.0.1:
|
|
|
|
version "5.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0"
|
|
|
|
integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==
|
|
|
|
dependencies:
|
|
|
|
are-we-there-yet "^2.0.0"
|
|
|
|
console-control-strings "^1.1.0"
|
|
|
|
gauge "^3.0.0"
|
|
|
|
set-blocking "^2.0.0"
|
|
|
|
|
2023-08-01 14:10:16 +00:00
|
|
|
nth-check@^2.0.1:
|
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d"
|
|
|
|
integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-08-01 14:10:16 +00:00
|
|
|
boolbase "^1.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-05-01 07:20:06 +00:00
|
|
|
nullthrows@^1.1.1:
|
2019-03-04 12:38:41 +00:00
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1"
|
|
|
|
integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
nyc@^14.1.1:
|
|
|
|
version "14.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/nyc/-/nyc-14.1.1.tgz#151d64a6a9f9f5908a1b73233931e4a0a3075eeb"
|
|
|
|
integrity sha512-OI0vm6ZGUnoGZv/tLdZ2esSVzDwUC88SNs+6JoSOMVxA+gKMB8Tk7jBwgemLx4O40lhhvZCVw1C+OYLOBOPXWw==
|
|
|
|
dependencies:
|
|
|
|
archy "^1.0.0"
|
|
|
|
caching-transform "^3.0.2"
|
|
|
|
convert-source-map "^1.6.0"
|
|
|
|
cp-file "^6.2.0"
|
|
|
|
find-cache-dir "^2.1.0"
|
|
|
|
find-up "^3.0.0"
|
|
|
|
foreground-child "^1.5.6"
|
|
|
|
glob "^7.1.3"
|
|
|
|
istanbul-lib-coverage "^2.0.5"
|
|
|
|
istanbul-lib-hook "^2.0.7"
|
|
|
|
istanbul-lib-instrument "^3.3.0"
|
|
|
|
istanbul-lib-report "^2.0.8"
|
|
|
|
istanbul-lib-source-maps "^3.0.6"
|
|
|
|
istanbul-reports "^2.2.4"
|
|
|
|
js-yaml "^3.13.1"
|
|
|
|
make-dir "^2.1.0"
|
|
|
|
merge-source-map "^1.1.0"
|
|
|
|
resolve-from "^4.0.0"
|
|
|
|
rimraf "^2.6.3"
|
|
|
|
signal-exit "^3.0.2"
|
|
|
|
spawn-wrap "^1.4.2"
|
|
|
|
test-exclude "^5.2.3"
|
|
|
|
uuid "^3.3.2"
|
|
|
|
yargs "^13.2.2"
|
|
|
|
yargs-parser "^13.0.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
ob1@0.80.4:
|
|
|
|
version "0.80.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.80.4.tgz#a2e77e2dbe144c76356c834b994e147e19bb472f"
|
|
|
|
integrity sha512-Lku8OBpq+fhF1ZdKUjbPnTNeqG+3OL0psGAEVJ8zcUiCB5/DPGR/rm3kLcjKDylzC9Rfv540/7I08+oImzfrhw==
|
2024-01-12 15:02:31 +00:00
|
|
|
|
2024-04-02 11:02:54 +00:00
|
|
|
object-assign@^4.1.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "4.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
|
|
|
|
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
ofetch@^1.3.3:
|
|
|
|
version "1.3.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/ofetch/-/ofetch-1.3.4.tgz#7ea65ced3c592ec2b9906975ae3fe1d26a56f635"
|
|
|
|
integrity sha512-KLIET85ik3vhEfS+3fDlc/BAZiAp+43QEC/yCo5zkNoY2YaKvNkOaFr/6wCFgFH1kuYQM5pMNi0Tg8koiIemtw==
|
|
|
|
dependencies:
|
|
|
|
destr "^2.0.3"
|
|
|
|
node-fetch-native "^1.6.3"
|
|
|
|
ufo "^1.5.3"
|
|
|
|
|
|
|
|
ohash@^1.1.3:
|
|
|
|
version "1.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/ohash/-/ohash-1.1.3.tgz#f12c3c50bfe7271ce3fd1097d42568122ccdcf07"
|
|
|
|
integrity sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==
|
|
|
|
|
|
|
|
on-exit-leak-free@^0.2.0:
|
|
|
|
version "0.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/on-exit-leak-free/-/on-exit-leak-free-0.2.0.tgz#b39c9e3bf7690d890f4861558b0d7b90a442d209"
|
|
|
|
integrity sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
on-finished@2.4.1:
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f"
|
|
|
|
integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==
|
|
|
|
dependencies:
|
|
|
|
ee-first "1.1.1"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
on-finished@~2.3.0:
|
|
|
|
version "2.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
ee-first "1.1.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
on-headers@~1.0.2:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f"
|
|
|
|
integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
once@^1.3.0, once@^1.3.1, once@^1.4.0:
|
|
|
|
version "1.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
|
|
|
|
integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
|
|
|
|
dependencies:
|
|
|
|
wrappy "1"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
onetime@^5.1.0:
|
|
|
|
version "5.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5"
|
|
|
|
integrity sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
mimic-fn "^2.1.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
onetime@^5.1.2:
|
|
|
|
version "5.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
|
|
|
|
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
|
|
|
|
dependencies:
|
|
|
|
mimic-fn "^2.1.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
onetime@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4"
|
|
|
|
integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==
|
|
|
|
dependencies:
|
|
|
|
mimic-fn "^4.0.0"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
open@^6.2.0:
|
|
|
|
version "6.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/open/-/open-6.4.0.tgz#5c13e96d0dc894686164f18965ecfe889ecfc8a9"
|
|
|
|
integrity sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==
|
|
|
|
dependencies:
|
|
|
|
is-wsl "^1.1.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
open@^7.0.3:
|
|
|
|
version "7.4.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321"
|
|
|
|
integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==
|
|
|
|
dependencies:
|
|
|
|
is-docker "^2.0.0"
|
|
|
|
is-wsl "^2.1.1"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
ora@^5.4.1:
|
|
|
|
version "5.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18"
|
|
|
|
integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
2023-06-14 01:47:41 +00:00
|
|
|
bl "^4.1.0"
|
|
|
|
chalk "^4.1.0"
|
|
|
|
cli-cursor "^3.1.0"
|
|
|
|
cli-spinners "^2.5.0"
|
|
|
|
is-interactive "^1.0.0"
|
|
|
|
is-unicode-supported "^0.1.0"
|
|
|
|
log-symbols "^4.1.0"
|
|
|
|
strip-ansi "^6.0.0"
|
2019-08-06 16:16:51 +00:00
|
|
|
wcwidth "^1.0.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
os-browserify@^0.3.0:
|
|
|
|
version "0.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27"
|
|
|
|
integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=
|
|
|
|
|
|
|
|
os-homedir@^1.0.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
|
|
|
|
integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M=
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
p-cancelable@^1.0.0:
|
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc"
|
|
|
|
integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
p-limit@^1.1.0:
|
|
|
|
version "1.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
|
|
|
|
integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==
|
|
|
|
dependencies:
|
|
|
|
p-try "^1.0.0"
|
|
|
|
|
2019-12-04 06:52:02 +00:00
|
|
|
p-limit@^2.0.0, p-limit@^2.2.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1"
|
|
|
|
integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
|
|
|
p-try "^2.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
p-limit@^3.0.2, p-limit@^3.1.0:
|
2023-06-14 01:47:41 +00:00
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"
|
|
|
|
integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==
|
|
|
|
dependencies:
|
|
|
|
yocto-queue "^0.1.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
p-locate@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
|
2023-12-11 15:52:23 +00:00
|
|
|
integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
p-limit "^1.1.0"
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
p-locate@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4"
|
|
|
|
integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==
|
|
|
|
dependencies:
|
|
|
|
p-limit "^2.0.0"
|
|
|
|
|
2019-12-04 06:52:02 +00:00
|
|
|
p-locate@^4.1.0:
|
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07"
|
|
|
|
integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==
|
|
|
|
dependencies:
|
|
|
|
p-limit "^2.2.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
p-locate@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834"
|
|
|
|
integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==
|
|
|
|
dependencies:
|
|
|
|
p-limit "^3.0.2"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
p-try@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
|
2023-12-11 15:52:23 +00:00
|
|
|
integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
p-try@^2.0.0:
|
|
|
|
version "2.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
|
|
|
|
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
package-hash@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/package-hash/-/package-hash-3.0.0.tgz#50183f2d36c9e3e528ea0a8605dff57ce976f88e"
|
|
|
|
integrity sha512-lOtmukMDVvtkL84rJHI7dpTYq+0rli8N2wlnqUcBuDWCfVhRUfOmnR9SsoHFMLpACvEV60dX7rd0rFaYDZI+FA==
|
|
|
|
dependencies:
|
|
|
|
graceful-fs "^4.1.15"
|
|
|
|
hasha "^3.0.0"
|
|
|
|
lodash.flattendeep "^4.4.0"
|
|
|
|
release-zalgo "^1.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
package-json@^6.3.0:
|
|
|
|
version "6.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0"
|
|
|
|
integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==
|
|
|
|
dependencies:
|
|
|
|
got "^9.6.0"
|
|
|
|
registry-auth-token "^4.0.0"
|
|
|
|
registry-url "^5.0.0"
|
|
|
|
semver "^6.2.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
pako@~1.0.5:
|
|
|
|
version "1.0.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
|
|
|
|
integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
parse-asn1@^5.0.0, parse-asn1@^5.1.5:
|
|
|
|
version "5.1.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.6.tgz#385080a3ec13cb62a62d39409cb3e88844cdaed4"
|
|
|
|
integrity sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-07-09 10:13:28 +00:00
|
|
|
asn1.js "^5.2.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
browserify-aes "^1.0.0"
|
|
|
|
evp_bytestokey "^1.0.0"
|
|
|
|
pbkdf2 "^3.0.3"
|
|
|
|
safe-buffer "^5.1.1"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
parse-entities@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8"
|
|
|
|
integrity sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==
|
|
|
|
dependencies:
|
|
|
|
character-entities "^1.0.0"
|
|
|
|
character-entities-legacy "^1.0.0"
|
|
|
|
character-reference-invalid "^1.0.0"
|
|
|
|
is-alphanumerical "^1.0.0"
|
|
|
|
is-decimal "^1.0.0"
|
|
|
|
is-hexadecimal "^1.0.0"
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
parse-json@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0"
|
|
|
|
integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=
|
|
|
|
dependencies:
|
|
|
|
error-ex "^1.3.1"
|
|
|
|
json-parse-better-errors "^1.0.1"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
parse-json@^5.2.0:
|
|
|
|
version "5.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
|
|
|
|
integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
"@babel/code-frame" "^7.0.0"
|
|
|
|
error-ex "^1.3.1"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
json-parse-even-better-errors "^2.3.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
lines-and-columns "^1.1.6"
|
|
|
|
|
2020-03-05 07:01:30 +00:00
|
|
|
parse-svg-path@^0.1.2:
|
|
|
|
version "0.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/parse-svg-path/-/parse-svg-path-0.1.2.tgz#7a7ec0d1eb06fa5325c7d3e009b859a09b5d49eb"
|
|
|
|
integrity sha1-en7A0esG+lMlx9PgCbhZoJtdSes=
|
|
|
|
|
2019-09-05 18:21:37 +00:00
|
|
|
parseurl@~1.3.3:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "1.3.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4"
|
|
|
|
integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
path-browserify@0.0.0:
|
|
|
|
version "0.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a"
|
|
|
|
integrity sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
path-browserify@0.0.1:
|
|
|
|
version "0.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a"
|
|
|
|
integrity sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
path-exists@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
|
|
|
|
integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=
|
|
|
|
|
2019-12-04 06:52:02 +00:00
|
|
|
path-exists@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"
|
|
|
|
integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
path-is-absolute@^1.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
|
|
|
|
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
path-key@^3.0.0, path-key@^3.1.0:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
|
|
|
|
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
path-key@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18"
|
|
|
|
integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==
|
|
|
|
|
2018-12-09 14:58:03 +00:00
|
|
|
path-parse@^1.0.6:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
|
|
|
|
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
path-parse@^1.0.7:
|
|
|
|
version "1.0.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
|
|
|
|
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
path-type@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f"
|
|
|
|
integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==
|
|
|
|
dependencies:
|
|
|
|
pify "^3.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
pathe@^1.1.1, pathe@^1.1.2:
|
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/pathe/-/pathe-1.1.2.tgz#6c4cb47a945692e48a1ddd6e4094d170516437ec"
|
|
|
|
integrity sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
pbkdf2@3.0.8:
|
|
|
|
version "3.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.8.tgz#2f8abf16ebecc82277945d748aba1d78761f61e2"
|
|
|
|
integrity sha1-L4q/FuvsyCJ3lF10irodeHYfYeI=
|
|
|
|
dependencies:
|
|
|
|
create-hmac "^1.1.2"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
pbkdf2@^3.0.3:
|
2020-07-09 10:13:28 +00:00
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.1.tgz#cb8724b0fada984596856d1a6ebafd3584654b94"
|
|
|
|
integrity sha512-4Ejy1OPxi9f2tt1rRV7Go7zmfDQ+ZectEQz3VGUQhgq62HtIRPDyG/JtnwIxs6x3uNMwo2V7q1fMvKjb+Tnpqg==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
|
|
|
create-hash "^1.1.2"
|
|
|
|
create-hmac "^1.1.4"
|
|
|
|
ripemd160 "^2.0.1"
|
|
|
|
safe-buffer "^5.0.1"
|
|
|
|
sha.js "^2.4.8"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
picocolors@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
|
|
|
|
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
picomatch@^2.0.4, picomatch@^2.0.5:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
|
|
|
|
integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1:
|
2022-05-27 08:35:43 +00:00
|
|
|
version "2.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
|
|
|
|
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
pify@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
|
|
|
|
integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
pify@^4.0.1:
|
|
|
|
version "4.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"
|
|
|
|
integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
pino-abstract-transport@v0.5.0:
|
|
|
|
version "0.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pino-abstract-transport/-/pino-abstract-transport-0.5.0.tgz#4b54348d8f73713bfd14e3dc44228739aa13d9c0"
|
|
|
|
integrity sha512-+KAgmVeqXYbTtU2FScx1XS3kNyfZ5TrXY07V96QnUSFqo2gAqlvmaxH67Lj7SWazqsMabf+58ctdTcBgnOLUOQ==
|
|
|
|
dependencies:
|
|
|
|
duplexify "^4.1.2"
|
|
|
|
split2 "^4.0.0"
|
|
|
|
|
|
|
|
pino-std-serializers@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-4.0.0.tgz#1791ccd2539c091ae49ce9993205e2cd5dbba1e2"
|
|
|
|
integrity sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q==
|
|
|
|
|
|
|
|
pino@7.11.0:
|
|
|
|
version "7.11.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pino/-/pino-7.11.0.tgz#0f0ea5c4683dc91388081d44bff10c83125066f6"
|
|
|
|
integrity sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg==
|
|
|
|
dependencies:
|
|
|
|
atomic-sleep "^1.0.0"
|
|
|
|
fast-redact "^3.0.0"
|
|
|
|
on-exit-leak-free "^0.2.0"
|
|
|
|
pino-abstract-transport v0.5.0
|
|
|
|
pino-std-serializers "^4.0.0"
|
|
|
|
process-warning "^1.0.0"
|
|
|
|
quick-format-unescaped "^4.0.3"
|
|
|
|
real-require "^0.1.0"
|
|
|
|
safe-stable-stringify "^2.1.0"
|
|
|
|
sonic-boom "^2.2.1"
|
|
|
|
thread-stream "^0.15.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
pirates@^4.0.0, pirates@^4.0.4:
|
|
|
|
version "4.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9"
|
|
|
|
integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
pirates@^4.0.5:
|
|
|
|
version "4.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b"
|
|
|
|
integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
pixelmatch@^5.1.0:
|
|
|
|
version "5.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pixelmatch/-/pixelmatch-5.3.0.tgz#5e5321a7abedfb7962d60dbf345deda87cb9560a"
|
|
|
|
integrity sha512-o8mkY4E/+LNUf6LzX96ht6k6CEDi65k9G2rjMtBe9Oo+VPKSvl+0GKHuH/AlG+GA5LPG/i5hrekkxUc3s2HU+Q==
|
|
|
|
dependencies:
|
|
|
|
pngjs "^6.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
pkg-dir@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b"
|
2023-12-11 15:52:23 +00:00
|
|
|
integrity sha512-ojakdnUgL5pzJYWw2AIDEupaQCX5OPbM688ZevubICjdIX01PRSYKqm33fJoCOJBRseYCTUlQRnBNX+Pchaejw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
find-up "^2.1.0"
|
|
|
|
|
2019-06-13 08:46:42 +00:00
|
|
|
pkg-dir@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3"
|
|
|
|
integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==
|
|
|
|
dependencies:
|
|
|
|
find-up "^3.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
pkg-dir@^4.2.0:
|
|
|
|
version "4.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3"
|
|
|
|
integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==
|
|
|
|
dependencies:
|
|
|
|
find-up "^4.0.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
pkg-types@^1.1.1:
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/pkg-types/-/pkg-types-1.1.1.tgz#07b626880749beb607b0c817af63aac1845a73f2"
|
|
|
|
integrity sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==
|
2024-05-08 08:51:45 +00:00
|
|
|
dependencies:
|
|
|
|
confbox "^0.1.7"
|
2024-07-01 12:31:58 +00:00
|
|
|
mlly "^1.7.0"
|
2024-05-08 08:51:45 +00:00
|
|
|
pathe "^1.1.2"
|
|
|
|
|
2023-10-08 23:42:58 +00:00
|
|
|
pngjs@^3.4.0:
|
2019-08-29 10:47:39 +00:00
|
|
|
version "3.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f"
|
|
|
|
integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
pngjs@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-6.0.0.tgz#ca9e5d2aa48db0228a52c419c3308e87720da821"
|
|
|
|
integrity sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
prepend-http@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
|
|
|
|
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
|
|
|
|
|
2024-07-22 01:39:50 +00:00
|
|
|
prettier-plugin-sort-json@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/prettier-plugin-sort-json/-/prettier-plugin-sort-json-4.0.0.tgz#b72a44b57183dd7f8cef5c07a0614f21d29a0e4a"
|
|
|
|
integrity sha512-zV5g+bWFD2zAqyQ8gCkwUTC49o9FxslaUdirwivt5GZHcf57hCocavykuyYqbExoEsuBOg8IU36OY7zmVEMOWA==
|
|
|
|
|
|
|
|
prettier@^3.3.3:
|
|
|
|
version "3.3.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
|
|
|
|
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==
|
2023-06-19 13:39:12 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
pretty-format@^25.5.0:
|
2020-05-01 07:20:06 +00:00
|
|
|
version "25.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a"
|
|
|
|
integrity sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^25.5.0"
|
|
|
|
ansi-regex "^5.0.0"
|
|
|
|
ansi-styles "^4.0.0"
|
|
|
|
react-is "^16.12.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
pretty-format@^26.5.2, pretty-format@^26.6.2:
|
2022-11-23 13:59:18 +00:00
|
|
|
version "26.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93"
|
|
|
|
integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==
|
|
|
|
dependencies:
|
|
|
|
"@jest/types" "^26.6.2"
|
|
|
|
ansi-regex "^5.0.0"
|
|
|
|
ansi-styles "^4.0.0"
|
|
|
|
react-is "^17.0.1"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
pretty-format@^28.0.0, pretty-format@^28.1.3:
|
|
|
|
version "28.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-28.1.3.tgz#c9fba8cedf99ce50963a11b27d982a9ae90970d5"
|
|
|
|
integrity sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2022-11-20 23:46:04 +00:00
|
|
|
"@jest/schemas" "^28.1.3"
|
|
|
|
ansi-regex "^5.0.1"
|
|
|
|
ansi-styles "^5.0.0"
|
|
|
|
react-is "^18.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
pretty-format@^29.0.3, pretty-format@^29.3.1:
|
2022-11-23 13:59:18 +00:00
|
|
|
version "29.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.3.1.tgz#1841cac822b02b4da8971dacb03e8a871b4722da"
|
|
|
|
integrity sha512-FyLnmb1cYJV8biEIiRyzRFvs2lry7PPIvOqKVe1GCUEYg4YGmlx1qG9EJNMxArYm7piII4qb8UV1Pncq5dxmcg==
|
|
|
|
dependencies:
|
|
|
|
"@jest/schemas" "^29.0.0"
|
|
|
|
ansi-styles "^5.0.0"
|
|
|
|
react-is "^18.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
pretty-format@^29.7.0:
|
|
|
|
version "29.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812"
|
|
|
|
integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==
|
|
|
|
dependencies:
|
|
|
|
"@jest/schemas" "^29.6.3"
|
|
|
|
ansi-styles "^5.0.0"
|
|
|
|
react-is "^18.0.0"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
prismjs@^1.27.0:
|
|
|
|
version "1.29.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.29.0.tgz#f113555a8fa9b57c35e637bba27509dcf802dd12"
|
|
|
|
integrity sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==
|
|
|
|
|
|
|
|
prismjs@~1.27.0:
|
|
|
|
version "1.27.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.27.0.tgz#bb6ee3138a0b438a3653dd4d6ce0cc6510a45057"
|
|
|
|
integrity sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
process-nextick-args@~2.0.0:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
|
|
|
|
integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
process-warning@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/process-warning/-/process-warning-1.0.0.tgz#980a0b25dc38cd6034181be4b7726d89066b4616"
|
|
|
|
integrity sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
process@0.11.10, process@^0.11.0, process@^0.11.10:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "0.11.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
|
|
|
|
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
promise@^8.3.0:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "8.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a"
|
|
|
|
integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==
|
2021-01-07 12:59:57 +00:00
|
|
|
dependencies:
|
|
|
|
asap "~2.0.6"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
prompts@^2.0.1:
|
|
|
|
version "2.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.3.2.tgz#480572d89ecf39566d2bd3fe2c9fccb7c4c0b068"
|
|
|
|
integrity sha512-Q06uKs2CkNYVID0VqwfAl9mipo99zkBv/n2JtWY89Yxa3ZabWSrs0e2KTudKVa3peLUvYXMefDqIleLPVUBZMA==
|
|
|
|
dependencies:
|
|
|
|
kleur "^3.0.3"
|
|
|
|
sisteransi "^1.0.4"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
prompts@^2.4.2:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "2.4.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069"
|
|
|
|
integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==
|
|
|
|
dependencies:
|
|
|
|
kleur "^3.0.3"
|
|
|
|
sisteransi "^1.0.5"
|
|
|
|
|
2023-06-23 12:11:50 +00:00
|
|
|
prop-types@15.x.x, prop-types@^15.7.2:
|
2019-06-02 02:22:56 +00:00
|
|
|
version "15.7.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
|
|
|
|
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
|
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.4.0"
|
|
|
|
object-assign "^4.1.1"
|
|
|
|
react-is "^16.8.1"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
prop-types@^15.8.1:
|
|
|
|
version "15.8.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
|
|
|
|
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
|
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.4.0"
|
|
|
|
object-assign "^4.1.1"
|
|
|
|
react-is "^16.13.1"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
property-information@^5.0.0:
|
|
|
|
version "5.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/property-information/-/property-information-5.6.0.tgz#61675545fb23002f245c6540ec46077d4da3ed69"
|
|
|
|
integrity sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==
|
|
|
|
dependencies:
|
|
|
|
xtend "^4.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
pseudomap@^1.0.2:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
|
|
|
|
integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM=
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
pstree.remy@^1.1.8:
|
|
|
|
version "1.1.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a"
|
|
|
|
integrity sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
public-encrypt@^4.0.0:
|
|
|
|
version "4.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0"
|
|
|
|
integrity sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==
|
|
|
|
dependencies:
|
|
|
|
bn.js "^4.1.0"
|
|
|
|
browserify-rsa "^4.0.0"
|
|
|
|
create-hash "^1.1.0"
|
|
|
|
parse-asn1 "^5.0.0"
|
|
|
|
randombytes "^2.0.1"
|
|
|
|
safe-buffer "^5.1.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
pump@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64"
|
|
|
|
integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==
|
|
|
|
dependencies:
|
|
|
|
end-of-stream "^1.1.0"
|
|
|
|
once "^1.3.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
punycode@1.3.2:
|
|
|
|
version "1.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d"
|
|
|
|
integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=
|
|
|
|
|
|
|
|
punycode@^1.2.4:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
|
|
|
|
integrity sha1-wNWmOycYgArY4esPpSachN1BhF4=
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
punycode@^2.1.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
|
|
|
|
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
punycode@^2.1.1:
|
|
|
|
version "2.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
|
|
|
|
integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
pupa@^2.1.1:
|
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.1.1.tgz#f5e8fd4afc2c5d97828faa523549ed8744a20d62"
|
|
|
|
integrity sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==
|
|
|
|
dependencies:
|
|
|
|
escape-goat "^2.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
pure-rand@^6.0.0:
|
|
|
|
version "6.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.4.tgz#50b737f6a925468679bff00ad20eade53f37d5c7"
|
|
|
|
integrity sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
query-string@7.1.3:
|
|
|
|
version "7.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/query-string/-/query-string-7.1.3.tgz#a1cf90e994abb113a325804a972d98276fe02328"
|
|
|
|
integrity sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==
|
|
|
|
dependencies:
|
|
|
|
decode-uri-component "^0.2.2"
|
|
|
|
filter-obj "^1.1.0"
|
|
|
|
split-on-first "^1.0.0"
|
|
|
|
strict-uri-encode "^2.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
querystring-es3@^0.2.0:
|
|
|
|
version "0.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
|
|
|
|
integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=
|
|
|
|
|
|
|
|
querystring@0.2.0:
|
|
|
|
version "0.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"
|
|
|
|
integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
queue@6.0.2:
|
|
|
|
version "6.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/queue/-/queue-6.0.2.tgz#b91525283e2315c7553d2efa18d83e76432fed65"
|
|
|
|
integrity sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==
|
|
|
|
dependencies:
|
|
|
|
inherits "~2.0.3"
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
quick-format-unescaped@^4.0.3:
|
|
|
|
version "4.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz#93ef6dd8d3453cbc7970dd614fad4c5954d6b5a7"
|
|
|
|
integrity sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
radix3@^1.1.2:
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/radix3/-/radix3-1.1.2.tgz#fd27d2af3896c6bf4bcdfab6427c69c2afc69ec0"
|
|
|
|
integrity sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
|
|
|
|
integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
|
|
|
|
dependencies:
|
|
|
|
safe-buffer "^5.1.0"
|
|
|
|
|
|
|
|
randomfill@^1.0.3:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458"
|
|
|
|
integrity sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==
|
|
|
|
dependencies:
|
|
|
|
randombytes "^2.0.5"
|
|
|
|
safe-buffer "^5.1.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-05 18:21:37 +00:00
|
|
|
range-parser@~1.2.1:
|
2019-06-13 08:46:42 +00:00
|
|
|
version "1.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
|
|
|
|
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
rc@^1.2.8:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "1.2.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
|
|
|
|
integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==
|
|
|
|
dependencies:
|
|
|
|
deep-extend "^0.6.0"
|
|
|
|
ini "~1.3.0"
|
|
|
|
minimist "^1.2.0"
|
|
|
|
strip-json-comments "~2.0.1"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
react-devtools-core@^4.27.7:
|
|
|
|
version "4.28.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.28.5.tgz#c8442b91f068cdf0c899c543907f7f27d79c2508"
|
|
|
|
integrity sha512-cq/o30z9W2Wb4rzBefjv5fBalHU0rJGZCHAkf/RHSBWSSYwh8PlQTqqOJmgIIbBtpj27T6FIPXeomIjZtCNVqA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
shell-quote "^1.6.1"
|
2020-05-01 07:20:06 +00:00
|
|
|
ws "^7"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-23 12:11:50 +00:00
|
|
|
react-dom@18.0.0:
|
|
|
|
version "18.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.0.0.tgz#26b88534f8f1dbb80853e1eabe752f24100d8023"
|
|
|
|
integrity sha512-XqX7uzmFo0pUceWFCt7Gff6IyIMzFUn7QMZrbrQfGxtaxXZIcGQzoNpRLE3fQLnS4XzLLPMZX2T9TRcSrasicw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.1.0"
|
2023-06-23 12:11:50 +00:00
|
|
|
scheduler "^0.21.0"
|
2019-10-03 05:42:01 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-is@^16.12.0, react-is@^16.13.1, react-is@^16.7.0, react-is@^16.8.1:
|
2020-04-28 08:57:17 +00:00
|
|
|
version "16.13.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
|
|
|
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
"react-is@^16.12.0 || ^17.0.0 || ^18.0.0", react-is@^18.0.0, react-is@^18.1.0:
|
2022-11-20 23:46:04 +00:00
|
|
|
version "18.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b"
|
|
|
|
integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
react-is@^17.0.1:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "17.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
|
|
|
|
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
|
|
|
|
|
2021-05-24 14:25:05 +00:00
|
|
|
react-lifecycles-compat@2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-2.0.0.tgz#71d9c4cde47114c4102454f76da055c2bc48c948"
|
|
|
|
integrity sha512-txfpPCQYiazVdcbMRhatqWKcAxJweUu2wDXvts5/7Wyp6+Y9cHojqXHsLPEckzutfHlxZhG8Oiundbmp8Fd6eQ==
|
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
react-native-background-timer@^2.1.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-background-timer/-/react-native-background-timer-2.2.0.tgz#ff82d30899209b924983cc00e6ce174b8de5054a"
|
|
|
|
integrity sha512-Y7N6diSFko/FCJPMmB0PoBlmY1kEcma7qDVwn8t7zi12GLqpe/Vwls97onkSD8/QL+BR33BygUHOrLTPwgeKfg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-01-29 11:33:46 +00:00
|
|
|
react-native-biometrics@^3.0.1:
|
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-biometrics/-/react-native-biometrics-3.0.1.tgz#23c5a0bdbae1fcb1e08b22936223fe0fc4af846e"
|
|
|
|
integrity sha512-Ru80gXRa9KG04sl5AB9HyjLjVbduhqZVjA+AiOSGqr+fNqCDmCu9y5WEksnjbnniNLmq1yGcw+qcLXmR1ddLDQ==
|
|
|
|
|
2022-01-24 13:18:01 +00:00
|
|
|
react-native-blob-util@^0.13.18:
|
|
|
|
version "0.13.18"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-blob-util/-/react-native-blob-util-0.13.18.tgz#7b924d55607bda380d6e9862b621ed1ac0c007ec"
|
|
|
|
integrity sha512-f9NyydQKMd24QiyW+LZmDg2rjCTi4GBff3UJzP1BDgEQ8aoHMs4MZmPs5erNH4E577qhEFp5v7HGzXVRQL8SnQ==
|
|
|
|
dependencies:
|
|
|
|
base-64 "0.1.0"
|
|
|
|
glob "^7.1.6"
|
|
|
|
|
2024-07-31 20:54:21 +00:00
|
|
|
"react-native-camera-kit@git+https://github.com/status-im/react-native-camera-kit.git#refs/tags/v14.0.0-beta15-status-v1":
|
|
|
|
version "14.0.0-beta15"
|
|
|
|
resolved "git+https://github.com/status-im/react-native-camera-kit.git#90821bc45c950c98119acc896651997a5357dd4f"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
react-native-config@^1.5.0:
|
|
|
|
version "1.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-config/-/react-native-config-1.5.0.tgz#ff5a78fbbc2c2a0525788e5f3c86101110651ba4"
|
|
|
|
integrity sha512-slecooA/0tCwhb+RuWEbwLqtKirGh9vWPRpgDfH7uPAraCciqHNH2XjS9ylW+Spn4FUrHg5KWTqUGs9BdBADHg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
react-native-crypto@^2.0.1:
|
|
|
|
version "2.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-crypto/-/react-native-crypto-2.2.0.tgz#c999ed7c96064f830e1f958687f53d0c44025770"
|
|
|
|
integrity sha512-eZu9Y8pa8BN9FU2pIex7MLRAi+Cd1Y6bsxfiufKh7sfraAACJvjQTeW7/zcQAT93WMfM+D0OVk+bubvkrbrUkw==
|
|
|
|
dependencies:
|
|
|
|
browserify-cipher "^1.0.0"
|
|
|
|
browserify-sign "^4.0.4"
|
|
|
|
create-ecdh "^4.0.0"
|
|
|
|
create-hash "^1.1.0"
|
|
|
|
create-hmac "^1.1.0"
|
|
|
|
diffie-hellman "^5.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
pbkdf2 "3.0.8"
|
|
|
|
public-encrypt "^4.0.0"
|
|
|
|
randomfill "^1.0.3"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
react-native-dialogs@1.1.2:
|
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-dialogs/-/react-native-dialogs-1.1.2.tgz#28f6173e381c9354002b1c7839aa23dec4c5f71b"
|
|
|
|
integrity sha512-W0y22JpiywLNVYny32Z85h2zETkY9Neh48zndHJ4Byx/vS96Ex/0fhZ55hRS7XER7SBH3SHo5+TBTuX7ECHrLw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-native-draggable-flatlist@4.0.1:
|
2023-07-26 07:11:17 +00:00
|
|
|
version "4.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-draggable-flatlist/-/react-native-draggable-flatlist-4.0.1.tgz#2f027d387ba4b8f3eb0907340e32cb85e6460df2"
|
|
|
|
integrity sha512-ZO1QUTNx64KZfXGXeXcBfql67l38X7kBcJ3rxUVZzPHt5r035GnGzIC0F8rqSXp6zgnwgUYMfB6zQc5PKmPL9Q==
|
|
|
|
dependencies:
|
|
|
|
"@babel/preset-typescript" "^7.17.12"
|
2021-12-24 15:34:44 +00:00
|
|
|
|
2022-01-24 13:18:01 +00:00
|
|
|
react-native-fast-image@^8.5.11:
|
2021-10-29 12:09:24 +00:00
|
|
|
version "8.5.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-fast-image/-/react-native-fast-image-8.5.11.tgz#e3dc969d0e4e8df026646bf18194465aa55cbc2b"
|
|
|
|
integrity sha512-cNW4bIJg3nvKaheG8vGMfqCt5LMWX9MS5+wMudgKIHbGO51spRr4sgnlhVgwHLcZ5aeNOVJ8CPRxDIWKRq/0QA==
|
|
|
|
|
2019-10-03 10:07:14 +00:00
|
|
|
react-native-fs@^2.14.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.16.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-fs/-/react-native-fs-2.16.6.tgz#2901789a43210a35a0ef0a098019bbef3af395fd"
|
|
|
|
integrity sha512-ZWOooD1AuFoAGY3HS2GY7Qx2LZo4oIg6AK0wbC68detxwvX75R/q9lRqThXNKP6vIo2VHWa0fYUo/SrLw80E8w==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
base-64 "^0.1.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
utf8 "^3.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
react-native-gesture-handler@2.14.1:
|
|
|
|
version "2.14.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-2.14.1.tgz#930640231024b7921435ab476aa501dd4a6b2e01"
|
|
|
|
integrity sha512-YiM1BApV4aKeuwsM6O4C2ufwewYEKk6VMXOt0YqEZFMwABBFWhXLySFZYjBSNRU2USGppJbfHP1q1DfFQpKhdA==
|
2019-06-12 06:25:18 +00:00
|
|
|
dependencies:
|
2020-03-05 07:01:30 +00:00
|
|
|
"@egjs/hammerjs" "^2.0.17"
|
2020-09-16 08:25:21 +00:00
|
|
|
hoist-non-react-statics "^3.3.0"
|
2019-10-03 05:42:01 +00:00
|
|
|
invariant "^2.2.4"
|
2022-09-06 09:19:05 +00:00
|
|
|
lodash "^4.17.21"
|
2019-10-03 05:42:01 +00:00
|
|
|
prop-types "^15.7.2"
|
2019-06-12 06:25:18 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
react-native-get-random-values@^1.11.0:
|
|
|
|
version "1.11.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-get-random-values/-/react-native-get-random-values-1.11.0.tgz#1ca70d1271f4b08af92958803b89dccbda78728d"
|
|
|
|
integrity sha512-4BTbDbRmS7iPdhYLRcz3PGFIpFJBwNZg9g42iwa2P6FOv9vZj/xJc678RZXnLNZzd0qd7Q3CCF6Yd+CU2eoXKQ==
|
|
|
|
dependencies:
|
|
|
|
fast-base64-decode "^1.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-native-gifted-charts@^1.3.2:
|
|
|
|
version "1.3.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-gifted-charts/-/react-native-gifted-charts-1.3.6.tgz#dc2d527bf46d7abdc1672fcdd86bfd54bed9edb1"
|
|
|
|
integrity sha512-jU3ikdxltRtpzcxRmCQGuovQ8dWnai8S+xScU0TgMMpfDuyLNHAFOi2Vu//7TPDWwtSWR2sIOHTtJLKJTqrriw==
|
2023-06-14 01:47:41 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
react-native-hole-view@^3.0.0-alpha4:
|
|
|
|
version "3.0.0-alpha4"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-hole-view/-/react-native-hole-view-3.0.0-alpha4.tgz#b5f54df380636c3b4dfacd5c297117f068fa4531"
|
|
|
|
integrity sha512-pAIQCA13Dn42xLFsVziFXHRtTgRJ13SBrb1vwFG7cIFslMjmBhPdFlUrqYcN+wMTt2+OnZhRxgM4Yaf4+gARDg==
|
2022-08-29 16:02:30 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-native-image-crop-picker@0.40.0:
|
|
|
|
version "0.40.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-image-crop-picker/-/react-native-image-crop-picker-0.40.0.tgz#cf378a4cbdb64b9b6ff94399b8515ff3bdccbf9c"
|
|
|
|
integrity sha512-FpqiCS4CiPQp8qIorlELWKbpi1d9lyhJki9spZr4LShv9hk65GWo6tYJupfTV19o5XcRwJn8d4MHIUoyWMJRTQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-07-17 14:09:36 +00:00
|
|
|
react-native-image-resizer@^1.2.3:
|
|
|
|
version "1.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-image-resizer/-/react-native-image-resizer-1.2.3.tgz#21cb2b158ff950e55a0fc01c2cb61375bd5a03ba"
|
|
|
|
integrity sha512-RDPNJglRmWDZ/7hvu+CbpsKYl6AQmseL8cWX4UkLAHxQWNc5ZdYhP/9avC5xCfyiwkRw+Zmkmv78HO0kt0ewhQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-native-keychain@8.1.2:
|
|
|
|
version "8.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-keychain/-/react-native-keychain-8.1.2.tgz#34291ae472878e5124d081211af5ede7d810e64f"
|
|
|
|
integrity sha512-bhHEui+yMp3Us41NMoRGtnWEJiBE0g8tw5VFpq4mpmXAx6XJYahuM6K3WN5CsUeUl83hYysSL9oFZNKSTPSvYw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-06-12 08:13:26 +00:00
|
|
|
react-native-linear-gradient@3.0.0-alpha.1:
|
|
|
|
version "3.0.0-alpha.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-linear-gradient/-/react-native-linear-gradient-3.0.0-alpha.1.tgz#fa1914462536f052faa211c34240be3ab1856bdd"
|
|
|
|
integrity sha512-vo9ks7m2VTLtbdAIMqwk944SB65+rc0U1a2R1CAQetT282DnH4rI3GKenaa+Gj2gPngF1l7Mc3Jxk9+6IZDraA==
|
2020-09-15 08:12:10 +00:00
|
|
|
|
2022-08-02 10:48:12 +00:00
|
|
|
react-native-lottie-splash-screen@^1.0.1:
|
2024-04-02 11:02:54 +00:00
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-lottie-splash-screen/-/react-native-lottie-splash-screen-1.1.2.tgz#7d044cb6aede33dc30611da7a7d9edcb14ee005f"
|
|
|
|
integrity sha512-5V4sk46UlU2MbRDlncT0O3qtBdqjxKfcW5/VXceU82CPcO0z0ItcaX34L74Zt5fqkR80OW1VCccrsIGly1y0lw==
|
2022-08-02 10:48:12 +00:00
|
|
|
dependencies:
|
|
|
|
lottie-ios "3.2.3"
|
|
|
|
lottie-react-native "^5.1.3"
|
|
|
|
|
2024-05-20 14:51:49 +00:00
|
|
|
react-native-navigation@7.39.0:
|
|
|
|
version "7.39.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-navigation/-/react-native-navigation-7.39.0.tgz#41655d5a822d53362dc1028e5d185d167f52f0bb"
|
|
|
|
integrity sha512-7xc4aGp3v/Eeh8MgIjApoZEE0GuefiMRQh/wpa43t1l1v5hqxzYV9J6dMd5XLzSbIYnJ1ZLd0gCHR5WQdE4O2Q==
|
2021-05-24 14:25:05 +00:00
|
|
|
dependencies:
|
|
|
|
hoist-non-react-statics "3.x.x"
|
|
|
|
lodash "4.17.x"
|
|
|
|
prop-types "15.x.x"
|
|
|
|
react-lifecycles-compat "2.0.0"
|
|
|
|
tslib "1.9.3"
|
2020-06-18 09:59:55 +00:00
|
|
|
|
2023-03-03 12:33:28 +00:00
|
|
|
react-native-orientation-locker@^1.5.0:
|
|
|
|
version "1.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-orientation-locker/-/react-native-orientation-locker-1.5.0.tgz#324853937eed4835ecd1c8613ab2206135d908ac"
|
|
|
|
integrity sha512-4XOCGmNN4BXg5JUFjUuXpsfhPJmbA3LkQilJO1ed+6vL97teTdG2w5IEevKiqL9/hPjeWE8YYtX/YW+yp53hkg==
|
|
|
|
|
2024-04-22 16:01:45 +00:00
|
|
|
react-native-permissions@4.1.5:
|
|
|
|
version "4.1.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-permissions/-/react-native-permissions-4.1.5.tgz#db4d1ddbf076570043f4fd4168f54bb6020aec92"
|
|
|
|
integrity sha512-r6VMRacASmtRHS+GZ+5HQCp9p9kiE+UU9magHOZCXZLTJitdTuVHWZRrb4v4oqZGU+zAp3mZhTQftuMMv+WLUg==
|
2020-07-28 11:06:58 +00:00
|
|
|
|
2024-04-02 11:02:54 +00:00
|
|
|
react-native-randombytes@^3.5.1:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "3.6.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-randombytes/-/react-native-randombytes-3.6.1.tgz#cac578093b5ca38e3e085becffdc6cbcf6f0d654"
|
|
|
|
integrity sha512-qxkwMbOZ0Hff1V7VqpaWrR6ItkA+oF6bnI79Qp9F3Tk8WBsdKDi6m1mi3dEdFWePoRLrhJ2L03rU0yabst1tVw==
|
|
|
|
dependencies:
|
|
|
|
buffer "^4.9.1"
|
|
|
|
sjcl "^1.0.3"
|
|
|
|
|
2023-12-18 04:14:53 +00:00
|
|
|
react-native-reanimated@3.6.1:
|
|
|
|
version "3.6.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.6.1.tgz#5add41efafac6d0befd9786e752e7f26dbe903b7"
|
|
|
|
integrity sha512-F4vG9Yf9PKmE3GaWtVGUpzj3SM6YY2cx1yRHCwiMd1uY7W0gU017LfcVUorboJnj0y5QZqEriEK1Usq2Y8YZqg==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2023-06-14 01:47:41 +00:00
|
|
|
"@babel/plugin-transform-object-assign" "^7.16.7"
|
|
|
|
"@babel/preset-typescript" "^7.16.7"
|
2023-12-11 15:52:23 +00:00
|
|
|
convert-source-map "^2.0.0"
|
2022-06-28 17:27:14 +00:00
|
|
|
invariant "^2.2.4"
|
2019-11-23 15:34:57 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-native-redash@18.1.0:
|
|
|
|
version "18.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-redash/-/react-native-redash-18.1.0.tgz#ebebace19d0d2ed877cb6836b8c824b49354eb93"
|
|
|
|
integrity sha512-bdCFl/ZB7Rf2raIlU6SLV+Dc/rL6UXsQNjEVwTGBukHMeSKp1zs4zVtWaGimbN8P22N4qYvb9Jmw/K94ZWYG0Q==
|
2020-03-05 07:01:30 +00:00
|
|
|
dependencies:
|
|
|
|
abs-svg-path "^0.1.1"
|
|
|
|
normalize-svg-path "^1.0.1"
|
|
|
|
parse-svg-path "^0.1.2"
|
|
|
|
|
2022-08-02 10:48:12 +00:00
|
|
|
react-native-safe-modules@^1.0.3:
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-safe-modules/-/react-native-safe-modules-1.0.3.tgz#f5f29bb9d09d17581193843d4173ad3054f74890"
|
|
|
|
integrity sha512-DUxti4Z+AgJ/ZsO5U7p3uSCUBko8JT8GvFlCeOXk9bMd+4qjpoDvMYpfbixXKgL88M+HwmU/KI1YFN6gsQZyBA==
|
|
|
|
dependencies:
|
|
|
|
dedent "^0.6.0"
|
|
|
|
|
2024-04-08 14:14:07 +00:00
|
|
|
react-native-shadow-2@^7.0.8:
|
|
|
|
version "7.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-shadow-2/-/react-native-shadow-2-7.0.8.tgz#df365ba1d8d22b7c63f1afc66d75308c3d6af4e1"
|
|
|
|
integrity sha512-6QlmbJvHCmDGa85jwtfrVxhro1oGm/ezTlciom0A+i0UFAzxlvmRiMHyKXg1hEB2PQkKPoG6ZpANju4mpqPqGA==
|
|
|
|
dependencies:
|
|
|
|
colord "2.9.2"
|
|
|
|
|
2019-05-07 06:37:43 +00:00
|
|
|
react-native-shake@^3.3.1:
|
2019-09-30 04:58:39 +00:00
|
|
|
version "3.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-shake/-/react-native-shake-3.4.0.tgz#3fa8f682651104b39c0b6c199bfa2ab10b36ce28"
|
|
|
|
integrity sha512-jOPrCC3VW/f8xYL6Yrv4XlSklVepMNF/ZdZ/5e0RzRPY+fexuNr0/Z1bQsPpaGjBd75Tk4WKpS/I/+Bj9oVXxg==
|
2019-05-07 06:37:43 +00:00
|
|
|
dependencies:
|
|
|
|
invariant "^2.2.x"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
react-native-share@10.0.2:
|
|
|
|
version "10.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-share/-/react-native-share-10.0.2.tgz#ba517d20a3bf20385eeeea32d9be9b41395f4dc7"
|
|
|
|
integrity sha512-EZs4MtsyauAI1zP8xXT1hIFB/pXOZJNDCKcgCpEfTZFXgCUzz8MDVbI1ocP2hA59XHRSkqAQdbJ0BFTpjxOBlg==
|
2021-08-30 22:51:19 +00:00
|
|
|
|
2023-04-25 13:13:14 +00:00
|
|
|
react-native-static-safe-area-insets@^2.2.0:
|
|
|
|
version "2.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-static-safe-area-insets/-/react-native-static-safe-area-insets-2.2.0.tgz#dd86b6a38f43964fac8df8c0e6bc8e062527786c"
|
|
|
|
integrity sha512-TLTW2e2kRK3COSK8gMZzwp4wHguFCtcO18itDLn5av/xQblXt9ylu84o+qD9aKJCBfvtNzGOvqqTKqC5GJRZ/g==
|
|
|
|
|
2023-02-22 12:05:42 +00:00
|
|
|
"react-native-status-keycard@git+https://github.com/status-im/react-native-status-keycard.git#refs/tags/v2.5.39":
|
2023-03-03 15:43:41 +00:00
|
|
|
version "2.5.39"
|
2023-02-22 12:05:42 +00:00
|
|
|
resolved "git+https://github.com/status-im/react-native-status-keycard.git#93dd64754e676172310e6ea7187cc49f2dc013c6"
|
2018-12-04 13:49:09 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-native-svg@13.10.0:
|
2023-08-01 14:10:16 +00:00
|
|
|
version "13.10.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-13.10.0.tgz#d3c6222ea9cc1e21e2af0fd59dfbeafe7a3d0dc1"
|
|
|
|
integrity sha512-D/oYTmUi5nsA/2Nw4WYlF1UUi3vZqhpESpiEhpYCIFB/EMd6vz4A/uq3tIzZFcfa5z2oAdGSxRU1TaYr8IcPlQ==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2023-08-01 14:10:16 +00:00
|
|
|
css-select "^5.1.0"
|
|
|
|
css-tree "^1.1.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
react-native-url-polyfill@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-url-polyfill/-/react-native-url-polyfill-2.0.0.tgz#db714520a2985cff1d50ab2e66279b9f91ffd589"
|
|
|
|
integrity sha512-My330Do7/DvKnEvwQc0WdcBnFPploYKp9CYlefDXzIdEaA+PAhDYllkvGeEroEzvc4Kzzj2O4yVdz8v6fjRvhA==
|
|
|
|
dependencies:
|
|
|
|
whatwg-url-without-unicode "8.0.0-3"
|
|
|
|
|
2023-12-27 03:43:29 +00:00
|
|
|
react-native-webview@13.6.3:
|
|
|
|
version "13.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-13.6.3.tgz#f3d26e942ef5cc5a07547f2e47903aa81a68e25e"
|
|
|
|
integrity sha512-IApO0JSj0uAWsBGKWagyfgDYoX29piiMYLmkHtRjKeL1rIVjLoR/bMe7KJ/0X47y86b//a6u3cYQtphyay+F2A==
|
2019-08-06 16:16:51 +00:00
|
|
|
dependencies:
|
2020-02-12 13:09:45 +00:00
|
|
|
escape-string-regexp "2.0.0"
|
2019-08-06 16:16:51 +00:00
|
|
|
invariant "2.2.4"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
react-native@0.73.5:
|
|
|
|
version "0.73.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.73.5.tgz#724fd1ae8ec8fee1dcf619c82bdd1695d3cff463"
|
|
|
|
integrity sha512-iHgDArmF4CrhL0qTj+Rn+CBN5pZWUL9lUGl8ub+V9Hwu/vnzQQh8rTMVSwVd2sV6N76KjpE5a4TfIAHkpIHhKg==
|
|
|
|
dependencies:
|
|
|
|
"@jest/create-cache-key-function" "^29.6.3"
|
|
|
|
"@react-native-community/cli" "12.3.6"
|
|
|
|
"@react-native-community/cli-platform-android" "12.3.6"
|
|
|
|
"@react-native-community/cli-platform-ios" "12.3.6"
|
|
|
|
"@react-native/assets-registry" "0.73.1"
|
|
|
|
"@react-native/codegen" "0.73.3"
|
|
|
|
"@react-native/community-cli-plugin" "0.73.17"
|
|
|
|
"@react-native/gradle-plugin" "0.73.4"
|
|
|
|
"@react-native/js-polyfills" "0.73.1"
|
|
|
|
"@react-native/normalize-colors" "0.73.2"
|
|
|
|
"@react-native/virtualized-lists" "0.73.4"
|
2019-08-06 16:16:51 +00:00
|
|
|
abort-controller "^3.0.0"
|
2020-05-01 07:20:06 +00:00
|
|
|
anser "^1.4.9"
|
2024-03-22 14:21:44 +00:00
|
|
|
ansi-regex "^5.0.0"
|
|
|
|
base64-js "^1.5.1"
|
|
|
|
chalk "^4.0.0"
|
|
|
|
deprecated-react-native-prop-types "^5.0.0"
|
2019-08-06 16:16:51 +00:00
|
|
|
event-target-shim "^5.0.1"
|
2024-03-22 14:21:44 +00:00
|
|
|
flow-enums-runtime "^0.0.6"
|
2019-03-04 12:38:41 +00:00
|
|
|
invariant "^2.2.4"
|
2024-03-22 14:21:44 +00:00
|
|
|
jest-environment-node "^29.6.3"
|
2023-12-11 15:52:23 +00:00
|
|
|
jsc-android "^250231.0.0"
|
2023-06-14 01:47:41 +00:00
|
|
|
memoize-one "^5.0.0"
|
2024-03-22 14:21:44 +00:00
|
|
|
metro-runtime "^0.80.3"
|
|
|
|
metro-source-map "^0.80.3"
|
2023-06-14 01:47:41 +00:00
|
|
|
mkdirp "^0.5.1"
|
2020-05-01 07:20:06 +00:00
|
|
|
nullthrows "^1.1.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
pretty-format "^26.5.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
promise "^8.3.0"
|
2024-03-22 14:21:44 +00:00
|
|
|
react-devtools-core "^4.27.7"
|
|
|
|
react-refresh "^0.14.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
react-shallow-renderer "^16.15.0"
|
2019-08-06 16:16:51 +00:00
|
|
|
regenerator-runtime "^0.13.2"
|
2023-12-11 15:52:23 +00:00
|
|
|
scheduler "0.24.0-canary-efb381bbf-20230505"
|
|
|
|
stacktrace-parser "^0.1.10"
|
2019-08-06 16:16:51 +00:00
|
|
|
whatwg-fetch "^3.0.0"
|
2023-12-11 15:52:23 +00:00
|
|
|
ws "^6.2.2"
|
|
|
|
yargs "^17.6.2"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
react-refresh@^0.14.0:
|
|
|
|
version "0.14.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.14.0.tgz#4e02825378a5f227079554d4284889354e5f553e"
|
|
|
|
integrity sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==
|
2023-04-12 09:55:19 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-shallow-renderer@^16.15.0:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "16.15.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz#48fb2cf9b23d23cde96708fe5273a7d3446f4457"
|
|
|
|
integrity sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==
|
|
|
|
dependencies:
|
|
|
|
object-assign "^4.1.1"
|
|
|
|
react-is "^16.12.0 || ^17.0.0 || ^18.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
react-syntax-highlighter@^15.5.0:
|
|
|
|
version "15.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-syntax-highlighter/-/react-syntax-highlighter-15.5.0.tgz#4b3eccc2325fa2ec8eff1e2d6c18fa4a9e07ab20"
|
|
|
|
integrity sha512-+zq2myprEnQmH5yw6Gqc8lD55QHnpKaU8TOcFeC/Lg/MQSs8UknEA0JC4nTZGFAXC2J2Hyj/ijJ7NlabyPi2gg==
|
|
|
|
dependencies:
|
|
|
|
"@babel/runtime" "^7.3.1"
|
|
|
|
highlight.js "^10.4.1"
|
|
|
|
lowlight "^1.17.0"
|
|
|
|
prismjs "^1.27.0"
|
|
|
|
refractor "^3.6.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react-test-renderer@18.1.0:
|
|
|
|
version "18.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-18.1.0.tgz#35b75754834cf9ab517b6813db94aee0a6b545c3"
|
|
|
|
integrity sha512-OfuueprJFW7h69GN+kr4Ywin7stcuqaYAt1g7airM5cUgP0BoF5G5CXsPGmXeDeEkncb2fqYNECO4y18sSqphg==
|
2022-11-23 13:59:18 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
react-is "^18.1.0"
|
|
|
|
react-shallow-renderer "^16.15.0"
|
|
|
|
scheduler "^0.22.0"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
react@18.2.0:
|
|
|
|
version "18.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
|
|
|
|
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.1.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
read-pkg-up@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-4.0.0.tgz#1b221c6088ba7799601c808f91161c66e58f8978"
|
|
|
|
integrity sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==
|
|
|
|
dependencies:
|
|
|
|
find-up "^3.0.0"
|
|
|
|
read-pkg "^3.0.0"
|
|
|
|
|
|
|
|
read-pkg@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389"
|
|
|
|
integrity sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=
|
|
|
|
dependencies:
|
|
|
|
load-json-file "^4.0.0"
|
|
|
|
normalize-package-data "^2.3.2"
|
|
|
|
path-type "^3.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
readable-stream@^2.0.2, readable-stream@^2.2.9, readable-stream@^2.3.3, readable-stream@^2.3.6:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.3.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
|
|
|
|
integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
core-util-is "~1.0.0"
|
|
|
|
inherits "~2.0.3"
|
|
|
|
isarray "~1.0.0"
|
|
|
|
process-nextick-args "~2.0.0"
|
|
|
|
safe-buffer "~5.1.1"
|
|
|
|
string_decoder "~1.1.1"
|
|
|
|
util-deprecate "~1.0.1"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
readable-stream@^3.1.1:
|
|
|
|
version "3.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967"
|
|
|
|
integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==
|
|
|
|
dependencies:
|
|
|
|
inherits "^2.0.3"
|
|
|
|
string_decoder "^1.1.1"
|
|
|
|
util-deprecate "^1.0.1"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
readable-stream@^3.4.0, readable-stream@^3.6.0:
|
2020-07-09 10:13:28 +00:00
|
|
|
version "3.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
|
|
|
|
integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==
|
|
|
|
dependencies:
|
|
|
|
inherits "^2.0.3"
|
|
|
|
string_decoder "^1.1.1"
|
|
|
|
util-deprecate "^1.0.1"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
readable-stream@~2.3.6:
|
|
|
|
version "2.3.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b"
|
|
|
|
integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==
|
|
|
|
dependencies:
|
|
|
|
core-util-is "~1.0.0"
|
|
|
|
inherits "~2.0.3"
|
|
|
|
isarray "~1.0.0"
|
|
|
|
process-nextick-args "~2.0.0"
|
|
|
|
safe-buffer "~5.1.1"
|
|
|
|
string_decoder "~1.1.1"
|
|
|
|
util-deprecate "~1.0.1"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
readdirp@~3.6.0:
|
|
|
|
version "3.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
|
|
|
|
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
|
|
|
|
dependencies:
|
|
|
|
picomatch "^2.2.1"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
readline-sync@^1.4.7:
|
|
|
|
version "1.4.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/readline-sync/-/readline-sync-1.4.10.tgz#41df7fbb4b6312d673011594145705bf56d8873b"
|
|
|
|
integrity sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
readline@^1.3.0:
|
|
|
|
version "1.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/readline/-/readline-1.3.0.tgz#c580d77ef2cfc8752b132498060dc9793a7ac01c"
|
|
|
|
integrity sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
real-require@^0.1.0:
|
|
|
|
version "0.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/real-require/-/real-require-0.1.0.tgz#736ac214caa20632847b7ca8c1056a0767df9381"
|
|
|
|
integrity sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
recast@^0.21.0:
|
|
|
|
version "0.21.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/recast/-/recast-0.21.5.tgz#e8cd22bb51bcd6130e54f87955d33a2b2e57b495"
|
|
|
|
integrity sha512-hjMmLaUXAm1hIuTqOdeYObMslq/q+Xff6QE3Y2P+uoHAg2nmVlLBps2hzh1UJDdMtDTMXOFewK6ky51JQIeECg==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
2023-12-11 15:52:23 +00:00
|
|
|
ast-types "0.15.2"
|
2023-04-12 09:55:19 +00:00
|
|
|
esprima "~4.0.0"
|
|
|
|
source-map "~0.6.1"
|
|
|
|
tslib "^2.0.1"
|
2022-11-23 13:59:18 +00:00
|
|
|
|
|
|
|
redent@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f"
|
|
|
|
integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==
|
|
|
|
dependencies:
|
|
|
|
indent-string "^4.0.0"
|
|
|
|
strip-indent "^3.0.0"
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
refractor@^3.6.0:
|
|
|
|
version "3.6.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/refractor/-/refractor-3.6.0.tgz#ac318f5a0715ead790fcfb0c71f4dd83d977935a"
|
|
|
|
integrity sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==
|
|
|
|
dependencies:
|
|
|
|
hastscript "^6.0.0"
|
|
|
|
parse-entities "^2.0.0"
|
|
|
|
prismjs "~1.27.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
regenerate-unicode-properties@^10.1.0:
|
|
|
|
version "10.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c"
|
|
|
|
integrity sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==
|
|
|
|
dependencies:
|
|
|
|
regenerate "^1.4.2"
|
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
regenerate-unicode-properties@^8.2.0:
|
|
|
|
version "8.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec"
|
|
|
|
integrity sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
|
|
|
regenerate "^1.4.0"
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
regenerate@^1.4.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11"
|
|
|
|
integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
regenerate@^1.4.2:
|
|
|
|
version "1.4.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a"
|
|
|
|
integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
regenerator-runtime@^0.13.10:
|
|
|
|
version "0.13.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz#ed07b19616bcbec5da6274ebc75ae95634bfc2ee"
|
|
|
|
integrity sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw==
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "0.13.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
|
|
|
|
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
|
|
|
|
|
|
|
|
regenerator-runtime@^0.13.4:
|
2020-04-28 08:57:17 +00:00
|
|
|
version "0.13.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697"
|
|
|
|
integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
regenerator-transform@^0.15.2:
|
|
|
|
version "0.15.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4"
|
|
|
|
integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2020-04-28 08:57:17 +00:00
|
|
|
"@babel/runtime" "^7.8.4"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
regexpu-core@^4.7.0:
|
|
|
|
version "4.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.7.0.tgz#fcbf458c50431b0bb7b45d6967b8192d91f3d938"
|
|
|
|
integrity sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
|
|
|
regenerate "^1.4.0"
|
2020-04-28 08:57:17 +00:00
|
|
|
regenerate-unicode-properties "^8.2.0"
|
|
|
|
regjsgen "^0.5.1"
|
|
|
|
regjsparser "^0.6.4"
|
2019-06-13 08:46:42 +00:00
|
|
|
unicode-match-property-ecmascript "^1.0.4"
|
2020-04-28 08:57:17 +00:00
|
|
|
unicode-match-property-value-ecmascript "^1.2.0"
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
regexpu-core@^5.3.1:
|
|
|
|
version "5.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b"
|
|
|
|
integrity sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==
|
|
|
|
dependencies:
|
|
|
|
"@babel/regjsgen" "^0.8.0"
|
|
|
|
regenerate "^1.4.2"
|
|
|
|
regenerate-unicode-properties "^10.1.0"
|
|
|
|
regjsparser "^0.9.1"
|
|
|
|
unicode-match-property-ecmascript "^2.0.0"
|
|
|
|
unicode-match-property-value-ecmascript "^2.1.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
registry-auth-token@^4.0.0:
|
|
|
|
version "4.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250"
|
|
|
|
integrity sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==
|
|
|
|
dependencies:
|
|
|
|
rc "^1.2.8"
|
|
|
|
|
|
|
|
registry-url@^5.0.0:
|
|
|
|
version "5.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009"
|
|
|
|
integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==
|
|
|
|
dependencies:
|
|
|
|
rc "^1.2.8"
|
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
regjsgen@^0.5.1:
|
|
|
|
version "0.5.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.1.tgz#48f0bf1a5ea205196929c0d9798b42d1ed98443c"
|
|
|
|
integrity sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
regjsparser@^0.6.4:
|
|
|
|
version "0.6.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.4.tgz#a769f8684308401a66e9b529d2436ff4d0666272"
|
|
|
|
integrity sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
jsesc "~0.5.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
regjsparser@^0.9.1:
|
|
|
|
version "0.9.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709"
|
|
|
|
integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==
|
|
|
|
dependencies:
|
|
|
|
jsesc "~0.5.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
release-zalgo@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/release-zalgo/-/release-zalgo-1.0.0.tgz#09700b7e5074329739330e535c5a90fb67851730"
|
|
|
|
integrity sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=
|
|
|
|
dependencies:
|
|
|
|
es6-error "^4.0.1"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
require-directory@^2.1.1:
|
|
|
|
version "2.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
|
|
|
|
integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I=
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
require-main-filename@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
|
|
|
|
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
resolve-cwd@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d"
|
|
|
|
integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==
|
|
|
|
dependencies:
|
|
|
|
resolve-from "^5.0.0"
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
resolve-from@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==
|
2019-03-04 12:38:41 +00:00
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
resolve-from@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
|
|
|
|
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
resolve-from@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69"
|
|
|
|
integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
resolve.exports@^2.0.0:
|
|
|
|
version "2.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800"
|
|
|
|
integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
resolve@^1.10.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.16.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.16.1.tgz#49fac5d8bacf1fd53f200fa51247ae736175832c"
|
|
|
|
integrity sha512-rmAglCSqWWMrrBv/XM6sW0NuRFiKViw/W4d9EbC4pt+49H8JwHy+mcGmALTEg504AUDcLTvb1T2q3E9AnmY+ig==
|
2019-03-04 12:38:41 +00:00
|
|
|
dependencies:
|
|
|
|
path-parse "^1.0.6"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
resolve@^1.14.2:
|
2022-11-20 23:46:04 +00:00
|
|
|
version "1.22.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
|
|
|
|
integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
|
|
|
|
dependencies:
|
|
|
|
is-core-module "^2.9.0"
|
|
|
|
path-parse "^1.0.7"
|
|
|
|
supports-preserve-symlinks-flag "^1.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
resolve@^1.20.0:
|
|
|
|
version "1.22.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"
|
|
|
|
integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==
|
|
|
|
dependencies:
|
|
|
|
is-core-module "^2.13.0"
|
|
|
|
path-parse "^1.0.7"
|
|
|
|
supports-preserve-symlinks-flag "^1.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
responselike@^1.0.2:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
|
|
|
|
integrity sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=
|
|
|
|
dependencies:
|
|
|
|
lowercase-keys "^1.0.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
restore-cursor@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e"
|
|
|
|
integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2023-06-14 01:47:41 +00:00
|
|
|
onetime "^5.1.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
signal-exit "^3.0.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
rimraf@^2.6.2, rimraf@^2.6.3:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "2.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
|
|
|
|
integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2018-12-09 14:58:03 +00:00
|
|
|
glob "^7.1.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
rimraf@^3.0.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
|
|
|
|
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
|
|
|
|
dependencies:
|
|
|
|
glob "^7.1.3"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
rimraf@~2.6.2:
|
|
|
|
version "2.6.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab"
|
|
|
|
integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==
|
|
|
|
dependencies:
|
|
|
|
glob "^7.1.3"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
ripemd160@^2.0.0, ripemd160@^2.0.1:
|
|
|
|
version "2.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"
|
|
|
|
integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==
|
|
|
|
dependencies:
|
|
|
|
hash-base "^3.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
rxjs@^7.0.0:
|
|
|
|
version "7.8.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.0.tgz#90a938862a82888ff4c7359811a595e14e1e09a4"
|
|
|
|
integrity sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==
|
|
|
|
dependencies:
|
|
|
|
tslib "^2.1.0"
|
|
|
|
|
2019-09-05 18:21:37 +00:00
|
|
|
safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "5.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
|
|
|
|
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
|
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0:
|
|
|
|
version "5.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
|
|
|
|
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
|
2019-09-05 18:21:37 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
safe-stable-stringify@^2.1.0:
|
|
|
|
version "2.4.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz#138c84b6f6edb3db5f8ef3ef7115b8f55ccbf886"
|
|
|
|
integrity sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==
|
|
|
|
|
2024-04-02 11:02:54 +00:00
|
|
|
safer-buffer@^2.1.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
|
|
|
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
scheduler@0.24.0-canary-efb381bbf-20230505:
|
|
|
|
version "0.24.0-canary-efb381bbf-20230505"
|
|
|
|
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.24.0-canary-efb381bbf-20230505.tgz#5dddc60e29f91cd7f8b983d7ce4a99c2202d178f"
|
|
|
|
integrity sha512-ABvovCDe/k9IluqSh4/ISoq8tIJnW8euVAWYt5j/bg6dRnqwQwiGO1F/V4AyK96NGF/FB04FhOUDuWj8IKfABA==
|
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.1.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
scheduler@^0.21.0:
|
|
|
|
version "0.21.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.21.0.tgz#6fd2532ff5a6d877b6edb12f00d8ab7e8f308820"
|
|
|
|
integrity sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ==
|
2023-04-12 09:55:19 +00:00
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.1.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
scheduler@^0.22.0:
|
|
|
|
version "0.22.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.22.0.tgz#83a5d63594edf074add9a7198b1bae76c3db01b8"
|
|
|
|
integrity sha512-6QAm1BgQI88NPYymgGQLCZgvep4FyePDWFpXVK+zNSUgHwlqpJy8VEh8Et0KxTACS4VWwMousBElAZOH9nkkoQ==
|
|
|
|
dependencies:
|
|
|
|
loose-envify "^1.1.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
scrypt-js@3.0.1:
|
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312"
|
|
|
|
integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
semver-diff@^3.1.1:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b"
|
|
|
|
integrity sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==
|
|
|
|
dependencies:
|
|
|
|
semver "^6.3.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"semver@2 || 3 || 4 || 5", semver@^5.6.0, semver@^5.7.1:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "5.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
|
|
|
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
2019-06-02 02:22:56 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "6.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
|
|
|
|
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-09-04 09:41:26 +00:00
|
|
|
semver@^6.3.1:
|
|
|
|
version "6.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
|
|
|
|
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
semver@^7.3.4, semver@^7.3.5:
|
2022-05-19 15:50:41 +00:00
|
|
|
version "7.3.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f"
|
|
|
|
integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==
|
|
|
|
dependencies:
|
|
|
|
lru-cache "^6.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
semver@^7.5.2, semver@^7.5.3, semver@^7.5.4:
|
2023-12-11 15:52:23 +00:00
|
|
|
version "7.5.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
|
|
|
|
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
|
|
|
|
dependencies:
|
|
|
|
lru-cache "^6.0.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
send@0.18.0:
|
|
|
|
version "0.18.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be"
|
|
|
|
integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
|
|
|
debug "2.6.9"
|
2023-04-12 09:55:19 +00:00
|
|
|
depd "2.0.0"
|
|
|
|
destroy "1.2.0"
|
2019-06-13 08:46:42 +00:00
|
|
|
encodeurl "~1.0.2"
|
|
|
|
escape-html "~1.0.3"
|
|
|
|
etag "~1.8.1"
|
|
|
|
fresh "0.5.2"
|
2023-04-12 09:55:19 +00:00
|
|
|
http-errors "2.0.0"
|
2019-06-13 08:46:42 +00:00
|
|
|
mime "1.6.0"
|
2023-04-12 09:55:19 +00:00
|
|
|
ms "2.1.3"
|
|
|
|
on-finished "2.4.1"
|
2019-06-13 08:46:42 +00:00
|
|
|
range-parser "~1.2.1"
|
2023-04-12 09:55:19 +00:00
|
|
|
statuses "2.0.1"
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
serialize-error@^2.1.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
serve-static@^1.13.1:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "1.15.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540"
|
|
|
|
integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
|
|
|
encodeurl "~1.0.2"
|
|
|
|
escape-html "~1.0.3"
|
|
|
|
parseurl "~1.3.3"
|
2023-04-12 09:55:19 +00:00
|
|
|
send "0.18.0"
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
set-blocking@^2.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
|
|
|
|
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
|
|
|
|
|
2024-04-02 11:02:54 +00:00
|
|
|
setimmediate@^1.0.4:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285"
|
|
|
|
integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
setprototypeof@1.2.0:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"
|
|
|
|
integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
sha.js@^2.4.0, sha.js@^2.4.8:
|
|
|
|
version "2.4.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7"
|
|
|
|
integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==
|
|
|
|
dependencies:
|
|
|
|
inherits "^2.0.1"
|
|
|
|
safe-buffer "^5.0.1"
|
|
|
|
|
Upgrade shadow-cljs and ClojureScript (#15417)
This commit upgrades Shadow CLJS from 2.11.16 (released on Feb/21) to latest
2.25.0 (Jul/23), so ~1.5 years worth of upgrades. By upgrading shadow we
can finally use the latest major Clojure version 1.11.x.
Why upgrade shadow?
- Shadow CLJS controls the ClojureScript version we can use. In order to use the
latest major Clojure version we must upgrade Shadow CLJS.
- Shadow CLJS releases new versions very frequently, and if you take a look at
its changelog https://github.com/thheller/shadow-cljs/blob/master/CHANGELOG.md, you'll see
it had tons and tons of bug fixes over the years. I hope some of them help
improve the DX for certain contributors who recently reported issues with
it.
- Clojure 1.11 brings new features, bug fixes and even performance improvements
(although I think the performance mostly impacts Clojure on the JVM). See the
changelog https://github.com/clojure/clojure/blob/master/changes.md#changes-to-clojure-in-version-1110
Things that can be beneficial to us, or are interesting nonetheless:
- New :as-alias to be used in require, which is like :as but does not require
the namespace to load. This means namespaced keywords using :as-alias can't
cause circular dependency errors. This feature would very useful if we used
namespaced keywords, but we don't, so...
https://github.com/clojure/clojure/blob/master/changes.md#22-as-alias-in-require
- New macros run-test and run-test-var to run single test with fixtures and
report.
- New iteration function, useful for processing paginated data.
https://www.abhinavomprakash.com/posts/clojure-iteration/
- New update-keys function: applies a function to every key in a map.
- New update-vals function: applies a function to every value in a map.
Examples for update-vals and update-keys. They should perform better than the
common reduce-kv approach since they use a transient data structure.
(let [m {:a 1 :b 2}]
(update-vals m inc)) ; => {:a 2, :b 3}
(let [m {:a 1 :b 2}]
(update-keys m name)) ; => {"a" 1, "b" 2}
Why change namespaces within __tests__ directories?
Any namespace with the word --tests-- throws an error, like the one below. I
didn't bother investigating why, so I changed the guidelines to reflect the new
convention. It's probably related to the double dashes in the name.
Namespace quo2.components.dividers.--tests--.divider-label-component-spec has a
segment starting with an invalid JavaScript identifier at line 1
2023-07-28 16:40:54 +00:00
|
|
|
shadow-cljs-jar@1.3.4:
|
|
|
|
version "1.3.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/shadow-cljs-jar/-/shadow-cljs-jar-1.3.4.tgz#0939d91c468b4bc5eab5a958f79e7ef5696fdf62"
|
|
|
|
integrity sha512-cZB2pzVXBnhpJ6PQdsjO+j/MksR28mv4QD/hP/2y1fsIa9Z9RutYgh3N34FZ8Ktl4puAXaIGlct+gMCJ5BmwmA==
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2023-12-04 13:49:51 +00:00
|
|
|
shadow-cljs@2.26.2:
|
|
|
|
version "2.26.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/shadow-cljs/-/shadow-cljs-2.26.2.tgz#c9d443940d679c33696009598b01e02a176f6a67"
|
|
|
|
integrity sha512-xBJxBxSpfoVQLSDA+WN+ZgtnyA5qYf3EE4ARZpov0JOz0YBTdIQajnNYMs5+5OzCbbNfhWGLybyu/Pj4dIwsWw==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2020-07-09 10:13:28 +00:00
|
|
|
node-libs-browser "^2.2.1"
|
2019-09-07 12:57:22 +00:00
|
|
|
readline-sync "^1.4.7"
|
Upgrade shadow-cljs and ClojureScript (#15417)
This commit upgrades Shadow CLJS from 2.11.16 (released on Feb/21) to latest
2.25.0 (Jul/23), so ~1.5 years worth of upgrades. By upgrading shadow we
can finally use the latest major Clojure version 1.11.x.
Why upgrade shadow?
- Shadow CLJS controls the ClojureScript version we can use. In order to use the
latest major Clojure version we must upgrade Shadow CLJS.
- Shadow CLJS releases new versions very frequently, and if you take a look at
its changelog https://github.com/thheller/shadow-cljs/blob/master/CHANGELOG.md, you'll see
it had tons and tons of bug fixes over the years. I hope some of them help
improve the DX for certain contributors who recently reported issues with
it.
- Clojure 1.11 brings new features, bug fixes and even performance improvements
(although I think the performance mostly impacts Clojure on the JVM). See the
changelog https://github.com/clojure/clojure/blob/master/changes.md#changes-to-clojure-in-version-1110
Things that can be beneficial to us, or are interesting nonetheless:
- New :as-alias to be used in require, which is like :as but does not require
the namespace to load. This means namespaced keywords using :as-alias can't
cause circular dependency errors. This feature would very useful if we used
namespaced keywords, but we don't, so...
https://github.com/clojure/clojure/blob/master/changes.md#22-as-alias-in-require
- New macros run-test and run-test-var to run single test with fixtures and
report.
- New iteration function, useful for processing paginated data.
https://www.abhinavomprakash.com/posts/clojure-iteration/
- New update-keys function: applies a function to every key in a map.
- New update-vals function: applies a function to every value in a map.
Examples for update-vals and update-keys. They should perform better than the
common reduce-kv approach since they use a transient data structure.
(let [m {:a 1 :b 2}]
(update-vals m inc)) ; => {:a 2, :b 3}
(let [m {:a 1 :b 2}]
(update-keys m name)) ; => {"a" 1, "b" 2}
Why change namespaces within __tests__ directories?
Any namespace with the word --tests-- throws an error, like the one below. I
didn't bother investigating why, so I changed the guidelines to reflect the new
convention. It's probably related to the double dashes in the name.
Namespace quo2.components.dividers.--tests--.divider-label-component-spec has a
segment starting with an invalid JavaScript identifier at line 1
2023-07-28 16:40:54 +00:00
|
|
|
shadow-cljs-jar "1.3.4"
|
2019-09-07 12:57:22 +00:00
|
|
|
source-map-support "^0.4.15"
|
|
|
|
which "^1.3.1"
|
Upgrade shadow-cljs and ClojureScript (#15417)
This commit upgrades Shadow CLJS from 2.11.16 (released on Feb/21) to latest
2.25.0 (Jul/23), so ~1.5 years worth of upgrades. By upgrading shadow we
can finally use the latest major Clojure version 1.11.x.
Why upgrade shadow?
- Shadow CLJS controls the ClojureScript version we can use. In order to use the
latest major Clojure version we must upgrade Shadow CLJS.
- Shadow CLJS releases new versions very frequently, and if you take a look at
its changelog https://github.com/thheller/shadow-cljs/blob/master/CHANGELOG.md, you'll see
it had tons and tons of bug fixes over the years. I hope some of them help
improve the DX for certain contributors who recently reported issues with
it.
- Clojure 1.11 brings new features, bug fixes and even performance improvements
(although I think the performance mostly impacts Clojure on the JVM). See the
changelog https://github.com/clojure/clojure/blob/master/changes.md#changes-to-clojure-in-version-1110
Things that can be beneficial to us, or are interesting nonetheless:
- New :as-alias to be used in require, which is like :as but does not require
the namespace to load. This means namespaced keywords using :as-alias can't
cause circular dependency errors. This feature would very useful if we used
namespaced keywords, but we don't, so...
https://github.com/clojure/clojure/blob/master/changes.md#22-as-alias-in-require
- New macros run-test and run-test-var to run single test with fixtures and
report.
- New iteration function, useful for processing paginated data.
https://www.abhinavomprakash.com/posts/clojure-iteration/
- New update-keys function: applies a function to every key in a map.
- New update-vals function: applies a function to every value in a map.
Examples for update-vals and update-keys. They should perform better than the
common reduce-kv approach since they use a transient data structure.
(let [m {:a 1 :b 2}]
(update-vals m inc)) ; => {:a 2, :b 3}
(let [m {:a 1 :b 2}]
(update-keys m name)) ; => {"a" 1, "b" 2}
Why change namespaces within __tests__ directories?
Any namespace with the word --tests-- throws an error, like the one below. I
didn't bother investigating why, so I changed the guidelines to reflect the new
convention. It's probably related to the double dashes in the name.
Namespace quo2.components.dividers.--tests--.divider-label-component-spec has a
segment starting with an invalid JavaScript identifier at line 1
2023-07-28 16:40:54 +00:00
|
|
|
ws "^7.4.6"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
shallow-clone@^3.0.0:
|
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3"
|
|
|
|
integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==
|
|
|
|
dependencies:
|
|
|
|
kind-of "^6.0.2"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
shebang-command@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
|
|
|
|
integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
|
|
|
|
dependencies:
|
|
|
|
shebang-regex "^3.0.0"
|
|
|
|
|
|
|
|
shebang-regex@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
|
|
|
|
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
|
|
|
|
|
2019-09-05 18:21:37 +00:00
|
|
|
shell-quote@^1.6.1:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "1.8.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.0.tgz#20d078d0eaf71d54f43bd2ba14a1b5b9bfa5c8ba"
|
|
|
|
integrity sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ==
|
2019-09-05 18:21:37 +00:00
|
|
|
|
2023-06-23 13:26:24 +00:00
|
|
|
shell-quote@^1.7.3:
|
2022-11-20 23:46:04 +00:00
|
|
|
version "1.7.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.4.tgz#33fe15dee71ab2a81fcbd3a52106c5cfb9fb75d8"
|
|
|
|
integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
signal-exit@^3.0.0, signal-exit@^3.0.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"
|
|
|
|
integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
signal-exit@^3.0.3, signal-exit@^3.0.7:
|
|
|
|
version "3.0.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
|
|
|
|
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
|
2021-11-15 04:42:11 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
signal-exit@^4.1.0:
|
|
|
|
version "4.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
|
|
|
|
integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
sisteransi@^1.0.4, sisteransi@^1.0.5:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
|
|
|
|
integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
sjcl@^1.0.3:
|
|
|
|
version "1.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/sjcl/-/sjcl-1.0.8.tgz#f2ec8d7dc1f0f21b069b8914a41a8f236b0e252a"
|
|
|
|
integrity sha512-LzIjEQ0S0DpIgnxMEayM1rq9aGwGRG4OnZhCdjx7glTaJtf4zRfpg87ImfjSJjoW9vKpagd82McDOwbRT5kQKQ==
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
slash@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
|
|
|
|
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
|
|
|
|
|
|
|
|
slice-ansi@^2.0.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636"
|
|
|
|
integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^3.2.0"
|
|
|
|
astral-regex "^1.0.0"
|
|
|
|
is-fullwidth-code-point "^2.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
sonic-boom@^2.2.1:
|
|
|
|
version "2.8.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/sonic-boom/-/sonic-boom-2.8.0.tgz#c1def62a77425090e6ad7516aad8eb402e047611"
|
|
|
|
integrity sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==
|
|
|
|
dependencies:
|
|
|
|
atomic-sleep "^1.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
source-map-support@0.5.13:
|
|
|
|
version "0.5.13"
|
|
|
|
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932"
|
|
|
|
integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
buffer-from "^1.0.0"
|
|
|
|
source-map "^0.6.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
source-map-support@^0.4.15:
|
|
|
|
version "0.4.18"
|
|
|
|
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f"
|
|
|
|
integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==
|
|
|
|
dependencies:
|
|
|
|
source-map "^0.5.6"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
source-map-support@^0.5.16, source-map-support@^0.5.9, source-map-support@~0.5.20:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "0.5.21"
|
|
|
|
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"
|
|
|
|
integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
|
|
|
|
dependencies:
|
|
|
|
buffer-from "^1.0.0"
|
|
|
|
source-map "^0.6.0"
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
source-map@^0.5.0, source-map@^0.5.6:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "0.5.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
|
|
|
|
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "0.6.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
|
|
|
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
source-map@^0.7.3:
|
|
|
|
version "0.7.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
|
|
|
|
integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==
|
|
|
|
|
2022-11-03 07:55:33 +00:00
|
|
|
space-separated-tokens@^1.0.0:
|
|
|
|
version "1.1.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899"
|
|
|
|
integrity sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
spawn-command@^0.0.2-1:
|
|
|
|
version "0.0.2-1"
|
|
|
|
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0"
|
|
|
|
integrity sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
spawn-wrap@^1.4.2:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "1.4.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-1.4.3.tgz#81b7670e170cca247d80bf5faf0cfb713bdcf848"
|
|
|
|
integrity sha512-IgB8md0QW/+tWqcavuFgKYR/qIRvJkRLPJDFaoXtLLUaVcCDK0+HeFTkmQHj3eprcYhc+gOl0aEA1w7qZlYezw==
|
2019-07-03 19:00:51 +00:00
|
|
|
dependencies:
|
|
|
|
foreground-child "^1.5.6"
|
|
|
|
mkdirp "^0.5.0"
|
|
|
|
os-homedir "^1.0.1"
|
|
|
|
rimraf "^2.6.2"
|
|
|
|
signal-exit "^3.0.2"
|
|
|
|
which "^1.3.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
spdx-correct@^3.0.0:
|
2018-12-09 14:58:03 +00:00
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4"
|
|
|
|
integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
|
|
|
spdx-expression-parse "^3.0.0"
|
|
|
|
spdx-license-ids "^3.0.0"
|
|
|
|
|
|
|
|
spdx-exceptions@^2.1.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d"
|
|
|
|
integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
spdx-expression-parse@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0"
|
|
|
|
integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==
|
|
|
|
dependencies:
|
|
|
|
spdx-exceptions "^2.1.0"
|
|
|
|
spdx-license-ids "^3.0.0"
|
|
|
|
|
|
|
|
spdx-license-ids@^3.0.0:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "3.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654"
|
|
|
|
integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
split-on-first@^1.0.0:
|
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f"
|
|
|
|
integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==
|
|
|
|
|
|
|
|
split2@^4.0.0:
|
|
|
|
version "4.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/split2/-/split2-4.2.0.tgz#c9c5920904d148bab0b9f67145f245a86aadbfa4"
|
|
|
|
integrity sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
sprintf-js@~1.0.2:
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
|
|
|
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
ssim.js@^3.1.1:
|
|
|
|
version "3.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/ssim.js/-/ssim.js-3.5.0.tgz#d7276b9ee99b57a5ff0db34035f02f35197e62df"
|
|
|
|
integrity sha512-Aj6Jl2z6oDmgYFFbQqK7fght19bXdOxY7Tj03nF+03M9gCBAjeIiO8/PlEGMfKDwYpw4q6iBqVq2YuREorGg/g==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
stack-utils@^1.0.1:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8"
|
|
|
|
integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
stack-utils@^2.0.3:
|
2022-11-23 13:59:18 +00:00
|
|
|
version "2.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f"
|
|
|
|
integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==
|
2022-11-20 23:46:04 +00:00
|
|
|
dependencies:
|
|
|
|
escape-string-regexp "^2.0.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
stackframe@^1.3.4:
|
|
|
|
version "1.3.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310"
|
|
|
|
integrity sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
stacktrace-parser@^0.1.10:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "0.1.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz#29fb0cae4e0d0b85155879402857a1639eb6051a"
|
|
|
|
integrity sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==
|
2019-06-13 08:46:42 +00:00
|
|
|
dependencies:
|
2019-10-07 13:13:12 +00:00
|
|
|
type-fest "^0.7.1"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
statuses@2.0.1:
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"
|
|
|
|
integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==
|
|
|
|
|
|
|
|
statuses@~1.5.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
std-env@^3.7.0:
|
|
|
|
version "3.7.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.7.0.tgz#c9f7386ced6ecf13360b6c6c55b8aaa4ef7481d2"
|
|
|
|
integrity sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
stream-browserify@^2.0.1:
|
|
|
|
version "2.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.2.tgz#87521d38a44aa7ee91ce1cd2a47df0cb49dd660b"
|
|
|
|
integrity sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==
|
|
|
|
dependencies:
|
|
|
|
inherits "~2.0.1"
|
|
|
|
readable-stream "^2.0.2"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
stream-http@^2.3.1, stream-http@^2.7.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.8.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc"
|
|
|
|
integrity sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==
|
|
|
|
dependencies:
|
|
|
|
builtin-status-codes "^3.0.0"
|
|
|
|
inherits "^2.0.1"
|
|
|
|
readable-stream "^2.3.6"
|
|
|
|
to-arraybuffer "^1.0.0"
|
|
|
|
xtend "^4.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
stream-shift@^1.0.2:
|
|
|
|
version "1.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.3.tgz#85b8fab4d71010fc3ba8772e8046cc49b8a3864b"
|
|
|
|
integrity sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==
|
|
|
|
|
|
|
|
strict-uri-encode@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
|
|
|
|
integrity sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
string-length@^4.0.1:
|
|
|
|
version "4.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a"
|
|
|
|
integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
2023-04-12 09:55:19 +00:00
|
|
|
char-regex "^1.0.2"
|
|
|
|
strip-ansi "^6.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.2.2, string-width@^4.2.3:
|
2022-05-19 15:50:41 +00:00
|
|
|
version "4.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
|
|
|
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
|
|
dependencies:
|
|
|
|
emoji-regex "^8.0.0"
|
|
|
|
is-fullwidth-code-point "^3.0.0"
|
|
|
|
strip-ansi "^6.0.1"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
string-width@^3.0.0, string-width@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961"
|
|
|
|
integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==
|
|
|
|
dependencies:
|
|
|
|
emoji-regex "^7.0.1"
|
|
|
|
is-fullwidth-code-point "^2.0.0"
|
|
|
|
strip-ansi "^5.1.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
string-width@^4.1.0, string-width@^4.2.0:
|
|
|
|
version "4.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5"
|
|
|
|
integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==
|
|
|
|
dependencies:
|
|
|
|
emoji-regex "^8.0.0"
|
|
|
|
is-fullwidth-code-point "^3.0.0"
|
|
|
|
strip-ansi "^6.0.0"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
string_decoder@^1.0.0, string_decoder@^1.0.3, string_decoder@^1.1.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "1.3.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
|
|
|
|
integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==
|
|
|
|
dependencies:
|
|
|
|
safe-buffer "~5.2.0"
|
2019-09-05 18:21:37 +00:00
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
string_decoder@~1.1.1:
|
|
|
|
version "1.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
|
|
|
|
integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
|
|
|
|
dependencies:
|
|
|
|
safe-buffer "~5.1.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
strip-ansi@^3.0.0:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
|
|
|
|
integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=
|
|
|
|
dependencies:
|
|
|
|
ansi-regex "^2.0.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
|
|
|
|
version "5.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae"
|
|
|
|
integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==
|
|
|
|
dependencies:
|
|
|
|
ansi-regex "^4.1.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
strip-ansi@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532"
|
|
|
|
integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==
|
|
|
|
dependencies:
|
|
|
|
ansi-regex "^5.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
strip-ansi@^6.0.1:
|
|
|
|
version "6.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
|
|
|
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
|
|
dependencies:
|
|
|
|
ansi-regex "^5.0.1"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
strip-bom@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
|
|
|
|
integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
strip-bom@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878"
|
|
|
|
integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==
|
|
|
|
|
|
|
|
strip-final-newline@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad"
|
|
|
|
integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
strip-final-newline@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd"
|
|
|
|
integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
strip-indent@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001"
|
|
|
|
integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==
|
|
|
|
dependencies:
|
|
|
|
min-indent "^1.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
strip-json-comments@^3.1.1:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
|
|
|
|
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
strip-json-comments@~2.0.1:
|
|
|
|
version "2.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
|
|
|
|
integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo=
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
strnum@^1.0.5:
|
|
|
|
version "1.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db"
|
|
|
|
integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==
|
|
|
|
|
2019-12-04 06:52:02 +00:00
|
|
|
sudo-prompt@^9.0.0:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "9.2.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.2.1.tgz#77efb84309c9ca489527a4e749f287e6bdd52afd"
|
|
|
|
integrity sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==
|
2019-12-04 06:52:02 +00:00
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
supports-color@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
|
|
|
|
integrity sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
supports-color@^5.3.0, supports-color@^5.5.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "5.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
|
|
|
|
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
|
|
|
|
dependencies:
|
|
|
|
has-flag "^3.0.0"
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
supports-color@^6.1.0:
|
|
|
|
version "6.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3"
|
|
|
|
integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==
|
|
|
|
dependencies:
|
|
|
|
has-flag "^3.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
supports-color@^7.1.0:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "7.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1"
|
|
|
|
integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==
|
|
|
|
dependencies:
|
|
|
|
has-flag "^4.0.0"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
supports-color@^8.0.0, supports-color@^8.1.0:
|
2022-12-20 12:07:00 +00:00
|
|
|
version "8.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"
|
|
|
|
integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
|
|
|
|
dependencies:
|
|
|
|
has-flag "^4.0.0"
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
supports-preserve-symlinks-flag@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
|
|
|
|
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
|
|
|
|
|
2020-03-05 07:01:30 +00:00
|
|
|
svg-arc-to-cubic-bezier@^3.0.0:
|
|
|
|
version "3.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/svg-arc-to-cubic-bezier/-/svg-arc-to-cubic-bezier-3.2.0.tgz#390c450035ae1c4a0104d90650304c3bc814abe6"
|
|
|
|
integrity sha512-djbJ/vZKZO+gPoSDThGNpKDO+o+bAeA4XQKovvkNCqnIS2t+S4qnLAGQhyyrulhCFRl1WWzAp0wUDV8PpTVU3g==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
system-architecture@^0.1.0:
|
|
|
|
version "0.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/system-architecture/-/system-architecture-0.1.0.tgz#71012b3ac141427d97c67c56bc7921af6bff122d"
|
|
|
|
integrity sha512-ulAk51I9UVUyJgxlv9M6lFot2WP3e7t8Kz9+IS6D4rVba1tR9kON+Ey69f+1R4Q8cd45Lod6a4IcJIxnzGc/zA==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
tar@^6.1.11:
|
2021-11-15 04:42:11 +00:00
|
|
|
version "6.1.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621"
|
|
|
|
integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==
|
|
|
|
dependencies:
|
|
|
|
chownr "^2.0.0"
|
|
|
|
fs-minipass "^2.0.0"
|
|
|
|
minipass "^3.0.0"
|
|
|
|
minizlib "^2.1.1"
|
|
|
|
mkdirp "^1.0.3"
|
|
|
|
yallist "^4.0.0"
|
|
|
|
|
2024-03-22 14:21:44 +00:00
|
|
|
temp-dir@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e"
|
|
|
|
integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
temp@^0.8.4:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "0.8.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.4.tgz#8c97a33a4770072e0a05f919396c7665a7dd59f2"
|
|
|
|
integrity sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==
|
|
|
|
dependencies:
|
|
|
|
rimraf "~2.6.2"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
terser@^5.15.0:
|
|
|
|
version "5.19.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/terser/-/terser-5.19.4.tgz#941426fa482bf9b40a0308ab2b3cd0cf7c775ebd"
|
|
|
|
integrity sha512-6p1DjHeuluwxDXcuT9VR8p64klWJKo1ILiy19s6C9+0Bh2+NWTX6nD9EPppiER4ICkHDVB1RkVpin/YW2nQn/g==
|
|
|
|
dependencies:
|
|
|
|
"@jridgewell/source-map" "^0.3.3"
|
|
|
|
acorn "^8.8.2"
|
|
|
|
commander "^2.20.0"
|
|
|
|
source-map-support "~0.5.20"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
test-exclude@^5.2.3:
|
|
|
|
version "5.2.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.2.3.tgz#c3d3e1e311eb7ee405e092dac10aefd09091eac0"
|
|
|
|
integrity sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==
|
|
|
|
dependencies:
|
|
|
|
glob "^7.1.3"
|
|
|
|
minimatch "^3.0.4"
|
|
|
|
read-pkg-up "^4.0.0"
|
|
|
|
require-main-filename "^2.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
test-exclude@^6.0.0:
|
|
|
|
version "6.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e"
|
|
|
|
integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==
|
|
|
|
dependencies:
|
|
|
|
"@istanbuljs/schema" "^0.1.2"
|
|
|
|
glob "^7.1.4"
|
|
|
|
minimatch "^3.0.4"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
thread-stream@^0.15.1:
|
|
|
|
version "0.15.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/thread-stream/-/thread-stream-0.15.2.tgz#fb95ad87d2f1e28f07116eb23d85aba3bc0425f4"
|
|
|
|
integrity sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==
|
|
|
|
dependencies:
|
|
|
|
real-require "^0.1.0"
|
|
|
|
|
2022-11-23 13:59:18 +00:00
|
|
|
throat@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b"
|
|
|
|
integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
through2@^2.0.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "2.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
|
|
|
|
integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==
|
|
|
|
dependencies:
|
|
|
|
readable-stream "~2.3.6"
|
|
|
|
xtend "~4.0.1"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
timers-browserify@^2.0.2:
|
|
|
|
version "2.0.12"
|
|
|
|
resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.12.tgz#44a45c11fbf407f34f97bccd1577c652361b00ee"
|
|
|
|
integrity sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==
|
|
|
|
dependencies:
|
|
|
|
setimmediate "^1.0.4"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
timers-browserify@^2.0.4:
|
|
|
|
version "2.0.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.11.tgz#800b1f3eee272e5bc53ee465a04d0e804c31211f"
|
|
|
|
integrity sha512-60aV6sgJ5YEbzUdn9c8kYGIqOubPoUdqQCul3SBAsRCZ40s6Y5cMcrW4dt3/k/EsbLVJNl9n6Vz3fTc+k2GeKQ==
|
|
|
|
dependencies:
|
|
|
|
setimmediate "^1.0.4"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
tmpl@1.0.5:
|
|
|
|
version "1.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
|
|
|
|
integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
tmpl@1.0.x:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
|
|
|
|
integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
to-arraybuffer@^1.0.0:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43"
|
|
|
|
integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
to-fast-properties@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
|
|
|
|
integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
to-readable-stream@^1.0.0:
|
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771"
|
|
|
|
integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
to-regex-range@^5.0.1:
|
|
|
|
version "5.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
|
|
|
|
integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
|
|
|
|
dependencies:
|
|
|
|
is-number "^7.0.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
toidentifier@1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"
|
|
|
|
integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
touch@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b"
|
|
|
|
integrity sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==
|
|
|
|
dependencies:
|
|
|
|
nopt "~1.0.10"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
tr46@~0.0.3:
|
|
|
|
version "0.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
|
|
|
|
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
tree-kill@^1.2.2:
|
|
|
|
version "1.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"
|
|
|
|
integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
tslib@1.14.1:
|
|
|
|
version "1.14.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
|
|
|
|
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
|
|
|
|
|
2021-05-24 14:25:05 +00:00
|
|
|
tslib@1.9.3:
|
|
|
|
version "1.9.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
|
|
|
|
integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
tslib@^2.0.1:
|
|
|
|
version "2.5.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
|
|
|
|
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
tslib@^2.1.0:
|
|
|
|
version "2.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e"
|
|
|
|
integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
tty-browserify@0.0.0:
|
|
|
|
version "0.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
|
|
|
|
integrity sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=
|
|
|
|
|
|
|
|
type-detect@4.0.8:
|
|
|
|
version "4.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
|
|
|
|
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
|
|
|
|
|
|
|
|
type-fest@^0.11.0:
|
|
|
|
version "0.11.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1"
|
|
|
|
integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
type-fest@^0.20.2:
|
|
|
|
version "0.20.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
|
|
|
|
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
|
|
|
|
|
2019-10-07 13:13:12 +00:00
|
|
|
type-fest@^0.7.1:
|
|
|
|
version "0.7.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48"
|
|
|
|
integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==
|
2019-06-13 08:46:42 +00:00
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
type@^2.7.2:
|
|
|
|
version "2.7.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0"
|
|
|
|
integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
typedarray-to-buffer@^3.1.5:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.1.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"
|
|
|
|
integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==
|
|
|
|
dependencies:
|
|
|
|
is-typedarray "^1.0.0"
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
ufo@^1.4.0, ufo@^1.5.3:
|
2024-05-08 08:51:45 +00:00
|
|
|
version "1.5.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/ufo/-/ufo-1.5.3.tgz#3325bd3c977b6c6cd3160bf4ff52989adc9d3344"
|
|
|
|
integrity sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==
|
|
|
|
|
2024-07-01 12:31:58 +00:00
|
|
|
uint8arrays@3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-3.1.0.tgz#8186b8eafce68f28bd29bd29d683a311778901e2"
|
|
|
|
integrity sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==
|
|
|
|
dependencies:
|
|
|
|
multiformats "^9.4.2"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
uint8arrays@^3.0.0, uint8arrays@^3.1.0:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-3.1.1.tgz#2d8762acce159ccd9936057572dade9459f65ae0"
|
|
|
|
integrity sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==
|
|
|
|
dependencies:
|
|
|
|
multiformats "^9.4.2"
|
|
|
|
|
|
|
|
uncrypto@^0.1.3:
|
|
|
|
version "0.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/uncrypto/-/uncrypto-0.1.3.tgz#e1288d609226f2d02d8d69ee861fa20d8348ef2b"
|
|
|
|
integrity sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
undefsafe@^2.0.5:
|
|
|
|
version "2.0.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.5.tgz#38733b9327bdcd226db889fb723a6efd162e6e2c"
|
|
|
|
integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
unenv@^1.9.0:
|
|
|
|
version "1.9.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unenv/-/unenv-1.9.0.tgz#469502ae85be1bd3a6aa60f810972b1a904ca312"
|
|
|
|
integrity sha512-QKnFNznRxmbOF1hDgzpqrlIf6NC5sbZ2OJ+5Wl3OX8uM+LUJXbj4TXvLJCtwbPTmbMHCLIz6JLKNinNsMShK9g==
|
|
|
|
dependencies:
|
|
|
|
consola "^3.2.3"
|
|
|
|
defu "^6.1.3"
|
|
|
|
mime "^3.0.0"
|
|
|
|
node-fetch-native "^1.6.1"
|
|
|
|
pathe "^1.1.1"
|
|
|
|
|
|
|
|
unfetch@^4.2.0:
|
|
|
|
version "4.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be"
|
|
|
|
integrity sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
unicode-canonical-property-names-ecmascript@^1.0.4:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818"
|
|
|
|
integrity sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
unicode-canonical-property-names-ecmascript@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"
|
|
|
|
integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
unicode-match-property-ecmascript@^1.0.4:
|
|
|
|
version "1.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c"
|
|
|
|
integrity sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==
|
|
|
|
dependencies:
|
|
|
|
unicode-canonical-property-names-ecmascript "^1.0.4"
|
|
|
|
unicode-property-aliases-ecmascript "^1.0.4"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
unicode-match-property-ecmascript@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3"
|
|
|
|
integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==
|
|
|
|
dependencies:
|
|
|
|
unicode-canonical-property-names-ecmascript "^2.0.0"
|
|
|
|
unicode-property-aliases-ecmascript "^2.0.0"
|
|
|
|
|
2020-04-28 08:57:17 +00:00
|
|
|
unicode-match-property-value-ecmascript@^1.2.0:
|
|
|
|
version "1.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz#0d91f600eeeb3096aa962b1d6fc88876e64ea531"
|
|
|
|
integrity sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
unicode-match-property-value-ecmascript@^2.1.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz#cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0"
|
|
|
|
integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
unicode-property-aliases-ecmascript@^1.0.4:
|
2020-04-28 08:57:17 +00:00
|
|
|
version "1.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4"
|
|
|
|
integrity sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
unicode-property-aliases-ecmascript@^2.0.0:
|
|
|
|
version "2.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd"
|
|
|
|
integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
unique-string@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d"
|
|
|
|
integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==
|
|
|
|
dependencies:
|
|
|
|
crypto-random-string "^2.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
universalify@^0.1.0:
|
|
|
|
version "0.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
|
|
|
|
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
|
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
unpipe@~1.0.0:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
unstorage@^1.9.0:
|
|
|
|
version "1.10.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/unstorage/-/unstorage-1.10.2.tgz#fb7590ada8b30e83be9318f85100158b02a76dae"
|
|
|
|
integrity sha512-cULBcwDqrS8UhlIysUJs2Dk0Mmt8h7B0E6mtR+relW9nZvsf/u4SkAYyNliPiPW7XtFNb5u3IUMkxGxFTTRTgQ==
|
|
|
|
dependencies:
|
|
|
|
anymatch "^3.1.3"
|
|
|
|
chokidar "^3.6.0"
|
|
|
|
destr "^2.0.3"
|
|
|
|
h3 "^1.11.1"
|
|
|
|
listhen "^1.7.2"
|
|
|
|
lru-cache "^10.2.0"
|
|
|
|
mri "^1.2.0"
|
|
|
|
node-fetch-native "^1.6.2"
|
|
|
|
ofetch "^1.3.3"
|
|
|
|
ufo "^1.4.0"
|
|
|
|
|
|
|
|
untun@^0.1.3:
|
|
|
|
version "0.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/untun/-/untun-0.1.3.tgz#5d10dee37a3a5737ff03d158be877dae0a0e58a6"
|
|
|
|
integrity sha512-4luGP9LMYszMRZwsvyUd9MrxgEGZdZuZgpVQHEEX0lCYFESasVRvZd0EYpCkOIbJKHMuv0LskpXc/8Un+MJzEQ==
|
|
|
|
dependencies:
|
|
|
|
citty "^0.1.5"
|
|
|
|
consola "^3.2.3"
|
|
|
|
pathe "^1.1.1"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
update-browserslist-db@^1.0.10:
|
|
|
|
version "1.0.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3"
|
|
|
|
integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==
|
|
|
|
dependencies:
|
|
|
|
escalade "^3.1.1"
|
|
|
|
picocolors "^1.0.0"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
update-browserslist-db@^1.0.11:
|
|
|
|
version "1.0.11"
|
|
|
|
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz#9a2a641ad2907ae7b3616506f4b977851db5b940"
|
|
|
|
integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==
|
|
|
|
dependencies:
|
|
|
|
escalade "^3.1.1"
|
|
|
|
picocolors "^1.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
update-notifier@^5.1.0:
|
|
|
|
version "5.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-5.1.0.tgz#4ab0d7c7f36a231dd7316cf7729313f0214d9ad9"
|
|
|
|
integrity sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==
|
|
|
|
dependencies:
|
|
|
|
boxen "^5.0.0"
|
|
|
|
chalk "^4.1.0"
|
|
|
|
configstore "^5.0.1"
|
|
|
|
has-yarn "^2.1.0"
|
|
|
|
import-lazy "^2.1.0"
|
|
|
|
is-ci "^2.0.0"
|
|
|
|
is-installed-globally "^0.4.0"
|
|
|
|
is-npm "^5.0.0"
|
|
|
|
is-yarn-global "^0.3.0"
|
|
|
|
latest-version "^5.1.0"
|
|
|
|
pupa "^2.1.1"
|
|
|
|
semver "^7.3.4"
|
|
|
|
semver-diff "^3.1.1"
|
|
|
|
xdg-basedir "^4.0.0"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
uqr@^0.1.2:
|
|
|
|
version "0.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/uqr/-/uqr-0.1.2.tgz#5c6cd5dcff9581f9bb35b982cb89e2c483a41d7d"
|
|
|
|
integrity sha512-MJu7ypHq6QasgF5YRTjqscSzQp/W11zoUk6kvmlH+fmWEs63Y0Eib13hYFwAzagRJcVY8WVnlV+eBDUGMJ5IbA==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
url-parse-lax@^3.0.0:
|
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c"
|
|
|
|
integrity sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=
|
|
|
|
dependencies:
|
|
|
|
prepend-http "^2.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
url@^0.11.0:
|
|
|
|
version "0.11.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
|
|
|
|
integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=
|
|
|
|
dependencies:
|
|
|
|
punycode "1.3.2"
|
|
|
|
querystring "0.2.0"
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
utf-8-validate@^5.0.2:
|
|
|
|
version "5.0.10"
|
|
|
|
resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2"
|
|
|
|
integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==
|
|
|
|
dependencies:
|
|
|
|
node-gyp-build "^4.3.0"
|
|
|
|
|
2022-10-18 16:05:07 +00:00
|
|
|
utf8@^3.0.0:
|
2019-09-06 10:05:26 +00:00
|
|
|
version "3.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1"
|
|
|
|
integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2020-07-09 10:13:28 +00:00
|
|
|
util-deprecate@^1.0.1, util-deprecate@~1.0.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
|
|
|
|
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
util@0.10.3:
|
|
|
|
version "0.10.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9"
|
|
|
|
integrity sha1-evsa/lCAUkZInj23/g7TeTNqwPk=
|
|
|
|
dependencies:
|
|
|
|
inherits "2.0.1"
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
util@^0.10.3:
|
|
|
|
version "0.10.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901"
|
|
|
|
integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==
|
|
|
|
dependencies:
|
|
|
|
inherits "2.0.3"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
util@^0.11.0:
|
|
|
|
version "0.11.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61"
|
|
|
|
integrity sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==
|
|
|
|
dependencies:
|
|
|
|
inherits "2.0.3"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
utils-merge@1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2023-06-23 13:26:24 +00:00
|
|
|
uuid@^3.3.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "3.4.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
|
|
|
|
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
v8-to-istanbul@^9.0.1:
|
|
|
|
version "9.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz#2ed7644a245cddd83d4e087b9b33b3e62dfd10ad"
|
|
|
|
integrity sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==
|
2019-09-07 12:57:22 +00:00
|
|
|
dependencies:
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
"@jridgewell/trace-mapping" "^0.3.12"
|
2019-09-07 12:57:22 +00:00
|
|
|
"@types/istanbul-lib-coverage" "^2.0.1"
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
convert-source-map "^2.0.0"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
|
|
|
validate-npm-package-license@^3.0.1:
|
|
|
|
version "3.0.4"
|
|
|
|
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
|
|
|
|
integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==
|
|
|
|
dependencies:
|
|
|
|
spdx-correct "^3.0.0"
|
|
|
|
spdx-expression-parse "^3.0.0"
|
|
|
|
|
2019-09-06 10:05:26 +00:00
|
|
|
vary@~1.1.2:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
|
2022-11-23 13:59:18 +00:00
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
vlq@^1.0.0:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.1.tgz#c003f6e7c0b4c1edd623fd6ee50bbc0d6a1de468"
|
|
|
|
integrity sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
vm-browserify@^1.0.1:
|
|
|
|
version "1.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
|
|
|
|
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
walker@^1.0.7:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.0.7"
|
|
|
|
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb"
|
|
|
|
integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=
|
|
|
|
dependencies:
|
|
|
|
makeerror "1.0.x"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
walker@^1.0.8:
|
|
|
|
version "1.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f"
|
|
|
|
integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==
|
|
|
|
dependencies:
|
|
|
|
makeerror "1.0.12"
|
|
|
|
|
2019-08-06 16:16:51 +00:00
|
|
|
wcwidth@^1.0.1:
|
|
|
|
version "1.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"
|
2023-04-12 09:55:19 +00:00
|
|
|
integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-08-06 16:16:51 +00:00
|
|
|
defaults "^1.0.3"
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
webidl-conversions@^3.0.0:
|
|
|
|
version "3.0.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
|
|
|
|
integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
webidl-conversions@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff"
|
|
|
|
integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
websocket@^1.0.35:
|
|
|
|
version "1.0.35"
|
|
|
|
resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.35.tgz#374197207d7d4cc4c36cbf8a1bb886ee52a07885"
|
|
|
|
integrity sha512-/REy6amwPZl44DDzvRCkaI1q1bIiQB0mEFQLUrhz3z2EK91cp3n72rAjUlrTP0zV22HJIUOVHQGPxhFRjxjt+Q==
|
|
|
|
dependencies:
|
|
|
|
bufferutil "^4.0.1"
|
|
|
|
debug "^2.2.0"
|
|
|
|
es5-ext "^0.10.63"
|
|
|
|
typedarray-to-buffer "^3.1.5"
|
|
|
|
utf-8-validate "^5.0.2"
|
|
|
|
yaeti "^0.0.6"
|
|
|
|
|
2024-04-02 11:02:54 +00:00
|
|
|
whatwg-fetch@^3.0.0:
|
2021-05-24 14:25:05 +00:00
|
|
|
version "3.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c"
|
|
|
|
integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
whatwg-url-without-unicode@8.0.0-3:
|
|
|
|
version "8.0.0-3"
|
|
|
|
resolved "https://registry.yarnpkg.com/whatwg-url-without-unicode/-/whatwg-url-without-unicode-8.0.0-3.tgz#ab6df4bf6caaa6c85a59f6e82c026151d4bb376b"
|
|
|
|
integrity sha512-HoKuzZrUlgpz35YO27XgD28uh/WJH4B0+3ttFqRo//lmq+9T/mIOJ6kqmINI9HpUpz1imRC/nR/lxKpJiv0uig==
|
|
|
|
dependencies:
|
|
|
|
buffer "^5.4.3"
|
|
|
|
punycode "^2.1.1"
|
|
|
|
webidl-conversions "^5.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
whatwg-url@^5.0.0:
|
|
|
|
version "5.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
|
|
|
|
integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0=
|
|
|
|
dependencies:
|
|
|
|
tr46 "~0.0.3"
|
|
|
|
webidl-conversions "^3.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
which-module@^2.0.0:
|
|
|
|
version "2.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
|
|
|
|
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
which@^1.2.9, which@^1.3.0, which@^1.3.1:
|
2018-11-28 18:02:20 +00:00
|
|
|
version "1.3.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
|
|
|
|
integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==
|
|
|
|
dependencies:
|
|
|
|
isexe "^2.0.0"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
which@^2.0.1:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "2.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
|
|
|
|
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
|
2018-11-28 18:02:20 +00:00
|
|
|
dependencies:
|
2019-09-07 12:57:22 +00:00
|
|
|
isexe "^2.0.0"
|
|
|
|
|
2022-05-19 15:50:41 +00:00
|
|
|
wide-align@^1.1.2:
|
|
|
|
version "1.1.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3"
|
|
|
|
integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==
|
|
|
|
dependencies:
|
|
|
|
string-width "^1.0.2 || 2 || 3 || 4"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
widest-line@^3.1.0:
|
|
|
|
version "3.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca"
|
|
|
|
integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==
|
|
|
|
dependencies:
|
|
|
|
string-width "^4.0.0"
|
|
|
|
|
2019-07-03 19:00:51 +00:00
|
|
|
wrap-ansi@^5.1.0:
|
|
|
|
version "5.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09"
|
|
|
|
integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^3.2.0"
|
|
|
|
string-width "^3.0.0"
|
|
|
|
strip-ansi "^5.0.0"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
wrap-ansi@^6.2.0:
|
|
|
|
version "6.2.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53"
|
|
|
|
integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^4.0.0"
|
|
|
|
string-width "^4.1.0"
|
|
|
|
strip-ansi "^6.0.0"
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
wrap-ansi@^7.0.0:
|
|
|
|
version "7.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
|
|
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
|
|
dependencies:
|
|
|
|
ansi-styles "^4.0.0"
|
|
|
|
string-width "^4.1.0"
|
|
|
|
strip-ansi "^6.0.0"
|
|
|
|
|
2018-11-28 18:02:20 +00:00
|
|
|
wrappy@1:
|
|
|
|
version "1.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
|
|
|
|
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
write-file-atomic@^2.3.0, write-file-atomic@^2.4.2:
|
2019-07-03 19:00:51 +00:00
|
|
|
version "2.4.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481"
|
|
|
|
integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==
|
|
|
|
dependencies:
|
|
|
|
graceful-fs "^4.1.11"
|
|
|
|
imurmurhash "^0.1.4"
|
|
|
|
signal-exit "^3.0.2"
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
write-file-atomic@^3.0.0:
|
|
|
|
version "3.0.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8"
|
|
|
|
integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==
|
|
|
|
dependencies:
|
|
|
|
imurmurhash "^0.1.4"
|
|
|
|
is-typedarray "^1.0.0"
|
|
|
|
signal-exit "^3.0.2"
|
|
|
|
typedarray-to-buffer "^3.1.5"
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
write-file-atomic@^4.0.2:
|
|
|
|
version "4.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd"
|
|
|
|
integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==
|
|
|
|
dependencies:
|
|
|
|
imurmurhash "^0.1.4"
|
|
|
|
signal-exit "^3.0.7"
|
|
|
|
|
2024-05-08 08:51:45 +00:00
|
|
|
ws@7.4.6:
|
|
|
|
version "7.4.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c"
|
|
|
|
integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
ws@^6.2.2:
|
2023-04-12 09:55:19 +00:00
|
|
|
version "6.2.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e"
|
|
|
|
integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==
|
|
|
|
dependencies:
|
|
|
|
async-limiter "~1.0.0"
|
|
|
|
|
|
|
|
ws@^7, ws@^7.4.6:
|
|
|
|
version "7.5.9"
|
|
|
|
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
|
|
|
|
integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==
|
2020-05-01 07:20:06 +00:00
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
ws@^7.5.1:
|
|
|
|
version "7.5.5"
|
|
|
|
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881"
|
|
|
|
integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==
|
|
|
|
|
2022-05-27 08:35:43 +00:00
|
|
|
xdg-basedir@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13"
|
|
|
|
integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==
|
|
|
|
|
2019-09-09 17:25:02 +00:00
|
|
|
xtend@^4.0.0, xtend@~4.0.1:
|
2019-09-05 18:21:37 +00:00
|
|
|
version "4.0.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
|
|
|
|
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
|
2018-11-28 18:02:20 +00:00
|
|
|
|
2021-01-07 12:59:57 +00:00
|
|
|
y18n@^4.0.0:
|
2019-07-03 19:00:51 +00:00
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b"
|
|
|
|
integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==
|
|
|
|
|
2022-11-20 23:46:04 +00:00
|
|
|
y18n@^5.0.5:
|
|
|
|
version "5.0.8"
|
|
|
|
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
|
|
|
|
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
|
|
|
|
|
2024-06-03 22:47:10 +00:00
|
|
|
yaeti@^0.0.6:
|
|
|
|
version "0.0.6"
|
|
|
|
resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577"
|
|
|
|
integrity sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==
|
|
|
|
|
2018-12-09 14:58:03 +00:00
|
|
|
yallist@^2.1.2:
|
|
|
|
version "2.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
|
|
|
|
integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
yallist@^3.0.2:
|
|
|
|
version "3.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
|
|
|
|
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
|
|
|
|
|
2021-11-15 04:42:11 +00:00
|
|
|
yallist@^4.0.0:
|
|
|
|
version "4.0.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
|
|
|
|
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
|
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
yaml@^2.2.1:
|
|
|
|
version "2.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.2.tgz#f522db4313c671a0ca963a75670f1c12ea909144"
|
|
|
|
integrity sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==
|
|
|
|
|
2019-09-07 12:57:22 +00:00
|
|
|
yargs-parser@^13.0.0, yargs-parser@^13.1.2:
|
|
|
|
version "13.1.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38"
|
|
|
|
integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==
|
|
|
|
dependencies:
|
|
|
|
camelcase "^5.0.0"
|
|
|
|
decamelize "^1.2.0"
|
|
|
|
|
2023-04-12 09:55:19 +00:00
|
|
|
yargs-parser@^18.1.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "18.1.3"
|
|
|
|
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0"
|
|
|
|
integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==
|
2019-07-03 19:00:51 +00:00
|
|
|
dependencies:
|
|
|
|
camelcase "^5.0.0"
|
|
|
|
decamelize "^1.2.0"
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
yargs-parser@^21.1.1:
|
|
|
|
version "21.1.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
|
|
|
|
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==
|
|
|
|
|
2023-10-08 23:42:58 +00:00
|
|
|
yargs@^13.2.2:
|
2019-09-07 12:57:22 +00:00
|
|
|
version "13.3.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd"
|
|
|
|
integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==
|
2019-08-29 10:47:39 +00:00
|
|
|
dependencies:
|
|
|
|
cliui "^5.0.0"
|
|
|
|
find-up "^3.0.0"
|
|
|
|
get-caller-file "^2.0.1"
|
|
|
|
require-directory "^2.1.1"
|
|
|
|
require-main-filename "^2.0.0"
|
|
|
|
set-blocking "^2.0.0"
|
|
|
|
string-width "^3.0.0"
|
|
|
|
which-module "^2.0.0"
|
|
|
|
y18n "^4.0.0"
|
2019-09-07 12:57:22 +00:00
|
|
|
yargs-parser "^13.1.2"
|
|
|
|
|
Fix component tests, upgrade Jest & friends, and a few other goodies (#18276)
Fix all component tests after the latest RN upgrade.
Fixes https://github.com/status-im/status-mobile/issues/18157
Closes https://github.com/status-im/status-mobile/pull/18235
Dependency changes
- Upgraded Jest: from 26.6.3 to latest 29.7.0.
- Upgraded @testing-library/jest-native: from 5.3.0 to latest 5.4.3
- Upgraded @testing-library/react-native: from 11.5.4 to 12.4.2
- Removed explicit dependency on jest-circus, this is now the default test
runner.
- Removed explicit dependency on jest-environment-node. This is handled by the
package manager.
- Added jest-silent-reporter at version 0.5.0.
### Why component tests were failing?
Many tests were failing because we were using RN Testing Library (RNTL) in an
unreliable fashion. With the recent library upgrades, the unreliability was
excerbated. Other times, the tests were incorrectly arranging data.
### with-redefs does not work with async code
Generally speaking, with-redefs should not be used with async code, assume the
worst. The scope of the macro will cease to exist by the time the async code
runs. In many tests we were using with-redefs, then calling render, but for some
components that use use-effect, JS timers, animations, etc it's unreliable and
were the reason for failures.
It's easy to reproduce too:
```clojure
(defn foo []
:foo)
(foo)
;; => :foo
(with-redefs [foo (constantly :bar)]
(foo))
;; => :bar
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100)
;; Taps [:calling-foo :foo]
;; As you would expect, when running without with-redefs, it prints :foo.
;; So far so good, but whatch what happens with async code:
(with-redefs [foo (constantly :bar)]
(js/setTimeout
(fn []
(tap> [:calling-foo (foo)]))
100))
;; Taps [:calling-foo :foo]
;; ====> PROBLEM: Taps :foo, not :bar as one might expect
```
### Not waiting on wait-for
When test-helpers.component/wait-for is used, subsequent assertions/etc should
be done after the promise returned by wait-for is resolved. But remember to not
perform side-effects inside the wait-for callback (check out the docs
https://callstack.github.io/react-native-testing-library/docs/api#waitfor).
Most, if not all of our usages of wait-for were not waiting.
#### Improvement 1 - Silence Jest on demand
If you need to re-run component tests frequently, you may want to reduce the
output verbosity. By passing JEST_USE_SILENT_REPORTER=true to make
component-test or make component-test-watch you will see a lot less noise and be
able to focus on what really matters to you.
#### Improvement 2 - Selectively focus/disable tests
Because of our need to first compile CLJS to JS before running tests via Jest,
we couldn't easily skip or focus on specific tests. From this commit onwards, we
should never again have to change the list of requires in files core_spec.cljs.
Commenting out required namespaces gives a bad DX because it causes constant
rebasing issues.
#### Improvement 3 - Translations now work as in prod code (but only English)
Translations performed by *-by-translation-text can be done now without any
workaround under the hood. The query functions are now linted just like
i18n/label, which means static translation keywords must be qualified with :t/,
which is good for consistency.
2023-12-26 14:58:23 +00:00
|
|
|
yargs@^15.1.0:
|
2021-01-07 12:59:57 +00:00
|
|
|
version "15.4.1"
|
|
|
|
resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8"
|
|
|
|
integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==
|
|
|
|
dependencies:
|
|
|
|
cliui "^6.0.0"
|
|
|
|
decamelize "^1.2.0"
|
|
|
|
find-up "^4.1.0"
|
|
|
|
get-caller-file "^2.0.1"
|
|
|
|
require-directory "^2.1.1"
|
|
|
|
require-main-filename "^2.0.0"
|
|
|
|
set-blocking "^2.0.0"
|
|
|
|
string-width "^4.2.0"
|
|
|
|
which-module "^2.0.0"
|
|
|
|
y18n "^4.0.0"
|
|
|
|
yargs-parser "^18.1.2"
|
|
|
|
|
2022-12-20 12:07:00 +00:00
|
|
|
yargs@^17.3.1:
|
|
|
|
version "17.6.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.6.2.tgz#2e23f2944e976339a1ee00f18c77fedee8332541"
|
|
|
|
integrity sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==
|
|
|
|
dependencies:
|
|
|
|
cliui "^8.0.1"
|
|
|
|
escalade "^3.1.1"
|
|
|
|
get-caller-file "^2.0.5"
|
|
|
|
require-directory "^2.1.1"
|
|
|
|
string-width "^4.2.3"
|
|
|
|
y18n "^5.0.5"
|
|
|
|
yargs-parser "^21.1.1"
|
2023-06-14 01:47:41 +00:00
|
|
|
|
2023-12-11 15:52:23 +00:00
|
|
|
yargs@^17.6.2:
|
|
|
|
version "17.7.2"
|
|
|
|
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269"
|
|
|
|
integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==
|
|
|
|
dependencies:
|
|
|
|
cliui "^8.0.1"
|
|
|
|
escalade "^3.1.1"
|
|
|
|
get-caller-file "^2.0.5"
|
|
|
|
require-directory "^2.1.1"
|
|
|
|
string-width "^4.2.3"
|
|
|
|
y18n "^5.0.5"
|
|
|
|
yargs-parser "^21.1.1"
|
|
|
|
|
2023-06-14 01:47:41 +00:00
|
|
|
yocto-queue@^0.1.0:
|
|
|
|
version "0.1.0"
|
|
|
|
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
|
|
|
|
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
|