Repository navigation
fix: Add response transformer to handle AI schema mismatch in Generat… #34
Annotations
2 errors and 8 warnings
|
build
Process completed with exit code 1.
|
|
src/test/ai-client.test.ts > ai client > invokes edge function with access token and output:
src/test/ai-client.test.ts#L29
AssertionError: expected { caseStructure: { …(4) }, …(4) } to deeply equal { ok: true }
- Expected
+ Received
{
- "ok": true,
+ "caseStructure": {
+ "burdenOfProof": "We must prove that ",
+ "framework": "General framework",
+ "keyDefinitions": [],
+ "thesis": "",
+ },
+ "contentions": [
+ {
+ "claim": "Main argument",
+ "evidence": "Evidence here",
+ "id": "1",
+ "impact": "Impact here",
+ "needsSource": false,
+ "reasoning": "Reasoning here",
+ "sourceQuery": "",
+ },
+ ],
+ "counters": [
+ {
+ "counterpoint": "Our counter",
+ "rebuttal": "Rebuttal text",
+ "targetArgument": "Opponent argument",
+ },
+ ],
+ "metadata": {
+ "format": "custom",
+ "generatedAt": "2026-01-30T21:21:14.872Z",
+ "side": "pro",
+ },
+ "predictedOpponentCase": {
+ "keyClashes": [
+ "Main clash point",
+ ],
+ "likelyArguments": [],
+ "strategicWeaknesses": [],
+ },
}
❯ src/test/ai-client.test.ts:29:20
|
|
build:
src/lib/supabase/AuthProvider.tsx#L90
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build:
src/components/ui/toggle.tsx#L37
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build:
src/components/ui/sonner.tsx#L27
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build:
src/components/ui/sidebar.tsx#L636
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build:
src/components/ui/navigation-menu.tsx#L111
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build:
src/components/ui/form.tsx#L129
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build:
src/components/ui/button.tsx#L47
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build:
src/components/ui/badge.tsx#L29
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|