mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 22:28:25 +00:00
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
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();
|
|
});
|