1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
- exports [` compiler: hositStatic transform hoist nested static tree 1` ] = `
3
+ exports [` compiler: hoistStatic transform hoist element with static key 1` ] = `
4
+ "const _Vue = Vue
5
+ const _createVNode = Vue.createVNode
6
+
7
+ const _hoisted_1 = _createVNode(\\ "div\\ ", { key : \\" foo\\ " } )
8
+
9
+ return function render() {
10
+ with (this ) {
11
+ const { createVNode: _createVNode , createBlock: _createBlock , openBlock: _openBlock } = _Vue
12
+
13
+ return (_openBlock (), _createBlock (\\" div\\ " , null , [
14
+ _hoisted_1
15
+ ]))
16
+ }
17
+ }"
18
+ ` ;
19
+
20
+ exports [` compiler: hoistStatic transform hoist nested static tree 1` ] = `
4
21
"const _Vue = Vue
5
22
const _createVNode = Vue.createVNode
6
23
@@ -20,7 +37,7 @@ return function render() {
20
37
}"
21
38
` ;
22
39
23
- exports [` compiler: hositStatic transform hoist siblings with common non-hoistable parent 1` ] = `
40
+ exports [` compiler: hoistStatic transform hoist siblings with common non-hoistable parent 1` ] = `
24
41
"const _Vue = Vue
25
42
const _createVNode = Vue.createVNode
26
43
@@ -39,7 +56,7 @@ return function render() {
39
56
}"
40
57
` ;
41
58
42
- exports [` compiler: hositStatic transform hoist simple element 1` ] = `
59
+ exports [` compiler: hoistStatic transform hoist simple element 1` ] = `
43
60
"const _Vue = Vue
44
61
const _createVNode = Vue.createVNode
45
62
@@ -56,7 +73,7 @@ return function render() {
56
73
}"
57
74
`;
58
75
59
- exports [` compiler: hositStatic transform hoist static props for elements with directives 1` ] = `
76
+ exports [` compiler: hoistStatic transform hoist static props for elements with directives 1` ] = `
60
77
"const _Vue = Vue
61
78
const _createVNode = Vue.createVNode
62
79
@@ -77,7 +94,7 @@ return function render() {
77
94
}"
78
95
` ;
79
96
80
- exports [` compiler: hositStatic transform hoist static props for elements with dynamic text children 1` ] = `
97
+ exports [` compiler: hoistStatic transform hoist static props for elements with dynamic text children 1` ] = `
81
98
"const _Vue = Vue
82
99
const _createVNode = Vue.createVNode
83
100
@@ -94,7 +111,7 @@ return function render() {
94
111
}"
95
112
` ;
96
113
97
- exports [` compiler: hositStatic transform hoist static props for elements with unhoistable children 1` ] = `
114
+ exports [` compiler: hoistStatic transform hoist static props for elements with unhoistable children 1` ] = `
98
115
"const _Vue = Vue
99
116
const _createVNode = Vue.createVNode
100
117
@@ -115,7 +132,7 @@ return function render() {
115
132
}"
116
133
` ;
117
134
118
- exports [` compiler: hositStatic transform should NOT hoist components 1` ] = `
135
+ exports [` compiler: hoistStatic transform should NOT hoist components 1` ] = `
119
136
"const _Vue = Vue
120
137
121
138
return function render() {
@@ -131,7 +148,21 @@ return function render() {
131
148
}"
132
149
` ;
133
150
134
- exports [` compiler: hositStatic transform should NOT hoist element with dynamic props 1` ] = `
151
+ exports [` compiler: hoistStatic transform should NOT hoist element with dynamic key 1` ] = `
152
+ "const _Vue = Vue
153
+
154
+ return function render() {
155
+ with (this ) {
156
+ const { createVNode: _createVNode , createBlock: _createBlock , openBlock: _openBlock } = _Vue
157
+
158
+ return (_openBlock (), _createBlock (\\" div\\ " , null , [
159
+ _createVNode (\\" div\\ " , { key: foo })
160
+ ]))
161
+ }
162
+ }"
163
+ ` ;
164
+
165
+ exports [` compiler: hoistStatic transform should NOT hoist element with dynamic props 1` ] = `
135
166
"const _Vue = Vue
136
167
137
168
return function render() {
@@ -145,7 +176,7 @@ return function render() {
145
176
}"
146
177
` ;
147
178
148
- exports [` compiler: hositStatic transform should NOT hoist root node 1` ] = `
179
+ exports [` compiler: hoistStatic transform should NOT hoist root node 1` ] = `
149
180
"const _Vue = Vue
150
181
151
182
return function render() {
@@ -157,7 +188,7 @@ return function render() {
157
188
}"
158
189
` ;
159
190
160
- exports [` compiler: hositStatic transform should hoist v-for children if static 1` ] = `
191
+ exports [` compiler: hoistStatic transform should hoist v-for children if static 1` ] = `
161
192
"const _Vue = Vue
162
193
const _createVNode = Vue.createVNode
163
194
@@ -179,7 +210,7 @@ return function render() {
179
210
}"
180
211
` ;
181
212
182
- exports [` compiler: hositStatic transform should hoist v-if props/children if static 1` ] = `
213
+ exports [` compiler: hoistStatic transform should hoist v-if props/children if static 1` ] = `
183
214
"const _Vue = Vue
184
215
const _createVNode = Vue.createVNode
185
216
0 commit comments