smartmongo/test/test.ts

15 lines
404 B
TypeScript
Raw Normal View History

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