import { createConnection , Connection } from 'typeorm' ; export default async ( ) : Promise < Connection | undefined > => { try { return await createConnection ( { type : 'sqlite' , name : 'default' , database : ':memory:' , entities : [ './src/Entities/*.ts' ] , synchronize : true , dropSchema : true , } ) ; } catch ( error ) { return undefined ; } } ;