Files
prowler/ui/components/shadcn/textarea/textarea.test.ts
Pedro Martín 69321418a3 feat(ui): improve scan config ux (#11731)
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
2026-07-01 15:45:38 +02:00

18 lines
550 B
TypeScript

import { readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
describe("Textarea", () => {
it("does not import Next font loaders from the shared primitive", () => {
// Given
const currentDir = path.dirname(fileURLToPath(import.meta.url));
const source = readFileSync(path.join(currentDir, "textarea.tsx"), "utf8");
// Then
expect(source).not.toContain("@/config/fonts");
expect(source).not.toContain("next/font");
});
});