Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/rendering/orchestrator/pipeline.behavior.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,8 @@ describe("RenderPipeline behavior", () => {
});

it("resolvePageData falls back to candidate extraction when no CSS link in HTML", async () => {
const slug = "/behavior-css-fallback";
const projectId = "proj-css-fallback";
const pipeline = createPipeline("/project/pages/behavior-css-fallback.tsx");

// Stub generateTailwindCSS at the pipeline level to prove the fallback path runs
const generatedCss = ".fallback{display:block}";
let candidatesReceived: string[] | undefined;

(pipeline as any).loadModule = async () => ({});
(pipeline as any).renderPage = async () => ({
html:
Expand All @@ -193,7 +187,7 @@ describe("RenderPipeline behavior", () => {
const { extractCandidates } = await import("#veryfront/html/styles-builder/index.ts");
const html =
`<!DOCTYPE html><html><head></head><body><div class="fallback">hello</div></body></html>`;
candidatesReceived = extractCandidates(html);
const candidatesReceived = extractCandidates(html);

// Verify candidates were actually extracted from the HTML
assertEquals(
Expand Down