Files
prowler/ui/app/(prowler)/scans/config/page.test.ts
T
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

19 lines
609 B
TypeScript

import { readFileSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
describe("scan config page", () => {
it("does not block SSR on the full providers crawl", () => {
// Given
const currentDir = path.dirname(fileURLToPath(import.meta.url));
const source = readFileSync(path.join(currentDir, "page.tsx"), "utf8");
// Then
expect(source).not.toContain("getAllProviders");
expect(source).toContain("getProviders({ pageSize: 100 })");
expect(source).toContain("throw new Error");
});
});