UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

24 lines 978 B
// SPDX-License-Identifier: Apache-2.0 import { BaseCommandTest } from './base-command-test.js'; import { main } from '../../../../src/index.js'; import { InitCommand } from '../../../../src/commands/init/init.js'; export class InitTest extends BaseCommandTest { static soloInitArgv(testName) { const { newArgv, argvPushGlobalFlags } = InitTest; const argv = newArgv(); argv.push(InitCommand.INIT_COMMAND_NAME); argvPushGlobalFlags(argv, testName, true); return argv; } static init(options) { const { testName, testLogger } = options; const { soloInitArgv } = InitTest; it(`${testName}: solo init`, async () => { testLogger.info(`${testName}: beginning solo init`); await main(soloInitArgv(testName)); // TODO check that the init was successful testLogger.info(`${testName}: finished solo init`); }); } } //# sourceMappingURL=init-test.js.map