oceanprotocol / ocean-node

Apache License 2.0
22 stars 8 forks source link

Write tests for HTTP endpoints #323

Closed jamiehewitt15 closed 2 months ago

jamiehewitt15 commented 6 months ago

We can use a library like supertest to test the HTTP endpoints. There are some examples in the documentation of how it can work with express.

jamiehewitt15 commented 6 months ago

These tests don't need to necessarily check all the logic that we have already tested elsewhere. The value in these additional tests would come from specifically testing the logic in src/components/httpRoutes which would include things like:

alexcos20 commented 3 months ago

from @bogdanfazakas Investigate https://playwright.dev/