Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

276 B
Raw Blame
import { faker } from '@faker-js/faker';
import { type Prisma } from '@prisma/client';

export function VoteMock(userIds: string[]): Prisma.VoteCreateManyInput {
  return {
    userId: faker.helpers.arrayElement(userIds),
    rootType: 'CHALLENGE',
    challengeId: 2,
  };
}