import { jestConsoleContext , jestContext } from '@prisma/sdk' ; const ctx = jestContext . new ( ) . add ( jestConsoleContext ( ) ) . assemble ( ) ; it ( 'should read expanded env vars' , async ( ) => { ctx . fixture ( 'dotenv-6-expand' ) ; process . argv . push ( '--version' ) ; process . argv . push ( '--schema=./expand/schema.prisma' ) ; await import ( '../bin' ) ; expect ( ctx . mocked [ 'console.log' ] . mock . calls . join ( '\n' ) ) . toMatchSnapshot ( ) ; expect ( process . env . DOTENV_PRISMA_EXPAND_DATABASE_URL_WITH_SCHEMA ) . toEqual ( 'postgres://user:password@server.host:5432/database?ssl=1&schema=schema1234' ) ; } ) ;