@douglasneuroinformatics/libnest
    Preparing search index...

    Class MockFactory

    A utility class for creating mock providers and instances for testing.

    Index

    Constructors

    Methods

    • Creates a mock provider for a Prisma model token.

      Parameters

      • token: string

        The Prisma model token.

      Returns Provider

      A NestJS provider with mock Prisma methods.

    • Gets all property names of an object, including those from its prototype chain.

      Parameters

      • object: object

        The object to get property names from.

      Returns string[]

      An array of property names.