willryan / factory.ts

A library to ease creation of factories for test data for Typescript
MIT License
431 stars 23 forks source link

Feature request: `resetAllSequenceNumbers` #57

Open pawfa opened 3 years ago

pawfa commented 3 years ago

To make tests independent of one another it is required to reset sequence number. Calling resetSequenceNumberon all used factories might by burdensome or easily oversighted when multiple factories are used in single file. It would be great to have a method like Factory.resetAllSequenceNumbers() which would reset sequence numbers in all factories at once.