Skip to content

Commit

Permalink
chore: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
amk-dev committed Jan 2, 2025
1 parent aa8336f commit f9b4ae0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/shortest/src/core/runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ export class TestRunner {
},
});

// this may never happen as the config is initlized before this code is executed
if (!this.config.anthropicKey) {
throw new Error("ANTHROPIC_KEY is not set");
}

const aiClient = new AIClient(
{
apiKey: this.config.anthropicKey,
Expand Down

0 comments on commit f9b4ae0

Please sign in to comment.