status-mobile/nix/deps
Icaro Motta 60ad7c8a29
chore(tests): New match-strict? cljs.test directive (#20825)
Equality checks in tests using = give a bad experience by default on test
failures containing nested data structures. We use the cljs.test directive
match? from matcher-combinators library to help compare nested structures. The
problem with match? is that its default matcher for maps (embeds) can be too
permissive, and this causes surprises.

Here we upgrade matcher-combinators to latest, where a new matcher called
nested-equals is available. This matcher won't allow extra keys in maps. This
matcher eliminates the need for manually adding nested equals matchers as we
have to do currently.

- Upgrades matcher-combinators from 3.8.8 to 3.9.1 (latest as of 2024-07-19)

What changes?

When asserting in tests, we now have the option to use match-strict? or match?.
Both directives are available by integrating with cljs.test. The code
implementing the new match-strict? directive was 100% copied from the library
matcher-combinators because we need to wrap the expected value ourselves with
matcher-combinators.matchers/nested-equals. It's ugly code, but it's how we can
integrate with cljs.test/assert-expr.
2024-07-24 23:06:41 -03:00
..
clojure chore(tests): New match-strict? cljs.test directive (#20825) 2024-07-24 23:06:41 -03:00
gradle deps: bump react-native-linear-gradient library (#20329) 2024-06-12 13:43:26 +05:30
nodejs clean up unused libraries (#19456) 2024-04-02 16:32:54 +05:30
nodejs-patched apply patches with patch files (#19451) 2024-04-08 21:06:41 +05:30
react-native nix: simplify android release build 2020-05-14 09:46:23 +02:00