DigitalCommons / mykomap

A web application for mapping initiatives in the Solidarity Economy
3 stars 0 forks source link

[CWM] Build mock data for MykoMap API responses and create unit tests #271

Closed ms0ur1s closed 2 weeks ago

ms0ur1s commented 2 weeks ago

Created after whiteboard #267

Description

Create mock data, in the form of static files on the backend server, that can be used to simulate API responses during development and testing. Additionally, build Mocha unit tests to ensure that the API endpoints return the correct data and handle edge cases properly.

Objectives

Acceptance Criteria

rogup commented 2 weeks ago

I think this ticket for the backend is kind of covered by https://github.com/DigitalCommons/mykomap-monolith/issues/1 based on the whiteboard that we did specifically for the backend. I don't think it makes sense to do UTs at this stage, since we don't have any logic, we'll just be serving mock data. UTs will be useful when we come to writing the actual logic.