🪻 distributed transcription service thistle.dunkirk.sh

feat: skip ai tests by default

dunkirk.sh 1752bf80 500f9e4a

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