jpwahle / cs-insights-backend

API server of the cs-insights project. This is the main part of storing data and accessing an external data analysis endpoint. It uses a mongoDB instance to store everything and queries the cs-insights-prediction-endpoint to get machine learning results.
https://jpwahle.github.io/cs-insights-backend/
MIT License
7 stars 0 forks source link

Add unit tests #1

Closed jpwahle closed 2 years ago

jpwahle commented 2 years ago

Is your feature request related to a problem? Please describe. We need unit tests for our custom endpoint operation (excluding standard CRUD endpoints from resify as they are tested independently).

Describe the solution you'd like Use mocha, chai, and MongoDB in-memory database to test the endpoints.

Describe alternatives you've considered We could use a local database for testing but this requires setting up a database every time which is overkill for fast-dev.

Additional context Links:

github-actions[bot] commented 2 years ago

Branch issue-1 created!