Prisma, Authorization, Typescript, Web Development.
console.log('Resource read by Adam:', inspect(resByAdam)); expect(resByAdam).toBeTruthy(); // ❌ Adam shouldn't be able to delete the resource await expect( adamDb.resource.delete({ where: { id: res.id } }) ).rejects.toThrow(); // Emily should be able to delete the resource await