import { connectDatabase } from '../../database' ; import { QueryRunner } from 'typeorm' ; let queryRunner = null ; beforeAll ( async ( ) => { const conn = await connectDatabase ( ) ; queryRunner = conn . createQueryRunner ( ) ; await queryRunner . startTransaction ( ) ; } ) ; describe ( 'example service' , ( ) => { it ( 'New Example' , async ( ) => { expect ( true ) . toEqual ( true ) ; } ) ; } ) ; afterAll ( async ( ) => { if ( queryRunner ) { await queryRunner . release ( ) ; } } ) ;