linnify / typeorm-factory

Typeorm factory that makes testing easier
ISC License
29 stars 9 forks source link

:goal_net: Await promise #27

Open clickclickonsal opened 1 year ago

clickclickonsal commented 1 year ago

getRepository(this.entity).save(entity); returns a promise that was not being awaited. So this caused an issue trying when working postGenerators because the entity was not always guaranteed to be persisted.