Files
smartexit/test/test.ts

15 lines
359 B
TypeScript

import { expect, tap } from '@git.zone/tstest/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);
});
export default tap.start();