Cover morph relation record reads in integration tests

BO
33m ago
+355-139

Closes https://github.com/twentyhq/core-team-issues/issues/1321

The findMany morph relation records integration test was skipped and never created records. This replaces it with populated cases for both relation directions, using objects created by the test itself so no seeder change is needed.

  • MANY_TO_ONE (owner on opportunity): each opportunity resolves the right owner<Target>Id and nested target for both legs, the other leg is null, an unowned record is null on both, and each person/company lists its own opportunities through the inverse relation.
  • ONE_TO_MANY (stakeholder on opportunity): each opportunity's per-target connections return exactly its linked people and companies, and each person resolves back to its opportunity.

Ran locally: npx jest --config ./jest-integration.config.ts test/integration/metadata/suites/field-metadata/morph-relation/find-many-morph-relation-records.integration-spec.ts (4 passed).