diff --git a/packages/runtime-vapor/__tests__/hydration.spec.ts b/packages/runtime-vapor/__tests__/hydration.spec.ts
index f1fd4760d..d33d4c24d 100644
--- a/packages/runtime-vapor/__tests__/hydration.spec.ts
+++ b/packages/runtime-vapor/__tests__/hydration.spec.ts
@@ -237,14 +237,28 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}-`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `"
"`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `
` +
+ `
foo
-foo-` +
+ `
` +
+ `` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `
` +
+ `
bar
-bar-` +
+ `
` +
+ `` +
+ `
` +
+ `
`,
)
})
@@ -283,14 +297,14 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ ``,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ ``,
)
})
@@ -304,14 +318,30 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
foo
` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
bar
` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
})
@@ -330,14 +360,24 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `"foofoo
"`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `foo` +
+ `foo` +
+ `` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `"barbar
"`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `bar` +
+ `bar` +
+ `` +
+ `
`,
)
})
@@ -351,14 +391,24 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
foo
` +
+ `
foo
` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
bar
` +
+ `
bar
` +
+ `
` +
+ `
`,
)
})
@@ -372,14 +422,32 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
foo
` +
+ `
foo
` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
bar
` +
+ `
bar
` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
})
@@ -399,14 +467,26 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `"foofoo
"`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `foo` +
+ `` +
+ `foo` +
+ `` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `"barbar
"`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `bar` +
+ `` +
+ `bar` +
+ `` +
+ `
`,
)
})
@@ -426,14 +506,26 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `"foo foo foo
"`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `foo` +
+ ` foo ` +
+ `foo` +
+ `` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `"bar bar bar
"`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `` +
+ `bar` +
+ ` bar ` +
+ `bar` +
+ `` +
+ `
`,
)
})
@@ -451,14 +543,22 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
foo
-foo` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
bar
-bar` +
+ `
` +
+ `
`,
)
})
@@ -472,14 +572,22 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}-`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
foo
-foo-` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
bar
-bar-` +
+ `
` +
+ `
`,
)
})
@@ -493,14 +601,30 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}-`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
foo
-foo-` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
bar
-bar-` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
})
@@ -519,14 +643,28 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
foo
-foo` +
+ `` +
+ `
foo
-foo` +
+ `` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
bar
-bar` +
+ `` +
+ `
bar
-bar` +
+ `` +
+ `
` +
+ `
`,
)
})
@@ -540,14 +678,28 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}-`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
foo
-foo-` +
+ `` +
+ `
foo
-foo-` +
+ `` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
bar
-bar-` +
+ `` +
+ `
bar
-bar-` +
+ `` +
+ `
` +
+ `
`,
)
})
@@ -561,14 +713,36 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}-`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
foo
-foo-` +
+ `` +
+ `
foo
-foo-` +
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
bar
-bar-` +
+ `` +
+ `
bar
-bar-` +
+ `` +
+ `
` +
+ `
` +
+ `
` +
+ `
`,
)
})
@@ -582,14 +756,28 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}-`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `` +
+ `
foo
-foo-` +
+ `
foo
-foo-` +
+ `` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `` +
+ `
bar
-bar-` +
+ `
bar
-bar-` +
+ `` +
+ `
` +
+ `
`,
)
})
@@ -609,14 +797,26 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
foo
-foo` +
+ `
` +
+ `
foo
-foo` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
bar
-bar` +
+ `
` +
+ `
bar
-bar` +
+ `
` +
+ `
`,
)
})
@@ -636,14 +836,26 @@ describe('Vapor Mode hydration', () => {
Child: `{{ data }}
-{{ data }}`,
},
)
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
foo
-foo` +
+ ` foo ` +
+ `
foo
-foo` +
+ `
` +
+ `
`,
)
data.value = 'bar'
await nextTick()
- expect(container.innerHTML).toMatchInlineSnapshot(
- `""`,
+ expect(container.innerHTML).toBe(
+ `` +
+ `
` +
+ `
bar
-bar` +
+ ` bar ` +
+ `
bar
-bar` +
+ `
` +
+ `
`,
)
})