import { getTestClient } from '../../../../utils/getTestClient' ; test ( 'enums' , async ( ) => { const PrismaClient = await getTestClient ( ) ; const prisma = new PrismaClient ( { log : [ { emit : 'event' , level : 'query' , } , ] , } ) ; const queryEvents = [ ] ; prisma . $on ( 'query' , ( e ) => queryEvents . push ( e ) ) ; await prisma . user . findMany ( { } ) ; await await prisma . $disconnect ( ) ; await new Promise ( ( r ) => setTimeout ( r , 100 ) ) ; expect ( queryEvents . length ) . toBeGreaterThan ( 0 ) ; } ) ;