Skip to content

Commit 9fcb625

Browse files
fix: fix tests failing on CI
1 parent 0cd7cd0 commit 9fcb625

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/commands/suppressions/list.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ describe('suppressions list command', () => {
167167
},
168168
error: null,
169169
});
170-
// Interactive mode: the pagination hint only prints when stdout is a TTY.
170+
// Interactive mode: the hint only prints when TTY and not a CI env.
171171
Object.defineProperty(process.stdin, 'isTTY', {
172172
value: true,
173173
writable: true,
@@ -176,6 +176,9 @@ describe('suppressions list command', () => {
176176
value: true,
177177
writable: true,
178178
});
179+
delete process.env.CI;
180+
delete process.env.GITHUB_ACTIONS;
181+
delete process.env.TERM;
179182
const logSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
180183

181184
const { listSuppressionsCommand } = await import(

0 commit comments

Comments
 (0)