- Updated README to include architecture overview and details on components. - Changed import paths in test helpers and test files to use the new Git zone packages. - Modified S3 bucket name in test setup for consistency. - Updated CloudlyConfig class to use more descriptive environment variable names for MongoDB and S3 configuration. - Adjusted ImageManager to retrieve the S3 bucket name from the configuration instead of hardcoding it.
24 lines
620 B
TypeScript
24 lines
620 B
TypeScript
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
|
import * as helpers from './helpers/index.js';
|
|
|
|
import * as cloudly from '../ts/index.js';
|
|
|
|
let testCloudly: cloudly.Cloudly;
|
|
tap.test('first test', async () => {
|
|
testCloudly = await helpers.createCloudly();
|
|
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();
|
|
await testCloudly.stop();
|
|
tools.delayFor(1000).then(() => process.exit());
|
|
});
|
|
|
|
tap.start();
|