fix(structure): improve structure, prepare better CI integration

This commit is contained in:
2024-06-05 14:13:03 +02:00
parent 2e6e7f6ca8
commit 55b2872ffc
8 changed files with 58 additions and 32 deletions

24
test/test.apiclient.ts Normal file
View File

@@ -0,0 +1,24 @@
import { tap, expect } from '@push.rocks/tapbundle';
import * as cloudlyApiClient from '../ts_apiclient/index.js';
let testClient: cloudlyApiClient.CloudlyApiClient;
tap.test('should create a new cloudlyApiClient', async () => {
testClient = new cloudlyApiClient.CloudlyApiClient({
registerAs: 'api',
cloudlyUrl: 'http://localhost:3000',
});
await testClient.start();
expect(testClient).toBeTruthy();
});
tap.test('should trigger a server action', async () => {
})
tap.test('should stop the apiclient', async () => {
await testClient.stop();
})
export default tap.start();