Skip to content

Commit 6eb134d

Browse files
committed
ugh
1 parent 3e63004 commit 6eb134d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/managers/builtin/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export async function shouldUseUv(log?: LogOutputChannel, envPath?: string): Pro
5454
const alwaysUseUv = config.get<boolean>('alwaysUseUv', true);
5555

5656
console.log(`alwaysUseUv setting is ${alwaysUseUv}`);
57+
console.log(config.inspect<boolean>('alwaysUseUv'));
5758
console.log(config.inspect<boolean>('alwaysUseUv')?.globalValue);
5859

5960
if (alwaysUseUv) {

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,14 @@ suite('Helpers - shouldUseUv', () => {
7474

7575
test('should return true when alwaysUseUv is true and UV is installed', async () => {
7676
// Mock - alwaysUseUv is true and UV is installed
77+
const mockInspectResult = {
78+
globalRemoteValue: true,
79+
globalLocalValue: true,
80+
globalValue: true,
81+
};
7782
mockConfig.get.withArgs('alwaysUseUv', true).returns(true);
7883
mockConfig.get.withArgs('alwaysUseUv').returns(true);
79-
mockConfig.inspect.withArgs('alwaysUseUv').returns({ globalValue: true });
84+
mockConfig.inspect.withArgs('alwaysUseUv').returns(mockInspectResult);
8085
isUvInstalledStub.resolves(true);
8186
getUvEnvironmentsStub.resolves([]);
8287

0 commit comments

Comments
 (0)