🪢 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
import { expect, it, vi } from "vitest";
import { env } from "@langfuse/shared/src/env";
import { clickhouseClient } from "@langfuse/shared/src/server";
import teardown from "../../teardown";
it("closes clients through the same source-module identity", async () => {
const client = clickhouseClient({ url: env.CLICKHOUSE_URL });
const close = vi.spyOn(client, "close");
try {
await teardown();
expect(close).toHaveBeenCalledOnce();
} finally {
close.mockRestore();
}
});