How to Mock Typeorm Connection

In integration tests I am using the following snippets to create connection import {Connection, createConnection} from 'typeorm'; // @ts-ignore import options from './../../../ormconfig.js'; export function connectDb() { let con: Connection;…

0 Comments