UNPKG

@hashgraph/solo

Version:

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

21 lines 1.11 kB
// SPDX-License-Identifier: Apache-2.0 import 'chai-as-promised'; import { it, describe } from 'mocha'; import { expect } from 'chai'; import * as fs from 'node:fs'; import { PackageDownloader } from '../../../../src/core/package-downloader.js'; import { Duration } from '../../../../src/core/time/duration.js'; import { SoloPinoLogger } from '../../../../src/core/logging/solo-pino-logger.js'; describe('PackageDownloaderE2E', () => { const testLogger = new SoloPinoLogger('debug', true); const downloader = new PackageDownloader(testLogger); it('should succeed with a valid Hedera release tag', async () => { const testCacheDirectory = 'test/data/tmp'; const tag = 'v0.42.5'; const destinationPath = `${testCacheDirectory}/build-${tag}.zip`; await expect(downloader.fetchPlatform(tag, testCacheDirectory)).to.eventually.be.equal(destinationPath); expect(fs.existsSync(destinationPath)).to.be.ok; testLogger.showUser(destinationPath); }).timeout(Duration.ofMinutes(3).toMillis()); }); //# sourceMappingURL=package-downloader-end-to-end.test.js.map