import { compile } from '../src' describe('ssr: v-show', () => { test('basic', () => { expect(compile(`
`).code).toMatchInlineSnapshot(` "const { ssrRenderStyle: _ssrRenderStyle } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`
\`) }" `) }) test('with static style', () => { expect(compile(`
`).code) .toMatchInlineSnapshot(` "const { ssrRenderStyle: _ssrRenderStyle } = require(\\"@vue/server-renderer\\") const _hoisted_1 = {\\"color\\":\\"red\\"} return function ssrRender(_ctx, _push, _parent) { _push(\`
\`) }" `) }) test('with dynamic style', () => { expect(compile(`
`).code) .toMatchInlineSnapshot(` "const { ssrRenderStyle: _ssrRenderStyle } = require(\\"@vue/server-renderer\\") return function ssrRender(_ctx, _push, _parent) { _push(\`
\`) }" `) }) test('with static + dynamic style', () => { expect( compile(`
`) .code ).toMatchInlineSnapshot(` "const { ssrRenderStyle: _ssrRenderStyle } = require(\\"@vue/server-renderer\\") const _hoisted_1 = {\\"color\\":\\"red\\"} return function ssrRender(_ctx, _push, _parent) { _push(\`
\`) }" `) }) test('with v-bind', () => { expect( compile( `
` ).code ).toMatchInlineSnapshot(` "const { mergeProps: _mergeProps } = require(\\"vue\\") const { ssrRenderAttrs: _ssrRenderAttrs } = require(\\"@vue/server-renderer\\") const _hoisted_1 = {\\"color\\":\\"red\\"} return function ssrRender(_ctx, _push, _parent) { _push(\`
\`) }" `) }) })