Skip to content

Commit af2452b

Browse files
committed
test: update snapshot
1 parent ba67a90 commit af2452b

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

tests/__snapshots__/esbuild.test.ts.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ var export_helper_default = (sfc, props) => {
1717
console.log("Hello world");
1818
var _sfc_main = {};
1919
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
20-
return _openBlock(), _createElementBlock("div", null, _cache[0] || (_cache[0] = [
20+
return _openBlock(), _createElementBlock("div", null, [..._cache[0] || (_cache[0] = [
2121
_createElementVNode(
2222
"h1",
2323
null,
2424
"Hello World",
2525
-1
2626
/* CACHED */
2727
)
28-
]));
28+
])]);
2929
}
3030
var basic_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "#FILE#"]]);
3131
export {
@@ -53,15 +53,15 @@ var export_helper_default = (sfc, props) => {
5353
console.log("Hello world");
5454
var _sfc_main = {};
5555
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
56-
return _openBlock(), _createElementBlock("div", null, _cache[0] || (_cache[0] = [
56+
return _openBlock(), _createElementBlock("div", null, [..._cache[0] || (_cache[0] = [
5757
_createElementVNode(
5858
"h1",
5959
null,
6060
"Hello World",
6161
-1
6262
/* CACHED */
6363
)
64-
]));
64+
])]);
6565
}
6666
var basic_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
6767
export {
@@ -188,15 +188,15 @@ var _sfc_main = {
188188
}
189189
};
190190
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
191-
return _openBlock(), _createElementBlock("div", null, _cache[0] || (_cache[0] = [
191+
return _openBlock(), _createElementBlock("div", null, [..._cache[0] || (_cache[0] = [
192192
_createElementVNode(
193193
"h1",
194194
null,
195195
"Hello World",
196196
-1
197197
/* CACHED */
198198
)
199-
]));
199+
])]);
200200
}
201201
var script_setup_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "#FILE#"]]);
202202
export {
@@ -214,15 +214,15 @@ var _sfc_main = {
214214
__name: "script-setup",
215215
setup(__props) {
216216
return (_ctx, _cache) => {
217-
return _openBlock(), _createElementBlock("div", null, _cache[0] || (_cache[0] = [
217+
return _openBlock(), _createElementBlock("div", null, [..._cache[0] || (_cache[0] = [
218218
_createElementVNode(
219219
"h1",
220220
null,
221221
"Hello World",
222222
-1
223223
/* CACHED */
224224
)
225-
]));
225+
])]);
226226
};
227227
}
228228
};
@@ -268,15 +268,15 @@ var _sfc_main = /* @__PURE__ */ _defineComponent({
268268
}
269269
});
270270
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
271-
return _openBlock(), _createElementBlock("div", null, _cache[0] || (_cache[0] = [
271+
return _openBlock(), _createElementBlock("div", null, [..._cache[0] || (_cache[0] = [
272272
_createElementVNode(
273273
"h1",
274274
null,
275275
"Hello World",
276276
-1
277277
/* CACHED */
278278
)
279-
]));
279+
])]);
280280
}
281281
var script_setup_ts_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "#FILE#"]]);
282282
export {
@@ -304,15 +304,15 @@ var _sfc_main = /* @__PURE__ */ _defineComponent({
304304
str
305305
});
306306
return (_ctx, _cache) => {
307-
return _openBlock(), _createElementBlock("div", null, _cache[0] || (_cache[0] = [
307+
return _openBlock(), _createElementBlock("div", null, [..._cache[0] || (_cache[0] = [
308308
_createElementVNode(
309309
"h1",
310310
null,
311311
"Hello World",
312312
-1
313313
/* CACHED */
314314
)
315-
]));
315+
])]);
316316
};
317317
}
318318
});

tests/__snapshots__/rollup.test.ts.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ console.log('Hello world');
1717
const _sfc_main = {};
1818
1919
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
20-
return (openBlock(), createElementBlock("div", null, _cache[0] || (_cache[0] = [
20+
return (openBlock(), createElementBlock("div", null, [...(_cache[0] || (_cache[0] = [
2121
createElementVNode("h1", null, "Hello World", -1 /* CACHED */)
22-
])))
22+
]))]))
2323
}
2424
var basic = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"#FILE#"]]);
2525
@@ -44,9 +44,9 @@ console.log('Hello world');
4444
const _sfc_main = {};
4545
4646
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
47-
return (openBlock(), createElementBlock("div", null, _cache[0] || (_cache[0] = [
47+
return (openBlock(), createElementBlock("div", null, [...(_cache[0] || (_cache[0] = [
4848
createElementVNode("h1", null, "Hello World", -1 /* CACHED */)
49-
])))
49+
]))]))
5050
}
5151
var basic = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
5252
@@ -170,9 +170,9 @@ return __returned__
170170
};
171171
172172
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
173-
return (openBlock(), createElementBlock("div", null, _cache[0] || (_cache[0] = [
173+
return (openBlock(), createElementBlock("div", null, [...(_cache[0] || (_cache[0] = [
174174
createElementVNode("h1", null, "Hello World", -1 /* CACHED */)
175-
])))
175+
]))]))
176176
}
177177
var scriptSetup = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"#FILE#"]]);
178178
@@ -192,9 +192,9 @@ const _sfc_main = {
192192
193193
194194
return (_ctx, _cache) => {
195-
return (openBlock(), createElementBlock("div", null, _cache[0] || (_cache[0] = [
195+
return (openBlock(), createElementBlock("div", null, [...(_cache[0] || (_cache[0] = [
196196
createElementVNode("h1", null, "Hello World", -1 /* CACHED */)
197-
])))
197+
]))]))
198198
}
199199
}
200200
@@ -248,15 +248,15 @@ var _export_sfc = (sfc, props) => {
248248
};
249249
250250
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
251-
return openBlock(), createElementBlock("div", null, _cache[0] || (_cache[0] = [
251+
return openBlock(), createElementBlock("div", null, [..._cache[0] || (_cache[0] = [
252252
createElementVNode(
253253
"h1",
254254
null,
255255
"Hello World",
256256
-1
257257
/* CACHED */
258258
)
259-
]));
259+
])]);
260260
}
261261
var scriptSetupTs = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "#FILE#"]]);
262262
@@ -282,13 +282,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
282282
setup(__props, { expose: __expose }) {
283283
__expose({ str });
284284
return (_ctx, _cache) => {
285-
return openBlock(), createElementBlock("div", null, _cache[0] || (_cache[0] = [createElementVNode(
285+
return openBlock(), createElementBlock("div", null, [..._cache[0] || (_cache[0] = [createElementVNode(
286286
"h1",
287287
null,
288288
"Hello World",
289289
-1
290290
/* CACHED */
291-
)]));
291+
)])]);
292292
};
293293
}
294294
});

0 commit comments

Comments
 (0)