Skip to content

Commit 0f7238b

Browse files
author
naman-contentstack
committed
added debug log to check failing test cases
1 parent 2dce8e6 commit 0f7238b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/tsgen.integration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe("Integration Test for tsgen command", () => {
123123
}
124124

125125
// Check both stdout and stderr for the error message (CI vs local environment difference)
126-
expect(result.stderr + result.stdout).toContain("Error: No token found");
126+
expect(result.stderr + result.stdout).toContain("No token found");
127127
});
128128

129129
// Test case 6: Generate TypeScript types for GraphQL API
@@ -191,7 +191,7 @@ describe("Integration Test for tsgen command", () => {
191191
expect(result.status).not.toBe(0);
192192

193193
// Log the actual error output to debug GitHub Actions issue
194-
if (process.env.CI) {
194+
if (process.env.Ci) {
195195
console.log(
196196
"CI Environment - stderr content:",
197197
JSON.stringify(result.stderr),
@@ -203,7 +203,7 @@ describe("Integration Test for tsgen command", () => {
203203
}
204204

205205
// Check both stdout and stderr for the error message (CI vs local environment difference)
206-
expect(result.stderr + result.stdout).toContain("Error: No token found");
206+
expect(result.stderr + result.stdout).toContain("No token found");
207207
});
208208

209209
afterEach(() => {

0 commit comments

Comments
 (0)