/** * @jest-environment node */ import { createApp } from 'vue' import { renderToString } from '../src/renderToString' const components = { one: { template: `
` } } describe('ssr: slot', () => { test('text slot', async () => { expect( await renderToString( createApp({ components, template: `hello` }) ) ).toBe(`
hello
`) }) test('element slot', async () => { expect( await renderToString( createApp({ components, template: `
hi
` }) ) ).toBe(`
hi
`) }) test('empty slot', async () => { expect( await renderToString( createApp({ components: { one: { template: `
` } }, template: `