nestjs-auto-mock-typeorm
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

nestjs-auto-mock Typeorm Repository addon

This is an add-on for nestjs-auto-mock.

It is meant to deal with the TypeORM's default repositories. We cannot get the class type from the metadata, so we need an add-on to deal with it.

How to initiate it

import { init as repoMockInit } from 'nestjs-auto-mock-typeorm';

repoMockInit();

or

import { init as repoMockInit } from 'nestjs-auto-mock-typeorm';

repoMockInit(MockitoTest); // pass the MockTest you're using

Readme

Keywords

none

Package Sidebar

Install

npm i nestjs-auto-mock-typeorm

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

162 kB

Total Files

18

Last publish

Collaborators

  • migaseu