Test-only values

jfmengels.net

Oftentimes you you don't want the users of your module to create certain directly, and so you don't expose all of the constructors, but you might nonetheless need to create such values in your tests. How can you resolve this? Jeroen Engels explains how elm-review can allow you to expose type constructors only for testing.

Read more...
Linkedin

Want to receive more content like this in your inbox?