Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): correct shimmer utility test for edge case

Steven Enamakel92e493ac2b91
diff --git a/app/src/__tests__/shimmerUtility.test.ts b/app/src/__tests__/shimmerUtility.test.ts
index 48b5149219..1b59bdeaf1 100644
--- a/app/src/__tests__/shimmerUtility.test.ts
+++ b/app/src/__tests__/shimmerUtility.test.ts
@@ -1,9 +1,10 @@
import { readFileSync } from 'node:fs';
-import { fileURLToPath } from 'node:url';
+import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest';
-// Read from disk: vitest stubs CSS imports (even `?raw`) to empty modules.
-const css = readFileSync(fileURLToPath(new URL('../index.css', import.meta.url)), 'utf8');
+// Read from disk (tests run from `app/`): vitest stubs CSS imports, even
+// `?raw`, to empty modules.
+const css = readFileSync(resolve('src/index.css'), 'utf8');
/**
* The reasoning panel's live label (and the running tool group) apply the