Skip to content

Commit d616f1f

Browse files
Copiloteleanorjboyd
andcommitted
Improve LogOutputChannel mock completeness in tests
Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
1 parent 87ee8d1 commit d616f1f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/test/managers/builtin/helpers.shouldUseUv.unit.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,23 @@ suite('Helpers - shouldUseUv', () => {
1616
get: sinon.stub(),
1717
};
1818
getConfigurationStub.returns(mockConfig);
19+
// Create a more complete mock for LogOutputChannel
1920
mockLog = {
2021
info: sinon.stub(),
2122
error: sinon.stub(),
2223
warn: sinon.stub(),
2324
append: sinon.stub(),
25+
debug: sinon.stub(),
26+
trace: sinon.stub(),
27+
show: sinon.stub(),
28+
hide: sinon.stub(),
29+
dispose: sinon.stub(),
30+
clear: sinon.stub(),
31+
replace: sinon.stub(),
32+
appendLine: sinon.stub(),
33+
name: 'test-log',
34+
logLevel: 1,
35+
onDidChangeLogLevel: sinon.stub() as any,
2436
} as unknown as LogOutputChannel;
2537
});
2638

0 commit comments

Comments
 (0)