|
1 |
| -// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 1 | +// Vitest Snapshot v1 |
2 | 2 |
|
3 |
| -exports[`compiler: integration tests function mode 1`] = ` |
| 3 | +exports[`compiler: integration tests > function mode 1`] = ` |
4 | 4 | "const _Vue = Vue
|
5 | 5 |
|
6 | 6 | return function render(_ctx, _cache) {
|
7 | 7 | with (_ctx) {
|
8 | 8 | const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, Fragment: _Fragment, renderList: _renderList, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass } = _Vue
|
9 | 9 |
|
10 |
| - return (_openBlock(), _createElementBlock("div", { |
11 |
| - id: "foo", |
| 10 | + return (_openBlock(), _createElementBlock(\\"div\\", { |
| 11 | + id: \\"foo\\", |
12 | 12 | class: _normalizeClass(bar.baz)
|
13 | 13 | }, [
|
14 |
| - _createTextVNode(_toDisplayString(world.burn()) + " ", 1 /* TEXT */), |
| 14 | + _createTextVNode(_toDisplayString(world.burn()) + \\" \\", 1 /* TEXT */), |
15 | 15 | ok
|
16 |
| - ? (_openBlock(), _createElementBlock("div", { key: 0 }, "yes")) |
| 16 | + ? (_openBlock(), _createElementBlock(\\"div\\", { key: 0 }, \\"yes\\")) |
17 | 17 | : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
18 |
| - _createTextVNode("no") |
| 18 | + _createTextVNode(\\"no\\") |
19 | 19 | ], 64 /* STABLE_FRAGMENT */)),
|
20 | 20 | (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(list, (value, index) => {
|
21 |
| - return (_openBlock(), _createElementBlock("div", null, [ |
22 |
| - _createElementVNode("span", null, _toDisplayString(value + index), 1 /* TEXT */) |
| 21 | + return (_openBlock(), _createElementBlock(\\"div\\", null, [ |
| 22 | + _createElementVNode(\\"span\\", null, _toDisplayString(value + index), 1 /* TEXT */) |
23 | 23 | ]))
|
24 | 24 | }), 256 /* UNKEYED_FRAGMENT */))
|
25 | 25 | ], 2 /* CLASS */))
|
26 | 26 | }
|
27 | 27 | }"
|
28 | 28 | `;
|
29 | 29 |
|
30 |
| -exports[`compiler: integration tests function mode w/ prefixIdentifiers: true 1`] = ` |
| 30 | +exports[`compiler: integration tests > function mode w/ prefixIdentifiers: true 1`] = ` |
31 | 31 | "const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, Fragment: _Fragment, renderList: _renderList, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass } = Vue
|
32 | 32 |
|
33 | 33 | return function render(_ctx, _cache) {
|
34 |
| - return (_openBlock(), _createElementBlock("div", { |
35 |
| - id: "foo", |
| 34 | + return (_openBlock(), _createElementBlock(\\"div\\", { |
| 35 | + id: \\"foo\\", |
36 | 36 | class: _normalizeClass(_ctx.bar.baz)
|
37 | 37 | }, [
|
38 |
| - _createTextVNode(_toDisplayString(_ctx.world.burn()) + " ", 1 /* TEXT */), |
| 38 | + _createTextVNode(_toDisplayString(_ctx.world.burn()) + \\" \\", 1 /* TEXT */), |
39 | 39 | (_ctx.ok)
|
40 |
| - ? (_openBlock(), _createElementBlock("div", { key: 0 }, "yes")) |
| 40 | + ? (_openBlock(), _createElementBlock(\\"div\\", { key: 0 }, \\"yes\\")) |
41 | 41 | : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
42 |
| - _createTextVNode("no") |
| 42 | + _createTextVNode(\\"no\\") |
43 | 43 | ], 64 /* STABLE_FRAGMENT */)),
|
44 | 44 | (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.list, (value, index) => {
|
45 |
| - return (_openBlock(), _createElementBlock("div", null, [ |
46 |
| - _createElementVNode("span", null, _toDisplayString(value + index), 1 /* TEXT */) |
| 45 | + return (_openBlock(), _createElementBlock(\\"div\\", null, [ |
| 46 | + _createElementVNode(\\"span\\", null, _toDisplayString(value + index), 1 /* TEXT */) |
47 | 47 | ]))
|
48 | 48 | }), 256 /* UNKEYED_FRAGMENT */))
|
49 | 49 | ], 2 /* CLASS */))
|
50 | 50 | }"
|
51 | 51 | `;
|
52 | 52 |
|
53 |
| -exports[`compiler: integration tests module mode 1`] = ` |
54 |
| -"import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, Fragment as _Fragment, renderList as _renderList, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue" |
| 53 | +exports[`compiler: integration tests > module mode 1`] = ` |
| 54 | +"import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, Fragment as _Fragment, renderList as _renderList, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from \\"vue\\" |
55 | 55 |
|
56 | 56 | export function render(_ctx, _cache) {
|
57 |
| - return (_openBlock(), _createElementBlock("div", { |
58 |
| - id: "foo", |
| 57 | + return (_openBlock(), _createElementBlock(\\"div\\", { |
| 58 | + id: \\"foo\\", |
59 | 59 | class: _normalizeClass(_ctx.bar.baz)
|
60 | 60 | }, [
|
61 |
| - _createTextVNode(_toDisplayString(_ctx.world.burn()) + " ", 1 /* TEXT */), |
| 61 | + _createTextVNode(_toDisplayString(_ctx.world.burn()) + \\" \\", 1 /* TEXT */), |
62 | 62 | (_ctx.ok)
|
63 |
| - ? (_openBlock(), _createElementBlock("div", { key: 0 }, "yes")) |
| 63 | + ? (_openBlock(), _createElementBlock(\\"div\\", { key: 0 }, \\"yes\\")) |
64 | 64 | : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
65 |
| - _createTextVNode("no") |
| 65 | + _createTextVNode(\\"no\\") |
66 | 66 | ], 64 /* STABLE_FRAGMENT */)),
|
67 | 67 | (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.list, (value, index) => {
|
68 |
| - return (_openBlock(), _createElementBlock("div", null, [ |
69 |
| - _createElementVNode("span", null, _toDisplayString(value + index), 1 /* TEXT */) |
| 68 | + return (_openBlock(), _createElementBlock(\\"div\\", null, [ |
| 69 | + _createElementVNode(\\"span\\", null, _toDisplayString(value + index), 1 /* TEXT */) |
70 | 70 | ]))
|
71 | 71 | }), 256 /* UNKEYED_FRAGMENT */))
|
72 | 72 | ], 2 /* CLASS */))
|
|
0 commit comments