2025-12-15 15:58:52 +00:00
|
|
|
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
2023-09-11 10:29:01 +02:00
|
|
|
import * as smartexit from '../ts/index.js';
|
2019-05-16 15:10:22 +02:00
|
|
|
|
2019-05-19 22:12:21 +02:00
|
|
|
let testSmartexit: smartexit.SmartExit;
|
|
|
|
|
|
2019-05-16 15:10:22 +02:00
|
|
|
tap.test('first test', async () => {
|
2019-05-19 22:12:21 +02:00
|
|
|
testSmartexit = new smartexit.SmartExit();
|
2019-05-16 18:48:45 +02:00
|
|
|
});
|
2019-05-16 15:10:22 +02:00
|
|
|
|
2021-07-27 13:42:13 +02:00
|
|
|
tap.test('should end processes upon SIGINT', async (tools) => {
|
2019-05-16 18:48:45 +02:00
|
|
|
await tools.delayFor(5000);
|
|
|
|
|
});
|
|
|
|
|
|
2025-12-15 15:58:52 +00:00
|
|
|
export default tap.start();
|