Cover morph relation record reads in integration tests
BO
33m ago+355+355+012345678901234567890123456789-139-139-012345678901234567890123456789
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 (
owneron opportunity): each opportunity resolves the rightowner<Target>Idand nested target for both legs, the other leg isnull, an unowned record isnullon both, and each person/company lists its own opportunities through the inverse relation. - ONE_TO_MANY (
stakeholderon 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).