Right rail template

This commit is contained in:
adilallo
2026-02-28 23:16:10 -07:00
parent f5bfb25f5e
commit 0799636c78
60 changed files with 1255 additions and 305 deletions
+4 -4
View File
@@ -15,10 +15,8 @@ vi.mock("next/dynamic", () => {
default: (importFn, options) => {
// In tests, resolve the dynamic import immediately and return the component
let Component = null;
let resolved = false;
importFn().then((mod) => {
Component = mod.default || mod;
resolved = true;
});
// Return a synchronous wrapper that uses the mocked component
return (props) => {
@@ -261,10 +259,12 @@ describe("User Journey Integration", () => {
},
{ timeout: 3000 },
);
} catch (error) {
} catch {
// Dynamic import may not resolve in test environment - this is a known limitation
// The component functionality is tested in RuleStack.test.jsx
console.warn("Dynamic import for RuleStack did not resolve in test environment");
console.warn(
"Dynamic import for RuleStack did not resolve in test environment",
);
}
// 4. User sees features and benefits - wait for dynamically imported component