import { User } from '@island.is/shared/types' ; export interface MockUser extends Partial < Omit < User , 'profile' > > { profile ? : Partial < User [ 'profile' ] > ; } export const createMockUser = ( user ? ) => ( { profile : { name : 'Mock' , locale : 'is' , nationalId : '0000000000' , ... user ?. profile , } , expired : false , expires_in : 9999 , scopes : [ ] , ... user , } as User ) ;