🪻 distributed transcription service thistle.dunkirk.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: skip ai tests by default

+6 -3
+3 -1
src/lib/transcript-cleaner.test.ts
··· 1 1 import { test, expect } from "bun:test"; 2 2 import { cleanAndGetParagraphBoundaries } from "./transcript-cleaner"; 3 3 4 - test("cleanAndGetParagraphBoundaries cleans transcript and returns paragraph boundaries", async () => { 4 + // AI integration test - skip by default to avoid burning credits 5 + // Run with: bun test src/lib/transcript-cleaner.test.ts --test-name-pattern "AI" 6 + test.skip("cleanAndGetParagraphBoundaries cleans transcript and returns paragraph boundaries", async () => { 5 7 // Use a longer, more realistic transcript sample with natural paragraph breaks 6 8 const 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. 7 9
+3 -2
src/lib/vtt-cleaner.test.ts
··· 60 60 expect(result).toBe(emptyVTT); 61 61 }); 62 62 63 - // Integration test - only runs if API key is available 64 - test("cleanVTT uses AI when available", async () => { 63 + // AI integration test - skip by default to avoid burning credits 64 + // Run with: bun test src/lib/vtt-cleaner.test.ts --test-name-pattern "AI" 65 + test.skip("cleanVTT uses AI when available", async () => { 65 66 if (!process.env.LLM_API_KEY) { 66 67 console.log("Skipping AI test - no LLM_API_KEY set"); 67 68 return;