···11import { test, expect } from "bun:test";
22import { cleanAndGetParagraphBoundaries } from "./transcript-cleaner";
3344-test("cleanAndGetParagraphBoundaries cleans transcript and returns paragraph boundaries", async () => {
44+// AI integration test - skip by default to avoid burning credits
55+// Run with: bun test src/lib/transcript-cleaner.test.ts --test-name-pattern "AI"
66+test.skip("cleanAndGetParagraphBoundaries cleans transcript and returns paragraph boundaries", async () => {
57// Use a longer, more realistic transcript sample with natural paragraph breaks
68const rawTranscript = `[SIDE CONVERSATION] Today in chapel we are talking about the fact that we believe in having gospel conversations. I'm gonna run my own PowerPoint. I'm gonna jump around. It's gonna be a little more conversational than normal. It's not gonna be like one of the normal sermons, although I know me and my tendency it'll turn into a sermon at some point just because that's the way God made me, so I can't help it.
79
+3-2
src/lib/vtt-cleaner.test.ts
···6060 expect(result).toBe(emptyVTT);
6161});
62626363-// Integration test - only runs if API key is available
6464-test("cleanVTT uses AI when available", async () => {
6363+// AI integration test - skip by default to avoid burning credits
6464+// Run with: bun test src/lib/vtt-cleaner.test.ts --test-name-pattern "AI"
6565+test.skip("cleanVTT uses AI when available", async () => {
6566 if (!process.env.LLM_API_KEY) {
6667 console.log("Skipping AI test - no LLM_API_KEY set");
6768 return;