Is there a FactoryGirl version of Jasmine Karma testing?

166 views Asked by At

In Ruby, you can use FactoryGirl to set factories where you save test objects. Is there such a practice in Jasmine/Karma testing?

Currently having to create a lot of instances of the same objects. I was wondering if there are any ways to do this.

1

There are 1 answers

0
Alison R. On

npm has a factory-girl library inspired by the the original Ruby library. There are many other options, as well. I'd suggest searching npm for factory or faker, and select what best fits your needs.