11// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22
33exports [` compile > bindings 1` ] = `
4- "import { child as _child , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , template as _template } from 'vue';
4+ "import { txt as _txt , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , template as _template } from 'vue';
55const t0 = _template("<div > </div >", true)
66
77export function render(_ctx, $props, $emit, $attrs, $slots) {
88 const n0 = t0 ()
9- const x0 = _child (n0 )
9+ const x0 = _txt (n0 )
1010 _renderEffect (() => _setText (x0 , " count is " + _toDisplayString (_ctx .count ) + " ." ))
1111 return n0
1212} "
@@ -38,7 +38,7 @@ export function render(_ctx) {
3838 " default" : () => {
3939 const n0 = _createIf (() => (true ), () => {
4040 const n3 = t0 ()
41- _setInsertionState (n3 )
41+ _setInsertionState (n3 , null , true )
4242 const n2 = _createComponentWithFallback (_component_Bar )
4343 _withVaporDirectives (n2 , [[_directive_hello , void 0 , void 0 , { world: true }]])
4444 return n3
@@ -157,8 +157,8 @@ export function render(_ctx, $props, $emit, $attrs, $slots) {
157157 const _component_Comp = _resolveComponent (" Comp" )
158158 const n0 = t0 ()
159159 const n3 = t1 ()
160- const n2 = _child (n3 )
161- _setInsertionState (n3 , 0 )
160+ const n2 = _child (n3 , 1 )
161+ _setInsertionState (n3 , 0 , true )
162162 const n1 = _createComponentWithFallback (_component_Comp )
163163 _renderEffect (() => {
164164 _setProp (n3 , " id" , _ctx .foo )
@@ -180,13 +180,13 @@ export function render(_ctx) {
180180`;
181181
182182exports[`compile > dynamic root nodes and interpolation 1`] = `
183- "import { child as _child , setProp as _setProp , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , delegateEvents as _delegateEvents , template as _template } from 'vue';
183+ "import { txt as _txt , setProp as _setProp , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , delegateEvents as _delegateEvents , template as _template } from 'vue';
184184const t0 = _template("<button > </button >", true)
185185_delegateEvents("click")
186186
187187export function render(_ctx) {
188188 const n0 = t0 ()
189- const x0 = _child (n0 )
189+ const x0 = _txt (n0 )
190190 n0 .$evtclick = e => _ctx .handleClick (e )
191191 _renderEffect (() => {
192192 const _count = _ctx .count
@@ -198,12 +198,12 @@ export function render(_ctx) {
198198`;
199199
200200exports[`compile > execution order > basic 1`] = `
201- "import { child as _child , setProp as _setProp , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , template as _template } from 'vue';
201+ "import { txt as _txt , setProp as _setProp , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , template as _template } from 'vue';
202202const t0 = _template("<div > </div >", true)
203203
204204export function render(_ctx) {
205205 const n0 = t0 ()
206- const x0 = _child (n0 )
206+ const x0 = _txt (n0 )
207207 _renderEffect (() => {
208208 _setProp (n0 , " id" , _ctx .foo )
209209 _setText (x0 , _toDisplayString (_ctx .bar ))
@@ -212,32 +212,56 @@ export function render(_ctx) {
212212} "
213213`;
214214
215+ exports[`compile > execution order > setInsertionState > next, child and nthChild should be above the setInsertionState 1`] = `
216+ "import { resolveComponent as _resolveComponent , child as _child , next as _next , setInsertionState as _setInsertionState , createComponentWithFallback as _createComponentWithFallback , nthChild as _nthChild , createIf as _createIf , setProp as _setProp , renderEffect as _renderEffect , template as _template } from 'vue';
217+ const t0 = _template("<div ></div >")
218+ const t1 = _template("<div ><div ></div ><!><div ></div ><!><div ><button ></button ></div ></div >", true)
219+
220+ export function render(_ctx) {
221+ const _component_Comp = _resolveComponent (" Comp" )
222+ const n6 = t1 ()
223+ const n5 = _next (_child (n6 ), 1 )
224+ const n7 = _nthChild (n6 , 3 , 3 )
225+ const p0 = _next (n7 , 4 )
226+ const n4 = _child (p0 , 0 )
227+ _setInsertionState (n6 , n5 )
228+ const n0 = _createComponentWithFallback (_component_Comp )
229+ _setInsertionState (n6 , n7 , true )
230+ const n1 = _createIf (() => (true ), () => {
231+ const n3 = t0 ()
232+ return n3
233+ })
234+ _renderEffect (() => _setProp (n4 , " disabled" , _ctx .foo ))
235+ return n6
236+ } "
237+ `;
238+
215239exports[`compile > execution order > with insertionState 1`] = `
216240"import { resolveComponent as _resolveComponent , child as _child , setInsertionState as _setInsertionState , createSlot as _createSlot , createComponentWithFallback as _createComponentWithFallback , template as _template } from 'vue';
217241const t0 = _template("<div ><div ></div ></div >", true)
218242
219243export function render(_ctx) {
220244 const _component_Comp = _resolveComponent (" Comp" )
221245 const n3 = t0 ()
222- const n1 = _child (n3 )
223- _setInsertionState (n1 )
246+ const n1 = _child (n3 , 0 )
247+ _setInsertionState (n1 , null , true )
224248 const n0 = _createSlot (" default" , null )
225- _setInsertionState (n3 )
249+ _setInsertionState (n3 , 1 , true )
226250 const n2 = _createComponentWithFallback (_component_Comp )
227251 return n3
228252} "
229253`;
230254
231255exports[`compile > execution order > with v-once 1`] = `
232- "import { child as _child , next as _next , nthChild as _nthChild , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , template as _template } from 'vue';
256+ "import { child as _child , next as _next , nthChild as _nthChild , txt as _txt , toDisplayString as _toDisplayString , setText as _setText , renderEffect as _renderEffect , template as _template } from 'vue';
233257const t0 = _template("<div ><span > </span > <br > </div >", true)
234258
235259export function render(_ctx) {
236260 const n3 = t0 ()
237- const n0 = _child (n3 )
238- const n1 = _next (n0 )
239- const n2 = _nthChild (n3 , 3 )
240- const x0 = _child (n0 )
261+ const n0 = _child (n3 , 0 )
262+ const n1 = _next (n0 , 1 )
263+ const n2 = _nthChild (n3 , 3 , 3 )
264+ const x0 = _txt (n0 )
241265 _setText (x0 , _toDisplayString (_ctx .foo ))
242266 _renderEffect (() => {
243267 _setText (n1 , " " + _toDisplayString (_ctx .bar ))
@@ -280,30 +304,6 @@ export function render(_ctx) {
280304} "
281305`;
282306
283- exports[`compile > setInsertionState > next, child and nthChild should be above the setInsertionState 1`] = `
284- "import { resolveComponent as _resolveComponent , child as _child , next as _next , setInsertionState as _setInsertionState , createComponentWithFallback as _createComponentWithFallback , nthChild as _nthChild , createIf as _createIf , setProp as _setProp , renderEffect as _renderEffect , template as _template } from 'vue';
285- const t0 = _template("<div ></div >")
286- const t1 = _template("<div ><div ></div ><!><div ></div ><!><div ><button ></button ></div ></div >", true)
287-
288- export function render(_ctx) {
289- const _component_Comp = _resolveComponent (" Comp" )
290- const n6 = t1 ()
291- const n5 = _next (_child (n6 ))
292- const n7 = _nthChild (n6 , 3 )
293- const p0 = _next (n7 )
294- const n4 = _child (p0 )
295- _setInsertionState (n6 , n5 )
296- const n0 = _createComponentWithFallback (_component_Comp )
297- _setInsertionState (n6 , n7 )
298- const n1 = _createIf (() => (true ), () => {
299- const n3 = t0 ()
300- return n3
301- })
302- _renderEffect (() => _setProp (n4 , " disabled" , _ctx .foo ))
303- return n6
304- } "
305- `;
306-
307307exports[`compile > static + dynamic root 1`] = `
308308"import { toDisplayString as _toDisplayString , setText as _setText , template as _template } from 'vue';
309309const t0 = _template(" ")
0 commit comments