import { findProjectRoot } from '../utils' ; import * as path from 'path' ; describe ( 'utils/findProjectRoot' , ( ) => { it ( 'should properly Find a Project Root.' , ( ) => { const rootPackageJsonPath = path . join ( findProjectRoot ( ) || '' , './package.json' ) ; expect ( rootPackageJsonPath ) . toEqual ( path . join ( __dirname , '../../package.json' ) ) ; } ) ; } ) ;