how to keep same connection between 2 projects using sqlite in-memory database in NodeJs

Viewed 14

Im using Jest and Supertest to test functions that get and write data in database. For this reason im using Sqlite3 module in NodeJs to create in-memory DB, which is created and run parallel with different tests. I want to keep 1 connection to DB between 2 projects and not to use shared file. Is it even possible?

0 Answers
Related