mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 05:28:29 +00:00
test setup
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { beforeAll, afterAll } from '@jest/globals';
|
||||
import { DatabaseService } from './src/services';
|
||||
|
||||
beforeAll(async () => {
|
||||
const mongoURL = process.env.MONGO_URL!;
|
||||
await DatabaseService.initDatabase(mongoURL);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await DatabaseService.closeDatabase();
|
||||
});
|
||||
Reference in New Issue
Block a user