import { createIsland } from '../../island' import { mount, getHostElements, formatProp, getInteriorPropsScriptsForElement, getPropsFromScripts, generateHostElementProps, getPropsFromElement, createRootFragment, watchForPropChanges, isValidPropsScript, renderIsland, isInShadow, isShadowRoot, } from '../../lib' import { h, FunctionComponent } from 'preact' /** * Use this helper when you want to test what it's like to use an inline script to use preact-island. This imports and stubs everything the Babel transforms under * the hood for Jest to run the things. I'm not sure a better way to test this unless it's importing the dist files but then that requires a build step every time * we run tests. */ export const InlineScript: FunctionComponent<{ widget: any renderCode: string id?: string }> = ({ widget, renderCode, ...rest }) => { return ( ) }