Files

31 lines
656 B
TypeScript
Raw Permalink Normal View History

2026-04-28 12:02:22 +00:00
import { tap, expect } from '@git.zone/tstest/tapbundle';
2024-05-09 00:05:16 +02:00
delete process.env.CLI_CALL;
// process.env.CLOUDLY_TESTURL = 'http://localhost:3000';
import * as coreflow from '../ts/index.js';
2026-04-28 12:02:22 +00:00
const shouldRunStartupTest = Boolean(process.env.CLOUDLY_URL && process.env.JUMPCODE);
2024-05-09 00:05:16 +02:00
if (process.env.CI) {
tap.start();
process.exit(0);
}
tap.test('should startup correctly', async () => {
2026-04-28 12:02:22 +00:00
if (!shouldRunStartupTest) {
return;
}
2024-05-09 00:05:16 +02:00
await coreflow.runCli();
});
tap.test('should end correctly', async (tools) => {
2026-04-28 12:02:22 +00:00
if (!shouldRunStartupTest) {
return;
}
2024-05-09 00:05:16 +02:00
await tools.delayFor(2000);
await coreflow.stop();
});
2026-04-28 12:02:22 +00:00
export default tap.start();