Skip to content

Commit

Permalink
test: test a CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahman-ledger committed Oct 2, 2024
1 parent e0bdbd0 commit caad606
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/ledger-live-desktop/tests/fixtures/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { launchApp } from "tests/utils/electronUtils";
import { captureArtifacts } from "tests/utils/allureUtils";
import { randomUUID } from "crypto";
import { AppInfos } from "tests/enum/AppInfos";
import { runCliCommand } from "../utils/cliUtils";

type TestFixtures = {
lang: string;
Expand Down Expand Up @@ -104,6 +105,10 @@ export const test = base.extend<TestFixtures>({
);
setEnv("SPECULOS_API_PORT", device?.ports.apiPort?.toString());
process.env.SPECULOS_API_PORT = device?.ports.apiPort;

const command = "balanceHistory --format asciichart";
const output = await runCliCommand(command);
console.log(output);
}

try {
Expand Down

0 comments on commit caad606

Please sign in to comment.