🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(web): resolve test-file type errors failing the production next build typecheck (#15031)
Tobias Wochinger45b3fe6eefd4
diff --git a/web/src/__tests__/server/audit-log-in-app-agent.servertest.ts b/web/src/__tests__/server/audit-log-in-app-agent.servertest.tsindex 647ea1d066..04cc9a0963 100644--- a/web/src/__tests__/server/audit-log-in-app-agent.servertest.ts+++ b/web/src/__tests__/server/audit-log-in-app-agent.servertest.ts@@ -1,8 +1,8 @@import { randomUUID } from "crypto";import { auditLog } from "@/src/features/audit-logs/auditLog";-import { prisma, AuditLogRecordType } from "../../../../packages/shared/src/db";-import { createAndAddApiKeysToDb } from "../../../../packages/shared/src/server/auth/apiKeys";-import { createOrgProjectAndApiKey } from "../../../../packages/shared/src/server/test-utils/org-factory";+import { prisma, AuditLogRecordType } from "@langfuse/shared/src/db";+import { createAndAddApiKeysToDb } from "@langfuse/shared/src/server/auth/apiKeys";+import { createOrgProjectAndApiKey } from "@langfuse/shared/src/server";describe("in-app agent audit logging", () => {it("stores the creator on in-app-agent MCP keys", async () => {diff --git a/web/src/features/evals/utils/code-eval-template-completions.clienttest.ts b/web/src/features/evals/utils/code-eval-template-completions.clienttest.tsindex f6c6e87c17..8f371f7717 100644--- a/web/src/features/evals/utils/code-eval-template-completions.clienttest.ts+++ b/web/src/features/evals/utils/code-eval-template-completions.clienttest.ts@@ -56,7 +56,11 @@ function runCompletionSource(extensions: [languageExtensionFor(sourceCodeLanguage)],});const source = getCodeEvalCompletionSource(sourceCodeLanguage);- return source(new CompletionContext(state, position, false));+ const result = source(new CompletionContext(state, position, false));+ if (result instanceof Promise) {+ throw new Error("code eval completion source must resolve synchronously");+ }+ return result;}function mountEditor(