chore(deps): modernize coreflow tooling
This commit is contained in:
+10
-2
@@ -1,22 +1,30 @@
|
||||
import { tap, expect } from '@push.rocks/tapbundle';
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
|
||||
delete process.env.CLI_CALL;
|
||||
// process.env.CLOUDLY_TESTURL = 'http://localhost:3000';
|
||||
|
||||
import * as coreflow from '../ts/index.js';
|
||||
|
||||
const shouldRunStartupTest = Boolean(process.env.CLOUDLY_URL && process.env.JUMPCODE);
|
||||
|
||||
if (process.env.CI) {
|
||||
tap.start();
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
tap.test('should startup correctly', async () => {
|
||||
if (!shouldRunStartupTest) {
|
||||
return;
|
||||
}
|
||||
await coreflow.runCli();
|
||||
});
|
||||
|
||||
tap.test('should end correctly', async (tools) => {
|
||||
if (!shouldRunStartupTest) {
|
||||
return;
|
||||
}
|
||||
await tools.delayFor(2000);
|
||||
await coreflow.stop();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
export default tap.start();
|
||||
|
||||
Reference in New Issue
Block a user