Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

fix(tests): stop token-value test from replacing the utils module for the whole site suite

henrygd7205cde0728f
diff --git a/internal/site/tests/token-value.test.tsx b/internal/site/tests/token-value.test.tsx
index bfde9127e..b8397edf8 100644
--- a/internal/site/tests/token-value.test.tsx
+++ b/internal/site/tests/token-value.test.tsx
@@ -2,10 +2,6 @@ import { describe, expect, mock, test } from "bun:test"
import { renderToStaticMarkup } from "react-dom/server"
mock.module("@lingui/core/macro", () => ({ t: (strings: TemplateStringsArray) => strings[0] }))
-mock.module("../src/lib/utils", () => ({
- cn: (...values: unknown[]) => values.filter(Boolean).join(" "),
- copyToClipboard: async () => {},
-}))
const { TokenValue } = await import("../src/components/token-value")
const token = "dummy-agent-token-not-a-real-credential"