1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` MereProps Order: MereProps Order 1` ] = `
4
- "import { createVNode as _createVNode } from \\ "vue\\ ";
5
- import { mergeProps as _mergeProps } from \\ "vue\\ ";
6
- import { createTextVNode as _createTextVNode } from \\ "vue\\ ";
4
+ "import { createVNode as _createVNode , mergeProps as _mergeProps , createTextVNode as _createTextVNode } from \\ "vue\\ ";
7
5
8
6
_createVNode(\\ "button\\ ", _mergeProps({
9
7
\\" loading\\ " : true
@@ -27,24 +25,19 @@ createVNode('div', null, ['Without JSX should work']);"
27
25
` ;
28
26
29
27
exports [` Without props: Without props 1` ] = `
30
- "import { createVNode as _createVNode } from \\ "vue\\ ";
31
- import { createTextVNode as _createTextVNode } from \\ "vue\\ ";
28
+ "import { createVNode as _createVNode , createTextVNode as _createTextVNode } from \\ "vue\\ ";
32
29
33
30
_createVNode(\\ "a\\ ", null, [_createTextVNode(\\ "a\\ ")]);"
34
31
` ;
35
32
36
33
exports [` custom directive: custom directive 1` ] = `
37
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
38
- import { createVNode as _createVNode } from \\ "vue\\ ";
39
- import { resolveDirective as _resolveDirective } from \\ "vue\\ ";
40
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
34
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , resolveDirective as _resolveDirective , resolveComponent as _resolveComponent } from \\ "vue\\ ";
41
35
42
36
_withDirectives(_createVNode(_resolveComponent(\\ "A\\ "), null, null, 512), [[_resolveDirective(\\ "cus\\ "), x]]);"
43
37
` ;
44
38
45
39
exports [` disable object slot syntax with defaultSlot: defaultSlot 1` ] = `
46
- "import { createVNode as _createVNode } from \\ "vue\\ ";
47
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
40
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent } from \\ "vue\\ ";
48
41
49
42
_createVNode(_resolveComponent(\\ "Badge\\ "), null, {
50
43
default : () => [slots .default ()],
@@ -53,9 +46,7 @@ _createVNode(_resolveComponent(\\"Badge\\"), null, {
53
46
` ;
54
47
55
48
exports [` dynamic type in input: dynamic type in input 1` ] = `
56
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
57
- import { createVNode as _createVNode } from \\ "vue\\ ";
58
- import { vModelDynamic as _vModelDynamic } from \\ "vue\\ ";
49
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , vModelDynamic as _vModelDynamic } from \\ "vue\\ ";
59
50
60
51
_withDirectives(_createVNode(\\ "input\\ ", {
61
52
\\" type\\ " : type ,
@@ -64,9 +55,7 @@ _withDirectives(_createVNode(\\"input\\", {
64
55
` ;
65
56
66
57
exports [` input[type="checkbox"]: input[type="checkbox"] 1` ] = `
67
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
68
- import { createVNode as _createVNode } from \\ "vue\\ ";
69
- import { vModelCheckbox as _vModelCheckbox } from \\ "vue\\ ";
58
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , vModelCheckbox as _vModelCheckbox } from \\ "vue\\ ";
70
59
71
60
_withDirectives(_createVNode(\\ "input\\ ", {
72
61
\\" type\\ " : \\" checkbox\\ " ,
@@ -75,10 +64,7 @@ _withDirectives(_createVNode(\\"input\\", {
75
64
` ;
76
65
77
66
exports [` input[type="radio"]: input[type="radio"] 1` ] = `
78
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
79
- import { createVNode as _createVNode } from \\ "vue\\ ";
80
- import { vModelRadio as _vModelRadio } from \\ "vue\\ ";
81
- import { Fragment as _Fragment } from \\ "vue\\ ";
67
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , vModelRadio as _vModelRadio , Fragment as _Fragment } from \\ "vue\\ ";
82
68
83
69
_createVNode(_Fragment, null, [_withDirectives(_createVNode(\\ "input\\ ", {
84
70
\\" type\\ " : \\" radio\\ " ,
@@ -94,9 +80,7 @@ _createVNode(_Fragment, null, [_withDirectives(_createVNode(\\"input\\", {
94
80
` ;
95
81
96
82
exports [` input[type="text"] .lazy modifier: input[type="text"] .lazy modifier 1` ] = `
97
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
98
- import { createVNode as _createVNode } from \\ "vue\\ ";
99
- import { vModelText as _vModelText } from \\ "vue\\ ";
83
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , vModelText as _vModelText } from \\ "vue\\ ";
100
84
101
85
_withDirectives(_createVNode(\\ "input\\ ", {
102
86
\\" onUpdate:modelValue\\ " : $event => test = $event
@@ -106,18 +90,15 @@ _withDirectives(_createVNode(\\"input\\", {
106
90
` ;
107
91
108
92
exports [` input[type="text"]: input[type="text"] 1` ] = `
109
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
110
- import { createVNode as _createVNode } from \\ "vue\\ ";
111
- import { vModelText as _vModelText } from \\ "vue\\ ";
93
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , vModelText as _vModelText } from \\ "vue\\ ";
112
94
113
95
_withDirectives(_createVNode(\\ "input\\ ", {
114
96
\\" onUpdate:modelValue\\ " : $event => test = $event
115
97
} , null, 8, [\\ "onUpdate:modelValue\\ "]), [[_vModelText, test]]);"
116
98
` ;
117
99
118
100
exports [` override props multiple: multiple 1` ] = `
119
- "import { createVNode as _createVNode } from \\ "vue\\ ";
120
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
101
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent } from \\ "vue\\ ";
121
102
122
103
_createVNode(_resolveComponent(\\ "A\\ "), {
123
104
\\" loading\\ " : true ,
@@ -138,8 +119,7 @@ _createVNode(\\"div\\", a, null);"
138
119
` ;
139
120
140
121
exports [` passing object slots via JSX children multiple expressions: multiple expressions 1` ] = `
141
- "import { createVNode as _createVNode } from \\ "vue\\ ";
142
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
122
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent } from \\ "vue\\ ";
143
123
144
124
_createVNode(_resolveComponent(\\ "A\\ "), null, {
145
125
default : () => [foo , bar ],
@@ -148,20 +128,17 @@ _createVNode(_resolveComponent(\\"A\\"), null, {
148
128
` ;
149
129
150
130
exports [` passing object slots via JSX children single expression, function expression: single expression, function expression 1` ] = `
151
- "import { createVNode as _createVNode } from \\ "vue\\ ";
152
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
131
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent } from \\ "vue\\ ";
153
132
154
133
_createVNode(_resolveComponent(\\ "A\\ "), null, {
155
134
default : () => \\" foo\\ "
156
135
} );"
157
136
` ;
158
137
159
138
exports [` passing object slots via JSX children single expression, non-literal value: runtime check: single expression, non-literal value: runtime check 1` ] = `
160
- "import { createVNode as _createVNode } from \\ "vue\\ ";
161
- import { isVNode as _isVNode } from \\ "vue\\ ";
162
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
139
+ "let _slot;
163
140
164
- let _slot ;
141
+ import { createVNode as _createVNode , isVNode as _isVNode , resolveComponent as _resolveComponent } from \\ "vue \\ " ;
165
142
166
143
function _isSlot(s) {
167
144
return typeof s === ' function' || Object .prototype .toString .call (s ) === ' [object Object]' && ! _isVNode (s );
@@ -176,8 +153,7 @@ _createVNode(_resolveComponent(\\"A\\"), null, _isSlot(_slot = foo()) ? _slot :
176
153
` ;
177
154
178
155
exports [` reassign variable as component: reassign variable as component 1` ] = `
179
- "import { isVNode as _isVNode } from \\ "vue\\ ";
180
- import { createVNode as _createVNode } from \\ "vue\\ ";
156
+ "import { isVNode as _isVNode , createVNode as _createVNode } from \\ "vue\\ ";
181
157
import { defineComponent } from 'vue';
182
158
183
159
function _isSlot(s) {
@@ -207,10 +183,7 @@ a = _createVNode(A, null, _isSlot(a) ? a : {
207
183
` ;
208
184
209
185
exports [` select: select 1` ] = `
210
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
211
- import { vModelSelect as _vModelSelect } from \\ "vue\\ ";
212
- import { createVNode as _createVNode } from \\ "vue\\ ";
213
- import { createTextVNode as _createTextVNode } from \\ "vue\\ ";
186
+ "import { withDirectives as _withDirectives , vModelSelect as _vModelSelect , createVNode as _createVNode , createTextVNode as _createTextVNode } from \\ "vue\\ ";
214
187
215
188
_withDirectives(_createVNode(\\ "select\\ ", {
216
189
\\" onUpdate:modelValue\\ " : $event => test = $event
@@ -224,16 +197,14 @@ _withDirectives(_createVNode(\\"select\\", {
224
197
` ;
225
198
226
199
exports [` should keep \` import * as Vue from "vue"\` : should keep \` import * as Vue from "vue"\` 1` ] = `
227
- "import { createVNode as _createVNode } from \\ "vue\\ ";
228
- import { createTextVNode as _createTextVNode } from \\ "vue\\ ";
200
+ "import { createVNode as _createVNode , createTextVNode as _createTextVNode } from \\ "vue\\ ";
229
201
import * as Vue from 'vue';
230
202
231
203
_createVNode(\\ "div\\ ", null, [_createTextVNode(\\ "Vue\\ ")]);"
232
204
` ;
233
205
234
206
exports [` single no need for a mergeProps call: single no need for a mergeProps call 1` ] = `
235
- "import { createVNode as _createVNode } from \\ "vue\\ ";
236
- import { createTextVNode as _createTextVNode } from \\ "vue\\ ";
207
+ "import { createVNode as _createVNode , createTextVNode as _createTextVNode } from \\ "vue\\ ";
237
208
238
209
_createVNode(\\ "div\\ ", x, [_createTextVNode(\\ "single\\ ")], 16);"
239
210
` ;
@@ -247,18 +218,15 @@ _createVNode(_Fragment, null, null);"
247
218
` ;
248
219
249
220
exports [` textarea: textarea 1` ] = `
250
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
251
- import { createVNode as _createVNode } from \\ "vue\\ ";
252
- import { vModelText as _vModelText } from \\ "vue\\ ";
221
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , vModelText as _vModelText } from \\ "vue\\ ";
253
222
254
223
_withDirectives(_createVNode(\\ "textarea\\ ", {
255
224
\\" onUpdate:modelValue\\ " : $event => test = $event
256
225
} , null, 8, [\\ "onUpdate:modelValue\\ "]), [[_vModelText, test]]);"
257
226
` ;
258
227
259
228
exports [` use "model" as the prop name: use "model" as the prop name 1` ] = `
260
- "import { createVNode as _createVNode } from \\ "vue\\ ";
261
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
229
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent } from \\ "vue\\ ";
262
230
263
231
_createVNode(_resolveComponent(\\ "C\\ "), {
264
232
\\" model\\ " : foo ,
@@ -267,10 +235,7 @@ _createVNode(_resolveComponent(\\"C\\"), {
267
235
` ;
268
236
269
237
exports [` v-show: v-show 1` ] = `
270
- "import { withDirectives as _withDirectives } from \\ "vue\\ ";
271
- import { createVNode as _createVNode } from \\ "vue\\ ";
272
- import { vShow as _vShow } from \\ "vue\\ ";
273
- import { createTextVNode as _createTextVNode } from \\ "vue\\ ";
238
+ "import { withDirectives as _withDirectives , createVNode as _createVNode , vShow as _vShow , createTextVNode as _createTextVNode } from \\ "vue\\ ";
274
239
275
240
_withDirectives(_createVNode(\\ "div\\ ", null, [_createTextVNode(\\ "vShow\\ ")], 512), [[_vShow, x]]);"
276
241
` ;
@@ -284,8 +249,7 @@ _createVNode(\\"h1\\", {
284
249
` ;
285
250
286
251
exports [` vModels: vModels 1` ] = `
287
- "import { createVNode as _createVNode } from \\ "vue\\ ";
288
- import { resolveComponent as _resolveComponent } from \\ "vue\\ ";
252
+ "import { createVNode as _createVNode , resolveComponent as _resolveComponent } from \\ "vue\\ ";
289
253
290
254
_createVNode(_resolveComponent(\\ "C\\ "), {
291
255
\\" modelValue\\ " : foo ,
0 commit comments