Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
one more fix
Browse files Browse the repository at this point in the history
electrovir committed Sep 12, 2024

Verified

This commit was signed with the committer’s verified signature.
electrovir electrovir
1 parent d0ff4a2 commit 92d4c2e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions packages/node/src/prisma/model-data.test.ts
Original file line number Diff line number Diff line change
@@ -34,19 +34,21 @@ describe(
data: IsAny<PrismaClient> extends true ? any : PrismaAddDataData<PrismaClient>,
) {
const prismaClient = await setupPrismaClient();
try {
await prisma.client.addData(prismaClient, data);

await prisma.client.addData(prismaClient, data);

const dumpedData = await prisma.client.dumpData(prismaClient, {
omitFields: [
'createdAt',
'updatedAt',
'id',
],
});
await prismaClient.$disconnect();
const dumpedData = await prisma.client.dumpData(prismaClient, {
omitFields: [
'createdAt',
'updatedAt',
'id',
],
});

return dumpedData;
return dumpedData;
} finally {
await prismaClient.$disconnect();
}
}

it('includes all fields by default', async () => {

0 comments on commit 92d4c2e

Please sign in to comment.