Skip to content

Commit 4fea054

Browse files
committed
refactor(cli): Pass verbose flag to build command for integration tests.
1 parent 06a59aa commit 4fea054

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/cli/tests/integration/config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export async function createTemporaryCartesiApplication(): Promise<{
5454
);
5555
}
5656

57+
const isCI = process.env.CI === "true" || process.env.CI === "1";
58+
5759
console.log(`✓ Temporary sandbox directory created at: ${tempDir.name}`);
5860
console.log(`✓ CLI binary located at: ${cliPath}`);
5961
console.log(`✓ Using Docker image: ${TEST_SDK}`);
@@ -84,8 +86,10 @@ export async function createTemporaryCartesiApplication(): Promise<{
8486
console.log(`! Building the temporary Cartesi application...`);
8587

8688
// Programmatically BUILD the application
87-
await execa("node", [cliPath, "build"], {
88-
stdio: ["ignore", "pipe", "pipe"],
89+
const flags = isCI ? ["--verbose"] : [];
90+
await execa("node", [cliPath, "build", ...flags], {
91+
stdio: "inherit",
92+
reject: true,
8993
});
9094

9195
console.log(`✓ Temporary Cartesi application built successfully.`);

0 commit comments

Comments
 (0)