kaocha

cjohansen 2022-07-04T07:29:00.315059Z

I have a test that wants to compare two maps containing floats… Hilarity ensues: -10.813026 (this is kaocha’s printed diff). Any neat tricks to compare them within some threshold of accuracy or similar?

imre 2022-07-04T09:04:22.564169Z

I have used https://github.com/nubank/matcher-combinators a few times, it has a within-delta https://github.com/nubank/matcher-combinators#built-in-matchers

cjohansen 2022-07-04T09:06:21.530169Z

That looks excellent, thanks!

👍🏼 1
Alys Brooks 2022-07-05T02:35:22.817909Z

Kaocha has matcher-combinators support, too, so it mismatches will be reported correctly. Unfortunately, it's not particularly documented, but I don't believe you have to do anything to take advantage of it.

👍🏼 1
Charlie Briggs 2022-07-04T10:46:13.334459Z

Hey, is it possible to watch resource files in watch mode? We have some schemas in resources and we want to trigger watch running tests after changing it

imre 2022-07-04T10:55:30.645589Z

Have you tried adding them to the src-paths key under the testable?