fix(core): update
This commit is contained in:
27
test/test.nonci.ts
Normal file
27
test/test.nonci.ts
Normal file
@ -0,0 +1,27 @@
|
||||
delete process.env.CLI_CALL;
|
||||
import * as coretraffic from '../ts/index.js';
|
||||
|
||||
import { tap, expect } from '@push.rocks/tapbundle';
|
||||
import { Qenv } from '@push.rocks/qenv';
|
||||
|
||||
const testQenv = new Qenv('./', './.nogit');
|
||||
let testCoreTraffic: coretraffic.CoreTraffic;
|
||||
|
||||
tap.test('should create an coretraffic instance', async (tools) => {
|
||||
testCoreTraffic = new coretraffic.CoreTraffic();
|
||||
expect(testCoreTraffic).toBeInstanceOf(coretraffic.CoreTraffic);
|
||||
});
|
||||
|
||||
tap.test('should start the instance', async (tools) => {
|
||||
await testCoreTraffic.start();
|
||||
});
|
||||
|
||||
tap.test('should keep the instance alive', async (tools) => {
|
||||
await tools.delayFor(10000);
|
||||
});
|
||||
|
||||
tap.test('should stop the instance', async (tools) => {
|
||||
await testCoreTraffic.stop();
|
||||
});
|
||||
|
||||
tap.start();
|
Reference in New Issue
Block a user