import { User } from '@nx-mean-starter/models' ; import * as faker from 'faker' ; export function generateUsers ( count ) { return Array . from ( { length : count } ) . map ( ( ) => generateUser ( ) ) ; } export function generateUser ( ) { return { _id : faker . random . uuid ( ) , email : faker . internet . email ( ) , emailVerified : faker . random . boolean ( ) , name : faker . name . findName ( ) , pictureUrl : faker . image . avatar ( ) , } ; }