Files
cloudly/test/test.ts
T

24 lines
635 B
TypeScript
Raw Normal View History

import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as helpers from './helpers/index.js';
2024-04-20 12:21:41 +02:00
import * as cloudly from '../ts/index.js';
let testCloudly: cloudly.Cloudly;
tap.test('first test', async () => {
testCloudly = await helpers.createCloudly();
2024-04-20 12:21:41 +02:00
expect(testCloudly).toBeInstanceOf(cloudly.Cloudly);
});
tap.test('should init cloudly', async () => {
await testCloudly.start();
});
tap.test('should end the service', async (tools) => {
await tools.delayFor(5000);
await helpers.stopCloudly();
2024-04-20 12:21:41 +02:00
await testCloudly.stop();
tools.delayFor(1000).then(() => process.exit());
2024-04-20 12:21:41 +02:00
});
2026-05-08 13:56:20 +00:00
export default tap.start();