Open eseidel opened 1 year ago
Turns out it was just me missing a "lightCyan.wrap" around my apk/aab paths in the above. π€·
The matcher "equals" has some nice string diff outputs (as well as for collections). Mocktail could it use its "describeMismatch" for this
For long strings it can be very hard to figure out how to match calls exactly. e.g.:
I get the message:
I'm clearly very close, but not quite right yet. Mocktail could theoretically detect this and offer me a string difference to help see where my error is. π€· That may be out of scope for mocktail though.
package:test has some decent string diffing code (I even used it in a recent fun project): https://github.com/dart-lang/test/blob/2cb07a3f4d16b74f1181bd8f963d342db5a8e6b0/pkgs/checks/lib/src/extensions/string.dart