Skip to content

Commit 5b860fe

Browse files
fix(test): Fix TypeScript errors,Add missing enableSvnContext to test mock and fix bedrock token type"
1 parent 758ba9d commit 5b860fe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/api/providers/bedrock.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
224224

225225
if (this.options.awsUseApiKey && this.options.awsApiKey) {
226226
// Use API key/token-based authentication if enabled and API key is set
227-
clientConfig.token = { token: this.options.awsApiKey }
228-
clientConfig.authSchemePreference = ["httpBearerAuth"] // Otherwise there's no end of credential problems.
227+
;(clientConfig as any).token = { token: this.options.awsApiKey }
228+
;(clientConfig as any).authSchemePreference = ["httpBearerAuth"] // Otherwise there's no end of credential problems.
229229
} else if (this.options.awsUseProfile && this.options.awsProfile) {
230230
// Use profile-based credentials if enabled and profile is set
231231
clientConfig.credentials = fromIni({

src/core/webview/__tests__/ClineProvider.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ describe("ClineProvider", () => {
542542
profileThresholds: {},
543543
hasOpenedModeSelector: false,
544544
diagnosticsEnabled: true,
545+
enableSvnContext: true,
546+
includeDiagnosticMessages: true,
547+
maxDiagnosticMessages: 50,
545548
}
546549

547550
const message: ExtensionMessage = {

0 commit comments

Comments
 (0)