diff --git a/tests/specs/IslandLoadStrategySpec.cfc b/tests/specs/IslandLoadStrategySpec.cfc new file mode 100644 index 0000000..c98f4d4 --- /dev/null +++ b/tests/specs/IslandLoadStrategySpec.cfc @@ -0,0 +1,177 @@ +/** + * Spec: with strategy="load" (SSR + immediate hydration) + * + * The "load" strategy is the default. Island.cfm must: + * - call framework.ssrRender(componentPath, props, slotHtml, namedSlots) + * - inject the returned HTML into the mount div (so users see content + * before JS hydrates) + * - emit any returned CSS as a ' ); + } ); + + it( "emits an immediate boot script (no idle / observer wrappers)", function(){ + var html = renderIsland( framework = mockVue, path = "./Hello.vue", props = {} ); + expect( html ).toInclude( '