Thanks for your input! I wasn't aware of the existence of each() right from the it/test objects from Jest Jasmine! Plus, it is exactly the same API! In fact, the feature actually comes from jest-each package: github.com/facebook/jest/tree/mast...
So no need to install the package separately!
I will update the article accordingly.
Cheers!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Personally I prefer to use Jest own built-in ‘test.each()’ api for this purpose, as it doesn’t require any additional packages.
Hi Borys,
Thanks for your input! I wasn't aware of the existence of
each()
right from theit/test
objects from Jest Jasmine! Plus, it is exactly the same API! In fact, the feature actually comes fromjest-each
package: github.com/facebook/jest/tree/mast...So no need to install the package separately!
I will update the article accordingly.
Cheers!