morintd / prismock

A mock for PrismaClient, dedicated to unit testing.
https://www.npmjs.com/package/prismock
MIT License
203 stars 23 forks source link

fix: compound id issue with default name #1104

Open carterbush opened 2 months ago

carterbush commented 2 months ago

Encountered an issue where update() and findUnique() were misbehaving when the underlying compound id wasn't explicitly given a name.

This PR adds a test for this case and includes the fix for it.