1
1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
3
- exports [` comile > bindings 1` ] = `
3
+ exports [` compile > bindings 1` ] = `
4
4
"import { template , children , createTextNode , insert , effect , setText } from 'vue/vapor';
5
5
const t0 = template('<div >count is <!>.</div >');
6
6
export function render() {
@@ -23,7 +23,7 @@ export function render() {
23
23
"
24
24
` ;
25
25
26
- exports [` comile > directives > v-bind > simple expression 1` ] = `
26
+ exports [` compile > directives > v-bind > simple expression 1` ] = `
27
27
"import { template , children , effect , setAttr } from 'vue/vapor';
28
28
const t0 = template('<div ></div >');
29
29
export function render() {
@@ -39,7 +39,7 @@ export function render() {
39
39
"
40
40
` ;
41
41
42
- exports [` comile > directives > v-html > no expression 1` ] = `
42
+ exports [` compile > directives > v-html > no expression 1` ] = `
43
43
"import { template , children , effect , setHtml } from 'vue/vapor';
44
44
const t0 = template('<div ></div >');
45
45
export function render() {
@@ -55,7 +55,7 @@ export function render() {
55
55
"
56
56
` ;
57
57
58
- exports [` comile > directives > v-html > simple expression 1` ] = `
58
+ exports [` compile > directives > v-html > simple expression 1` ] = `
59
59
"import { template , children , effect , setHtml } from 'vue/vapor';
60
60
const t0 = template('<div ></div >');
61
61
export function render() {
@@ -71,7 +71,7 @@ export function render() {
71
71
"
72
72
` ;
73
73
74
- exports [` comile > directives > v-on > simple expression 1` ] = `
74
+ exports [` compile > directives > v-on > simple expression 1` ] = `
75
75
"import { template , children , effect , on } from 'vue/vapor';
76
76
const t0 = template('<div ></div >');
77
77
export function render() {
@@ -87,7 +87,7 @@ export function render() {
87
87
"
88
88
` ;
89
89
90
- exports [` comile > directives > v-once > as root node 1` ] = `
90
+ exports [` compile > directives > v-once > as root node 1` ] = `
91
91
"import { template , children , effect , setAttr } from 'vue/vapor';
92
92
const t0 = template('<div ></div >');
93
93
export function render() {
@@ -103,7 +103,7 @@ export function render() {
103
103
"
104
104
` ;
105
105
106
- exports [` comile > directives > v-once > basic 1` ] = `
106
+ exports [` compile > directives > v-once > basic 1` ] = `
107
107
"import { template , children , createTextNode , setText , setAttr , prepend } from 'vue/vapor';
108
108
const t0 = template('<div > <span ></span ></div >');
109
109
export function render() {
@@ -125,7 +125,7 @@ export function render() {
125
125
"
126
126
` ;
127
127
128
- exports [` comile > directives > v-text > no expression 1` ] = `
128
+ exports [` compile > directives > v-text > no expression 1` ] = `
129
129
"import { template , children , effect , setText } from 'vue/vapor';
130
130
const t0 = template('<div ></div >');
131
131
export function render() {
@@ -141,7 +141,7 @@ export function render() {
141
141
"
142
142
` ;
143
143
144
- exports [` comile > directives > v-text > simple expression 1` ] = `
144
+ exports [` compile > directives > v-text > simple expression 1` ] = `
145
145
"import { template , children , effect , setText } from 'vue/vapor';
146
146
const t0 = template('<div ></div >');
147
147
export function render() {
@@ -157,7 +157,7 @@ export function render() {
157
157
"
158
158
` ;
159
159
160
- exports [` comile > dynamic root 1` ] = `
160
+ exports [` compile > dynamic root 1` ] = `
161
161
"import { fragment , createTextNode , append , effect , setText } from 'vue/vapor';
162
162
export function render() {
163
163
const t0 = fragment ();
@@ -176,7 +176,40 @@ export function render() {
176
176
"
177
177
` ;
178
178
179
- exports [` comile > fragment 1` ] = `
179
+ exports [` compile > dynamic root nodes and interpolation 1` ] = `
180
+ "import { template , children , createTextNode , prepend , insert , append , effect , on , setAttr , setText } from 'vue/vapor';
181
+ const t0 = template('<button >foo<!>foo</button >');
182
+ export function render() {
183
+ const n0 = t0 ();
184
+ const {
185
+ 0: [
186
+ n1 ,
187
+ {
188
+ 1: [n5],
189
+ },
190
+ ],
191
+ } = children(n0);
192
+ const n2 = createTextNode(count);
193
+ const n3 = createTextNode(count);
194
+ const n4 = createTextNode(count);
195
+ prepend(n1, n2);
196
+ insert(n3, n1, n5);
197
+ append(n1, n4);
198
+ effect(() => {
199
+ on (n1 , ' click' , handleClick );
200
+ } );
201
+ effect(() => {
202
+ setAttr (n1 , ' id' , undefined , count );
203
+ setText (n2 , undefined , count );
204
+ setText (n3 , undefined , count );
205
+ setText (n4 , undefined , count );
206
+ } );
207
+ return n0;
208
+ }
209
+ "
210
+ ` ;
211
+
212
+ exports [` compile > fragment 1` ] = `
180
213
"import { template } from 'vue/vapor';
181
214
const t0 = template('<p ></p ><span ></span ><div ></div >');
182
215
export function render() {
@@ -186,7 +219,7 @@ export function render() {
186
219
"
187
220
` ;
188
221
189
- exports [` comile > static + dynamic root 1` ] = `
222
+ exports [` compile > static + dynamic root 1` ] = `
190
223
"import { template , children , createTextNode , prepend , insert , append , effect , setText } from 'vue/vapor';
191
224
const t0 = template('3<!>6<!>9');
192
225
export function render() {
@@ -236,7 +269,7 @@ export function render() {
236
269
"
237
270
` ;
238
271
239
- exports [` comile > static template 1` ] = `
272
+ exports [` compile > static template 1` ] = `
240
273
"import { template } from 'vue/vapor';
241
274
const t0 = template('<div ><p >hello</p ><input ><span ></span ></div >');
242
275
export function render() {
0 commit comments