smartmongo/test/test.ts

15 lines
404 B
TypeScript
Raw Normal View History

2023-08-08 14:07:05 +02:00
import { expect, tap } from '@push.rocks/tapbundle';
2022-05-17 18:28:09 +02:00
import * as smartmongo from '../ts/index.js';
2021-12-20 15:58:23 +01:00
let smartmongoInstance: smartmongo.SmartMongo;
tap.test('should create a mongo instance', async () => {
2021-12-20 17:07:39 +01:00
smartmongoInstance = await smartmongo.SmartMongo.createAndStart();
2021-12-20 15:58:23 +01:00
});
tap.test('should stop the instance', async () => {
2022-06-06 16:51:41 +02:00
await smartmongoInstance.stopAndDumpToDir('.nogit/');
2023-08-08 16:59:47 +02:00
});
2021-12-20 15:58:23 +01:00
tap.start();