twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
19.95k stars 2.21k forks source link

[Server Integration tests] Write integration REST API tests #7654

Open charlesBochet opened 3 weeks ago

charlesBochet commented 3 weeks ago

Scope & Context

We have recently introduced integration testing suite on the server graphql API. See: packages/twenty-server/test/companies.integration-spec.ts
We have 1 suite per standard object (company, person, note, ...) currently.

Right now, each of these testing suites are containing only 1 test testing the findManyRecords query.

What

We would like to create test suites for the REST API find many endpoints. Create one test within each test suite testing the findMany endpoints. See here for API documentation: https://twenty.com/developers/rest-api/core#/

ShantanuGaur26 commented 3 weeks ago

\assign

yadavshubham01 commented 3 weeks ago

\assign