Refactor test factories
Created by: Tirokk
Authored by roschaefer Closed
:construction_worker_man: Refactor test factories
Not knowing there is a better implementation for NodeJS out there we rolled our own fragile implementation of test factories. Our lack of experience in the field has lead to inconsistent APIs how to use those factories and this makes it in turn really difficult to refactor the database model.
The one example which makes it obvious is #2605. I try to move all the image urls into a dedicated node with label :Image
and it's just so hard to tell if all the tests are still passing after the refactoring. I hope if we use rosie
which defines a strict way how to implement factories it will help us with refactoring in the future.