Jest 23.5 now supports .each statements: lay out multiple scenarios in a...


Jest 23.5 now supports .each statements: lay out multiple scenarios in a tabular format! Much more concise and readable than copy/pasting tests for each scenario.

Example with 4 scenarios:
Before: 68 lines, copy/pasted 👎
After: 12 lines 👍

More info: https://buff.ly/2ODRnJk

View original on X