smartexit/test/test.ts
2023-09-11 10:29:01 +02:00

15 lines
339 B
TypeScript

import { expect, tap } from '@push.rocks/tapbundle';
import * as smartexit from '../ts/index.js';
let testSmartexit: smartexit.SmartExit;
tap.test('first test', async () => {
testSmartexit = new smartexit.SmartExit();
});
tap.test('should end processes upon SIGINT', async (tools) => {
await tools.delayFor(5000);
});
tap.start();