import { jestConsoleContext , jestContext } from '@prisma/sdk' ; const ctx = jestContext . new ( ) . add ( jestConsoleContext ( ) ) . assemble ( ) ; it ( 'should not load root .env file' , async ( ) => { process . argv . push ( '--version' ) ; ctx . fixture ( 'dotenv-5-only-root' ) ; await import ( '../bin' ) ; expect ( ctx . mocked [ 'console.log' ] . mock . calls . join ( '\n' ) ) . toMatchSnapshot ( ) ; expect ( process . env . DOTENV_ROOT_SHOULD_BE_UNDEFINED ) . toEqual ( undefined ) ; } ) ;