Hi I´m trying to make a unit test creating some fake data and executing a request (using supertest) to check if the controller works well. The problem rise up when the controller tries to get the fake data, because it exists only inside the transaction.
So my questions are:
- Did someone make a junit like test using node.js and express?
- How do you manage the database data? How do you do rollback on it?
Thanks in advance.