2 posts tagged with "tothrow"

    jest-tips

    2021-09-12

     | 

    ~1 min read

     | 

    48 words

    A collection of tips on how to use Jest. A good follow up to the collection of configuration tips. How to use Watch mode to speed up testing…

    jest: expect tothrow

    2021-09-12

     | 

    ~2 min read

     | 

    351 words

    When testing code that you expect to fail with Jest, you need to wrap the function. This is called out explicitly in the docs. Note: You…

Return to all tags