Test JSX artifact rendering path
Build Claw Telegram / build (push) Successful in 11m51s
Build Claw Telegram / cleanup (push) Successful in 2s

This commit is contained in:
Wylabb
2026-04-05 19:09:22 +02:00
parent a02dd94542
commit 642b1734b6
+10
View File
@@ -881,4 +881,14 @@ mod tests {
assert!(page.contains("react@18/umd/react.production.min.js"));
assert!(page.contains("@babel/standalone/babel.min.js"));
}
#[test]
fn artifact_viewer_page_includes_react_runtime_for_jsx() {
let page = build_artifact_viewer_page("demo.jsx", "turn-3", "file-3", "");
assert!(page.contains("const renderMode = \"react\";"));
assert!(page.contains("renderReactArtifact(el, text);"));
assert!(page.contains("react@18/umd/react.production.min.js"));
assert!(page.contains("@babel/standalone/babel.min.js"));
}
}