I would like to know what is supposed to be the proper way to test Foxx applications in ArangoDB. My project structure (simplified) is something like the following:
/frontend /* AngularJS webapp */
/backend /* Foxx controllers, models and repositories */
manifest.json
For the frontend I am using Karma/Jasmine with success but I am having issues when trying to test the Foxx controllers.
More concretely, what I would like to achieve is testing some endpoints and verify they do what they are meant to, basically CRUD operations. For that, I would really need to have access to the ArangoDB instance for multiple reasons: clean the test database, prepopulate it with testing data, etc.
What should be the way to go in this case? Is this even possible?