Static
createCreates a mock provider for a Prisma model token.
The Prisma model token.
A NestJS provider with mock Prisma methods.
Static
createCreates a mock provider for a service.
The service class.
A NestJS provider with a mocked service instance.
Static
createCreates a mock instance of a class, mocking all its methods.
The class to mock.
A mocked instance of the class.
Static
getGets all property names of an object, including those from its prototype chain.
The object to get property names from.
An array of property names.
A utility class for creating mock providers and instances for testing.