import { compile } from '../src'
describe('ssr compile: portal', () => {
test('should work', () => {
expect(compile(``).code)
.toMatchInlineSnapshot(`
"const { ssrRenderPortal: _ssrRenderPortal } = require(\\"@vue/server-renderer\\")
return function ssrRender(_ctx, _push, _parent) {
_ssrRenderPortal((_push) => {
_push(\`
\`)
}, _ctx.target, _parent)
}"
`)
})
})