Skip to content

v8.0.0-rc.24-dev.28

@EmaToplek EmaToplek tagged this 18 Nov 00:44
## Summary
Adds direct test coverage for `UniqueConstraint` in
`packages/2-sql/1-core/contract/src/ir/unique-constraint.ts`, including
the `static from()` factory's pass-through vs. construct branches.

- `unique-constraint.ts`: 100% statements/branches/functions/lines (up
from 83%/75%/100%/100%)

Related to the M9 target-extensible-IR coverage gap noted in
`coverage.config.json` (TML-2521).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Tests**
* Expanded automated coverage for unique constraint creation with and
without a name, ensuring instances remain immutable.
* Added checks for converting plain input into a unique constraint and
returning an existing constraint unchanged.
* These tests verify expected behavior across the supported construction
and conversion scenarios; no end-user functionality changes are included
in this update.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: EmaToplek <toplek.ema0213@outlook.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-authored-by: willbot <w.a.madden+machine@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Assets 2
Loading