Skip to content

Commit 59e0b0e

Browse files
author
naman-contentstack
committed
added condition to debug test case
1 parent a68c1dd commit 59e0b0e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/integration/tsgen.integration.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ describe("Integration Test for tsgen command", () => {
126126

127127
const result = spawnSync(cmd, args, { encoding: "utf-8" });
128128

129-
if (result.error) {
130-
console.error("Spawn Error:", result.error);
131-
}
129+
console.error("Spawn Error:", result);
130+
132131
expect(result.status).toBe(0);
133132
expect(fs.existsSync(outputFilePath)).toBeTruthy();
134133

@@ -155,9 +154,8 @@ describe("Integration Test for tsgen command", () => {
155154

156155
const result = spawnSync(cmd, args, { encoding: "utf-8" });
157156

158-
if (result.error) {
159-
console.error("Spawn Error:", result.error);
160-
}
157+
console.error("Spawn Error:", result);
158+
161159
expect(result.status).toBe(0);
162160
expect(fs.existsSync(outputFilePath)).toBeTruthy();
163161

0 commit comments

Comments
 (0)