import stripAnsi from 'strip-ansi' ; import { getTestClient } from '../../../../utils/getTestClient' ; test ( 'client colorless errorFormat argument' , async ( ) => { const PrismaClient = await getTestClient ( ) ; const client = new PrismaClient ( { errorFormat : 'colorless' } ) ; try { await client . user . findMany ( { wrong : 'x' } ) ; } catch ( e ) { expect ( stripAnsi ( e . message ) === e . message ) . toBeTruthy ( ) ; } await client . $disconnect ( ) ; } ) ;