diff --git a/packages/compiler-ssr/__tests__/ssrCompile.spec.ts b/packages/compiler-ssr/__tests__/ssrCompile.spec.ts
deleted file mode 100644
index ab9013a09..000000000
--- a/packages/compiler-ssr/__tests__/ssrCompile.spec.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-import { compile } from '../src'
-
-function getString(src: string): string {
- return compile(src).code.match(/_push\((.*)\)/)![1]
-}
-
-describe('element', () => {
- test('basic elements', () => {
- expect(getString(`
`)).toMatchInlineSnapshot(`"\`\`"`)
- expect(getString(``)).toMatchInlineSnapshot(`"\`\`"`)
- })
-
- test('static attrs', () => {
- expect(getString(``)).toMatchInlineSnapshot(
- `"\`\`"`
- )
- })
-
- test('nested elements', () => {
- expect(
- getString(`
`)
- ).toMatchInlineSnapshot(`"\`
\`"`)
- })
-
- test('void element', () => {
- expect(getString(``)).toMatchInlineSnapshot(`"\`\`"`)
- })
-})
-
-describe('text', () => {
- test('static text', () => {
- expect(getString(`foo`)).toMatchInlineSnapshot(`"\`foo\`"`)
- })
-
- test('static text escape', () => {
- expect(getString(`<foo>`)).toMatchInlineSnapshot(`"\`<foo>\`"`)
- })
-
- test('nested elements with static text', () => {
- expect(
- getString(`hellobye
`)
- ).toMatchInlineSnapshot(
- `"\`hellobye
\`"`
- )
- })
-
- test('interpolation', () => {
- expect(getString(`foo {{ bar }} baz`)).toMatchInlineSnapshot(
- `"\`foo \${interpolate(_ctx.bar)} baz\`"`
- )
- })
-
- test('nested elements with interpolation', () => {
- expect(
- getString(
- `{{ foo }} barbaz {{ qux }}
`
- )
- ).toMatchInlineSnapshot(
- `"\`\${interpolate(_ctx.foo)} barbaz \${interpolate(_ctx.qux)}
\`"`
- )
- })
-})
diff --git a/packages/compiler-ssr/__tests__/ssrElement.spec.ts b/packages/compiler-ssr/__tests__/ssrElement.spec.ts
new file mode 100644
index 000000000..c4c9add5e
--- /dev/null
+++ b/packages/compiler-ssr/__tests__/ssrElement.spec.ts
@@ -0,0 +1,52 @@
+import { getCompiledString } from './utils'
+
+describe('element', () => {
+ test('basic elements', () => {
+ expect(getCompiledString(``)).toMatchInlineSnapshot(
+ `"\`\`"`
+ )
+ expect(getCompiledString(``)).toMatchInlineSnapshot(
+ `"\`\`"`
+ )
+ })
+
+ test('static attrs', () => {
+ expect(
+ getCompiledString(``)
+ ).toMatchInlineSnapshot(`"\`\`"`)
+ })
+
+ test('nested elements', () => {
+ expect(
+ getCompiledString(`
`)
+ ).toMatchInlineSnapshot(`"\`
\`"`)
+ })
+
+ test('void element', () => {
+ expect(getCompiledString(``)).toMatchInlineSnapshot(`"\`\`"`)
+ })
+
+ test('v-html', () => {
+ expect(getCompiledString(``)).toMatchInlineSnapshot(
+ `"\`\${_ctx.foo}
\`"`
+ )
+ })
+
+ test('v-text', () => {
+ expect(getCompiledString(``)).toMatchInlineSnapshot(
+ `"\`\${interpolate(_ctx.foo)}
\`"`
+ )
+ })
+
+ test('