Skip to content

Commit 66edb81

Browse files
committed
more tests
1 parent 9acd3e6 commit 66edb81

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/runtime/test/client-api/find.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,15 @@ describe.each(createClientSpecs(PG_DB_NAME))('Client find tests for $provider',
840840
_count: { posts: 2 },
841841
});
842842

843+
await expect(
844+
client.user.findUnique({
845+
where: { id: user1.id },
846+
select: { id: true, _count: { select: { posts: { where: { published: true } } } } },
847+
}),
848+
).resolves.toMatchObject({
849+
_count: { posts: 1 },
850+
});
851+
843852
await expect(
844853
client.user.findUnique({
845854
where: { id: user1.id },

0 commit comments

Comments
 (0)