svelte-declarative-testing 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ast.json DELETED
@@ -1,1670 +0,0 @@
1
- {
2
- "css": null,
3
- "js": [],
4
- "start": 0,
5
- "end": 822,
6
- "type": "Root",
7
- "fragment": {
8
- "type": "Fragment",
9
- "nodes": [
10
- {
11
- "type": "Text",
12
- "start": 153,
13
- "end": 155,
14
- "raw": "\n\n",
15
- "data": "\n\n"
16
- },
17
- {
18
- "type": "Component",
19
- "start": 155,
20
- "end": 821,
21
- "name": "Describe",
22
- "name_loc": {
23
- "start": {
24
- "line": 6,
25
- "column": 1,
26
- "character": 156
27
- },
28
- "end": {
29
- "line": 6,
30
- "column": 9,
31
- "character": 164
32
- }
33
- },
34
- "attributes": [
35
- {
36
- "type": "Attribute",
37
- "start": 165,
38
- "end": 183,
39
- "name": "label",
40
- "name_loc": {
41
- "start": {
42
- "line": 6,
43
- "column": 10,
44
- "character": 165
45
- },
46
- "end": {
47
- "line": 6,
48
- "column": 15,
49
- "character": 170
50
- }
51
- },
52
- "value": [
53
- {
54
- "start": 172,
55
- "end": 182,
56
- "type": "Text",
57
- "raw": "Basic test",
58
- "data": "Basic test"
59
- }
60
- ]
61
- }
62
- ],
63
- "fragment": {
64
- "type": "Fragment",
65
- "nodes": [
66
- {
67
- "type": "Text",
68
- "start": 184,
69
- "end": 187,
70
- "raw": "\n ",
71
- "data": "\n "
72
- },
73
- {
74
- "type": "Component",
75
- "start": 187,
76
- "end": 440,
77
- "name": "Test",
78
- "name_loc": {
79
- "start": {
80
- "line": 7,
81
- "column": 3,
82
- "character": 188
83
- },
84
- "end": {
85
- "line": 7,
86
- "column": 7,
87
- "character": 192
88
- }
89
- },
90
- "attributes": [
91
- {
92
- "type": "Attribute",
93
- "start": 193,
94
- "end": 226,
95
- "name": "it",
96
- "name_loc": {
97
- "start": {
98
- "line": 7,
99
- "column": 8,
100
- "character": 193
101
- },
102
- "end": {
103
- "line": 7,
104
- "column": 10,
105
- "character": 195
106
- }
107
- },
108
- "value": [
109
- {
110
- "start": 197,
111
- "end": 225,
112
- "type": "Text",
113
- "raw": "finds the rendered component",
114
- "data": "finds the rendered component"
115
- }
116
- ]
117
- }
118
- ],
119
- "fragment": {
120
- "type": "Fragment",
121
- "nodes": [
122
- {
123
- "type": "Text",
124
- "start": 227,
125
- "end": 232,
126
- "raw": "\n ",
127
- "data": "\n "
128
- },
129
- {
130
- "type": "SnippetBlock",
131
- "start": 232,
132
- "end": 297,
133
- "expression": {
134
- "type": "Identifier",
135
- "name": "mount",
136
- "start": 242,
137
- "end": 247,
138
- "loc": {
139
- "start": {
140
- "line": 8,
141
- "column": 14,
142
- "character": 242
143
- },
144
- "end": {
145
- "line": 8,
146
- "column": 19,
147
- "character": 247
148
- }
149
- }
150
- },
151
- "parameters": [],
152
- "body": {
153
- "type": "Fragment",
154
- "nodes": [
155
- {
156
- "type": "Text",
157
- "start": 250,
158
- "end": 257,
159
- "raw": "\n ",
160
- "data": "\n "
161
- },
162
- {
163
- "type": "RegularElement",
164
- "start": 257,
165
- "end": 282,
166
- "name": "button",
167
- "name_loc": {
168
- "start": {
169
- "line": 9,
170
- "column": 7,
171
- "character": 258
172
- },
173
- "end": {
174
- "line": 9,
175
- "column": 13,
176
- "character": 264
177
- }
178
- },
179
- "attributes": [],
180
- "fragment": {
181
- "type": "Fragment",
182
- "nodes": [
183
- {
184
- "type": "Text",
185
- "start": 265,
186
- "end": 273,
187
- "raw": "Click me",
188
- "data": "Click me"
189
- }
190
- ]
191
- }
192
- },
193
- {
194
- "type": "Text",
195
- "start": 282,
196
- "end": 287,
197
- "raw": "\n ",
198
- "data": "\n "
199
- }
200
- ]
201
- }
202
- },
203
- {
204
- "type": "Text",
205
- "start": 297,
206
- "end": 303,
207
- "raw": "\n\n ",
208
- "data": "\n\n "
209
- },
210
- {
211
- "type": "Component",
212
- "start": 303,
213
- "end": 430,
214
- "name": "Check",
215
- "name_loc": {
216
- "start": {
217
- "line": 12,
218
- "column": 5,
219
- "character": 304
220
- },
221
- "end": {
222
- "line": 12,
223
- "column": 10,
224
- "character": 309
225
- }
226
- },
227
- "attributes": [
228
- {
229
- "type": "Attribute",
230
- "start": 316,
231
- "end": 423,
232
- "name": "fn",
233
- "name_loc": {
234
- "start": {
235
- "line": 13,
236
- "column": 6,
237
- "character": 316
238
- },
239
- "end": {
240
- "line": 13,
241
- "column": 8,
242
- "character": 318
243
- }
244
- },
245
- "value": {
246
- "type": "ExpressionTag",
247
- "start": 319,
248
- "end": 423,
249
- "expression": {
250
- "type": "ArrowFunctionExpression",
251
- "start": 320,
252
- "end": 422,
253
- "loc": {
254
- "start": {
255
- "line": 13,
256
- "column": 10
257
- },
258
- "end": {
259
- "line": 15,
260
- "column": 7
261
- }
262
- },
263
- "id": null,
264
- "expression": false,
265
- "generator": false,
266
- "async": false,
267
- "params": [
268
- {
269
- "type": "ObjectPattern",
270
- "start": 321,
271
- "end": 334,
272
- "loc": {
273
- "start": {
274
- "line": 13,
275
- "column": 11
276
- },
277
- "end": {
278
- "line": 13,
279
- "column": 24
280
- }
281
- },
282
- "properties": [
283
- {
284
- "type": "Property",
285
- "start": 323,
286
- "end": 332,
287
- "loc": {
288
- "start": {
289
- "line": 13,
290
- "column": 13
291
- },
292
- "end": {
293
- "line": 13,
294
- "column": 22
295
- }
296
- },
297
- "method": false,
298
- "shorthand": true,
299
- "computed": false,
300
- "key": {
301
- "type": "Identifier",
302
- "start": 323,
303
- "end": 332,
304
- "loc": {
305
- "start": {
306
- "line": 13,
307
- "column": 13
308
- },
309
- "end": {
310
- "line": 13,
311
- "column": 22
312
- }
313
- },
314
- "name": "getByRole"
315
- },
316
- "value": {
317
- "type": "Identifier",
318
- "start": 323,
319
- "end": 332,
320
- "loc": {
321
- "start": {
322
- "line": 13,
323
- "column": 13
324
- },
325
- "end": {
326
- "line": 13,
327
- "column": 22
328
- }
329
- },
330
- "name": "getByRole"
331
- },
332
- "kind": "init"
333
- }
334
- ]
335
- }
336
- ],
337
- "body": {
338
- "type": "BlockStatement",
339
- "start": 339,
340
- "end": 422,
341
- "loc": {
342
- "start": {
343
- "line": 13,
344
- "column": 29
345
- },
346
- "end": {
347
- "line": 15,
348
- "column": 7
349
- }
350
- },
351
- "body": [
352
- {
353
- "type": "ExpressionStatement",
354
- "start": 349,
355
- "end": 414,
356
- "loc": {
357
- "start": {
358
- "line": 14,
359
- "column": 8
360
- },
361
- "end": {
362
- "line": 14,
363
- "column": 73
364
- }
365
- },
366
- "expression": {
367
- "type": "CallExpression",
368
- "start": 349,
369
- "end": 413,
370
- "loc": {
371
- "start": {
372
- "line": 14,
373
- "column": 8
374
- },
375
- "end": {
376
- "line": 14,
377
- "column": 72
378
- }
379
- },
380
- "callee": {
381
- "type": "MemberExpression",
382
- "start": 349,
383
- "end": 407,
384
- "loc": {
385
- "start": {
386
- "line": 14,
387
- "column": 8
388
- },
389
- "end": {
390
- "line": 14,
391
- "column": 66
392
- }
393
- },
394
- "object": {
395
- "type": "MemberExpression",
396
- "start": 349,
397
- "end": 402,
398
- "loc": {
399
- "start": {
400
- "line": 14,
401
- "column": 8
402
- },
403
- "end": {
404
- "line": 14,
405
- "column": 61
406
- }
407
- },
408
- "object": {
409
- "type": "CallExpression",
410
- "start": 349,
411
- "end": 398,
412
- "loc": {
413
- "start": {
414
- "line": 14,
415
- "column": 8
416
- },
417
- "end": {
418
- "line": 14,
419
- "column": 57
420
- }
421
- },
422
- "callee": {
423
- "type": "Identifier",
424
- "start": 349,
425
- "end": 355,
426
- "loc": {
427
- "start": {
428
- "line": 14,
429
- "column": 8
430
- },
431
- "end": {
432
- "line": 14,
433
- "column": 14
434
- }
435
- },
436
- "name": "expect"
437
- },
438
- "arguments": [
439
- {
440
- "type": "CallExpression",
441
- "start": 356,
442
- "end": 397,
443
- "loc": {
444
- "start": {
445
- "line": 14,
446
- "column": 15
447
- },
448
- "end": {
449
- "line": 14,
450
- "column": 56
451
- }
452
- },
453
- "callee": {
454
- "type": "Identifier",
455
- "start": 356,
456
- "end": 365,
457
- "loc": {
458
- "start": {
459
- "line": 14,
460
- "column": 15
461
- },
462
- "end": {
463
- "line": 14,
464
- "column": 24
465
- }
466
- },
467
- "name": "getByRole"
468
- },
469
- "arguments": [
470
- {
471
- "type": "Literal",
472
- "start": 366,
473
- "end": 374,
474
- "loc": {
475
- "start": {
476
- "line": 14,
477
- "column": 25
478
- },
479
- "end": {
480
- "line": 14,
481
- "column": 33
482
- }
483
- },
484
- "value": "button",
485
- "raw": "'button'"
486
- },
487
- {
488
- "type": "ObjectExpression",
489
- "start": 376,
490
- "end": 396,
491
- "loc": {
492
- "start": {
493
- "line": 14,
494
- "column": 35
495
- },
496
- "end": {
497
- "line": 14,
498
- "column": 55
499
- }
500
- },
501
- "properties": [
502
- {
503
- "type": "Property",
504
- "start": 378,
505
- "end": 394,
506
- "loc": {
507
- "start": {
508
- "line": 14,
509
- "column": 37
510
- },
511
- "end": {
512
- "line": 14,
513
- "column": 53
514
- }
515
- },
516
- "method": false,
517
- "shorthand": false,
518
- "computed": false,
519
- "key": {
520
- "type": "Identifier",
521
- "start": 378,
522
- "end": 382,
523
- "loc": {
524
- "start": {
525
- "line": 14,
526
- "column": 37
527
- },
528
- "end": {
529
- "line": 14,
530
- "column": 41
531
- }
532
- },
533
- "name": "name"
534
- },
535
- "value": {
536
- "type": "Literal",
537
- "start": 384,
538
- "end": 394,
539
- "loc": {
540
- "start": {
541
- "line": 14,
542
- "column": 43
543
- },
544
- "end": {
545
- "line": 14,
546
- "column": 53
547
- }
548
- },
549
- "value": "Click me",
550
- "raw": "'Click me'"
551
- },
552
- "kind": "init"
553
- }
554
- ]
555
- }
556
- ],
557
- "optional": false
558
- }
559
- ],
560
- "optional": false
561
- },
562
- "property": {
563
- "type": "Identifier",
564
- "start": 399,
565
- "end": 402,
566
- "loc": {
567
- "start": {
568
- "line": 14,
569
- "column": 58
570
- },
571
- "end": {
572
- "line": 14,
573
- "column": 61
574
- }
575
- },
576
- "name": "not"
577
- },
578
- "computed": false,
579
- "optional": false
580
- },
581
- "property": {
582
- "type": "Identifier",
583
- "start": 403,
584
- "end": 407,
585
- "loc": {
586
- "start": {
587
- "line": 14,
588
- "column": 62
589
- },
590
- "end": {
591
- "line": 14,
592
- "column": 66
593
- }
594
- },
595
- "name": "toBe"
596
- },
597
- "computed": false,
598
- "optional": false
599
- },
600
- "arguments": [
601
- {
602
- "type": "Literal",
603
- "start": 408,
604
- "end": 412,
605
- "loc": {
606
- "start": {
607
- "line": 14,
608
- "column": 67
609
- },
610
- "end": {
611
- "line": 14,
612
- "column": 71
613
- }
614
- },
615
- "value": null,
616
- "raw": "null"
617
- }
618
- ],
619
- "optional": false
620
- }
621
- }
622
- ]
623
- }
624
- }
625
- }
626
- }
627
- ],
628
- "fragment": {
629
- "type": "Fragment",
630
- "nodes": []
631
- }
632
- },
633
- {
634
- "type": "Text",
635
- "start": 430,
636
- "end": 433,
637
- "raw": "\n ",
638
- "data": "\n "
639
- }
640
- ]
641
- }
642
- },
643
- {
644
- "type": "Text",
645
- "start": 440,
646
- "end": 444,
647
- "raw": "\n\n ",
648
- "data": "\n\n "
649
- },
650
- {
651
- "type": "Component",
652
- "start": 444,
653
- "end": 809,
654
- "name": "Describe",
655
- "name_loc": {
656
- "start": {
657
- "line": 19,
658
- "column": 3,
659
- "character": 445
660
- },
661
- "end": {
662
- "line": 19,
663
- "column": 11,
664
- "character": 453
665
- }
666
- },
667
- "attributes": [
668
- {
669
- "type": "Attribute",
670
- "start": 454,
671
- "end": 477,
672
- "name": "label",
673
- "name_loc": {
674
- "start": {
675
- "line": 19,
676
- "column": 12,
677
- "character": 454
678
- },
679
- "end": {
680
- "line": 19,
681
- "column": 17,
682
- "character": 459
683
- }
684
- },
685
- "value": [
686
- {
687
- "start": 461,
688
- "end": 476,
689
- "type": "Text",
690
- "raw": "Nested describe",
691
- "data": "Nested describe"
692
- }
693
- ]
694
- }
695
- ],
696
- "fragment": {
697
- "type": "Fragment",
698
- "nodes": [
699
- {
700
- "type": "Text",
701
- "start": 478,
702
- "end": 483,
703
- "raw": "\n ",
704
- "data": "\n "
705
- },
706
- {
707
- "type": "Component",
708
- "start": 483,
709
- "end": 795,
710
- "name": "Test",
711
- "name_loc": {
712
- "start": {
713
- "line": 20,
714
- "column": 5,
715
- "character": 484
716
- },
717
- "end": {
718
- "line": 20,
719
- "column": 9,
720
- "character": 488
721
- }
722
- },
723
- "attributes": [
724
- {
725
- "type": "Attribute",
726
- "start": 489,
727
- "end": 505,
728
- "name": "it",
729
- "name_loc": {
730
- "start": {
731
- "line": 20,
732
- "column": 10,
733
- "character": 489
734
- },
735
- "end": {
736
- "line": 20,
737
- "column": 12,
738
- "character": 491
739
- }
740
- },
741
- "value": [
742
- {
743
- "start": 493,
744
- "end": 504,
745
- "type": "Text",
746
- "raw": "also passes",
747
- "data": "also passes"
748
- }
749
- ]
750
- }
751
- ],
752
- "fragment": {
753
- "type": "Fragment",
754
- "nodes": [
755
- {
756
- "type": "Text",
757
- "start": 506,
758
- "end": 513,
759
- "raw": "\n ",
760
- "data": "\n "
761
- },
762
- {
763
- "type": "SnippetBlock",
764
- "start": 513,
765
- "end": 600,
766
- "expression": {
767
- "type": "Identifier",
768
- "name": "mount",
769
- "start": 523,
770
- "end": 528,
771
- "loc": {
772
- "start": {
773
- "line": 21,
774
- "column": 16,
775
- "character": 523
776
- },
777
- "end": {
778
- "line": 21,
779
- "column": 21,
780
- "character": 528
781
- }
782
- }
783
- },
784
- "parameters": [],
785
- "body": {
786
- "type": "Fragment",
787
- "nodes": [
788
- {
789
- "type": "Text",
790
- "start": 531,
791
- "end": 540,
792
- "raw": "\n ",
793
- "data": "\n "
794
- },
795
- {
796
- "type": "RegularElement",
797
- "start": 540,
798
- "end": 583,
799
- "name": "button",
800
- "name_loc": {
801
- "start": {
802
- "line": 22,
803
- "column": 9,
804
- "character": 541
805
- },
806
- "end": {
807
- "line": 22,
808
- "column": 15,
809
- "character": 547
810
- }
811
- },
812
- "attributes": [
813
- {
814
- "type": "Attribute",
815
- "start": 548,
816
- "end": 565,
817
- "name": "onclick",
818
- "name_loc": {
819
- "start": {
820
- "line": 22,
821
- "column": 16,
822
- "character": 548
823
- },
824
- "end": {
825
- "line": 22,
826
- "column": 23,
827
- "character": 555
828
- }
829
- },
830
- "value": {
831
- "type": "ExpressionTag",
832
- "start": 556,
833
- "end": 565,
834
- "expression": {
835
- "type": "Identifier",
836
- "start": 557,
837
- "end": 564,
838
- "loc": {
839
- "start": {
840
- "line": 22,
841
- "column": 25
842
- },
843
- "end": {
844
- "line": 22,
845
- "column": 32
846
- }
847
- },
848
- "name": "handler"
849
- }
850
- }
851
- }
852
- ],
853
- "fragment": {
854
- "type": "Fragment",
855
- "nodes": [
856
- {
857
- "type": "Text",
858
- "start": 566,
859
- "end": 574,
860
- "raw": "Click me",
861
- "data": "Click me"
862
- }
863
- ]
864
- }
865
- },
866
- {
867
- "type": "Text",
868
- "start": 583,
869
- "end": 590,
870
- "raw": "\n ",
871
- "data": "\n "
872
- }
873
- ]
874
- }
875
- },
876
- {
877
- "type": "Text",
878
- "start": 600,
879
- "end": 608,
880
- "raw": "\n\n ",
881
- "data": "\n\n "
882
- },
883
- {
884
- "type": "Component",
885
- "start": 608,
886
- "end": 783,
887
- "name": "Check",
888
- "name_loc": {
889
- "start": {
890
- "line": 25,
891
- "column": 7,
892
- "character": 609
893
- },
894
- "end": {
895
- "line": 25,
896
- "column": 12,
897
- "character": 614
898
- }
899
- },
900
- "attributes": [
901
- {
902
- "type": "Attribute",
903
- "start": 623,
904
- "end": 774,
905
- "name": "fn",
906
- "name_loc": {
907
- "start": {
908
- "line": 26,
909
- "column": 8,
910
- "character": 623
911
- },
912
- "end": {
913
- "line": 26,
914
- "column": 10,
915
- "character": 625
916
- }
917
- },
918
- "value": {
919
- "type": "ExpressionTag",
920
- "start": 626,
921
- "end": 774,
922
- "expression": {
923
- "type": "ArrowFunctionExpression",
924
- "start": 627,
925
- "end": 773,
926
- "loc": {
927
- "start": {
928
- "line": 26,
929
- "column": 12
930
- },
931
- "end": {
932
- "line": 29,
933
- "column": 9
934
- }
935
- },
936
- "id": null,
937
- "expression": false,
938
- "generator": false,
939
- "async": false,
940
- "params": [
941
- {
942
- "type": "ObjectPattern",
943
- "start": 628,
944
- "end": 641,
945
- "loc": {
946
- "start": {
947
- "line": 26,
948
- "column": 13
949
- },
950
- "end": {
951
- "line": 26,
952
- "column": 26
953
- }
954
- },
955
- "properties": [
956
- {
957
- "type": "Property",
958
- "start": 630,
959
- "end": 639,
960
- "loc": {
961
- "start": {
962
- "line": 26,
963
- "column": 15
964
- },
965
- "end": {
966
- "line": 26,
967
- "column": 24
968
- }
969
- },
970
- "method": false,
971
- "shorthand": true,
972
- "computed": false,
973
- "key": {
974
- "type": "Identifier",
975
- "start": 630,
976
- "end": 639,
977
- "loc": {
978
- "start": {
979
- "line": 26,
980
- "column": 15
981
- },
982
- "end": {
983
- "line": 26,
984
- "column": 24
985
- }
986
- },
987
- "name": "getByRole"
988
- },
989
- "value": {
990
- "type": "Identifier",
991
- "start": 630,
992
- "end": 639,
993
- "loc": {
994
- "start": {
995
- "line": 26,
996
- "column": 15
997
- },
998
- "end": {
999
- "line": 26,
1000
- "column": 24
1001
- }
1002
- },
1003
- "name": "getByRole"
1004
- },
1005
- "kind": "init"
1006
- }
1007
- ]
1008
- }
1009
- ],
1010
- "body": {
1011
- "type": "BlockStatement",
1012
- "start": 646,
1013
- "end": 773,
1014
- "loc": {
1015
- "start": {
1016
- "line": 26,
1017
- "column": 31
1018
- },
1019
- "end": {
1020
- "line": 29,
1021
- "column": 9
1022
- }
1023
- },
1024
- "body": [
1025
- {
1026
- "type": "ExpressionStatement",
1027
- "start": 658,
1028
- "end": 717,
1029
- "loc": {
1030
- "start": {
1031
- "line": 27,
1032
- "column": 10
1033
- },
1034
- "end": {
1035
- "line": 27,
1036
- "column": 69
1037
- }
1038
- },
1039
- "expression": {
1040
- "type": "CallExpression",
1041
- "start": 658,
1042
- "end": 716,
1043
- "loc": {
1044
- "start": {
1045
- "line": 27,
1046
- "column": 10
1047
- },
1048
- "end": {
1049
- "line": 27,
1050
- "column": 68
1051
- }
1052
- },
1053
- "callee": {
1054
- "type": "MemberExpression",
1055
- "start": 658,
1056
- "end": 673,
1057
- "loc": {
1058
- "start": {
1059
- "line": 27,
1060
- "column": 10
1061
- },
1062
- "end": {
1063
- "line": 27,
1064
- "column": 25
1065
- }
1066
- },
1067
- "object": {
1068
- "type": "Identifier",
1069
- "start": 658,
1070
- "end": 667,
1071
- "loc": {
1072
- "start": {
1073
- "line": 27,
1074
- "column": 10
1075
- },
1076
- "end": {
1077
- "line": 27,
1078
- "column": 19
1079
- }
1080
- },
1081
- "name": "fireEvent"
1082
- },
1083
- "property": {
1084
- "type": "Identifier",
1085
- "start": 668,
1086
- "end": 673,
1087
- "loc": {
1088
- "start": {
1089
- "line": 27,
1090
- "column": 20
1091
- },
1092
- "end": {
1093
- "line": 27,
1094
- "column": 25
1095
- }
1096
- },
1097
- "name": "click"
1098
- },
1099
- "computed": false,
1100
- "optional": false
1101
- },
1102
- "arguments": [
1103
- {
1104
- "type": "CallExpression",
1105
- "start": 674,
1106
- "end": 715,
1107
- "loc": {
1108
- "start": {
1109
- "line": 27,
1110
- "column": 26
1111
- },
1112
- "end": {
1113
- "line": 27,
1114
- "column": 67
1115
- }
1116
- },
1117
- "callee": {
1118
- "type": "Identifier",
1119
- "start": 674,
1120
- "end": 683,
1121
- "loc": {
1122
- "start": {
1123
- "line": 27,
1124
- "column": 26
1125
- },
1126
- "end": {
1127
- "line": 27,
1128
- "column": 35
1129
- }
1130
- },
1131
- "name": "getByRole"
1132
- },
1133
- "arguments": [
1134
- {
1135
- "type": "Literal",
1136
- "start": 684,
1137
- "end": 692,
1138
- "loc": {
1139
- "start": {
1140
- "line": 27,
1141
- "column": 36
1142
- },
1143
- "end": {
1144
- "line": 27,
1145
- "column": 44
1146
- }
1147
- },
1148
- "value": "button",
1149
- "raw": "'button'"
1150
- },
1151
- {
1152
- "type": "ObjectExpression",
1153
- "start": 694,
1154
- "end": 714,
1155
- "loc": {
1156
- "start": {
1157
- "line": 27,
1158
- "column": 46
1159
- },
1160
- "end": {
1161
- "line": 27,
1162
- "column": 66
1163
- }
1164
- },
1165
- "properties": [
1166
- {
1167
- "type": "Property",
1168
- "start": 696,
1169
- "end": 712,
1170
- "loc": {
1171
- "start": {
1172
- "line": 27,
1173
- "column": 48
1174
- },
1175
- "end": {
1176
- "line": 27,
1177
- "column": 64
1178
- }
1179
- },
1180
- "method": false,
1181
- "shorthand": false,
1182
- "computed": false,
1183
- "key": {
1184
- "type": "Identifier",
1185
- "start": 696,
1186
- "end": 700,
1187
- "loc": {
1188
- "start": {
1189
- "line": 27,
1190
- "column": 48
1191
- },
1192
- "end": {
1193
- "line": 27,
1194
- "column": 52
1195
- }
1196
- },
1197
- "name": "name"
1198
- },
1199
- "value": {
1200
- "type": "Literal",
1201
- "start": 702,
1202
- "end": 712,
1203
- "loc": {
1204
- "start": {
1205
- "line": 27,
1206
- "column": 54
1207
- },
1208
- "end": {
1209
- "line": 27,
1210
- "column": 64
1211
- }
1212
- },
1213
- "value": "Click me",
1214
- "raw": "'Click me'"
1215
- },
1216
- "kind": "init"
1217
- }
1218
- ]
1219
- }
1220
- ],
1221
- "optional": false
1222
- }
1223
- ],
1224
- "optional": false
1225
- }
1226
- },
1227
- {
1228
- "type": "ExpressionStatement",
1229
- "start": 728,
1230
- "end": 763,
1231
- "loc": {
1232
- "start": {
1233
- "line": 28,
1234
- "column": 10
1235
- },
1236
- "end": {
1237
- "line": 28,
1238
- "column": 45
1239
- }
1240
- },
1241
- "expression": {
1242
- "type": "CallExpression",
1243
- "start": 728,
1244
- "end": 762,
1245
- "loc": {
1246
- "start": {
1247
- "line": 28,
1248
- "column": 10
1249
- },
1250
- "end": {
1251
- "line": 28,
1252
- "column": 44
1253
- }
1254
- },
1255
- "callee": {
1256
- "type": "MemberExpression",
1257
- "start": 728,
1258
- "end": 760,
1259
- "loc": {
1260
- "start": {
1261
- "line": 28,
1262
- "column": 10
1263
- },
1264
- "end": {
1265
- "line": 28,
1266
- "column": 42
1267
- }
1268
- },
1269
- "object": {
1270
- "type": "CallExpression",
1271
- "start": 728,
1272
- "end": 743,
1273
- "loc": {
1274
- "start": {
1275
- "line": 28,
1276
- "column": 10
1277
- },
1278
- "end": {
1279
- "line": 28,
1280
- "column": 25
1281
- }
1282
- },
1283
- "callee": {
1284
- "type": "Identifier",
1285
- "start": 728,
1286
- "end": 734,
1287
- "loc": {
1288
- "start": {
1289
- "line": 28,
1290
- "column": 10
1291
- },
1292
- "end": {
1293
- "line": 28,
1294
- "column": 16
1295
- }
1296
- },
1297
- "name": "expect"
1298
- },
1299
- "arguments": [
1300
- {
1301
- "type": "Identifier",
1302
- "start": 735,
1303
- "end": 742,
1304
- "loc": {
1305
- "start": {
1306
- "line": 28,
1307
- "column": 17
1308
- },
1309
- "end": {
1310
- "line": 28,
1311
- "column": 24
1312
- }
1313
- },
1314
- "name": "handler"
1315
- }
1316
- ],
1317
- "optional": false
1318
- },
1319
- "property": {
1320
- "type": "Identifier",
1321
- "start": 744,
1322
- "end": 760,
1323
- "loc": {
1324
- "start": {
1325
- "line": 28,
1326
- "column": 26
1327
- },
1328
- "end": {
1329
- "line": 28,
1330
- "column": 42
1331
- }
1332
- },
1333
- "name": "toHaveBeenCalled"
1334
- },
1335
- "computed": false,
1336
- "optional": false
1337
- },
1338
- "arguments": [],
1339
- "optional": false
1340
- }
1341
- }
1342
- ]
1343
- }
1344
- }
1345
- }
1346
- }
1347
- ],
1348
- "fragment": {
1349
- "type": "Fragment",
1350
- "nodes": []
1351
- }
1352
- },
1353
- {
1354
- "type": "Text",
1355
- "start": 783,
1356
- "end": 788,
1357
- "raw": "\n ",
1358
- "data": "\n "
1359
- }
1360
- ]
1361
- }
1362
- },
1363
- {
1364
- "type": "Text",
1365
- "start": 795,
1366
- "end": 798,
1367
- "raw": "\n ",
1368
- "data": "\n "
1369
- }
1370
- ]
1371
- }
1372
- },
1373
- {
1374
- "type": "Text",
1375
- "start": 809,
1376
- "end": 810,
1377
- "raw": "\n",
1378
- "data": "\n"
1379
- }
1380
- ]
1381
- }
1382
- }
1383
- ]
1384
- },
1385
- "options": null,
1386
- "comments": [],
1387
- "instance": {
1388
- "type": "Script",
1389
- "start": 0,
1390
- "end": 153,
1391
- "context": "default",
1392
- "content": {
1393
- "type": "Program",
1394
- "start": 8,
1395
- "end": 144,
1396
- "loc": {
1397
- "start": {
1398
- "line": 1,
1399
- "column": 0
1400
- },
1401
- "end": {
1402
- "line": 4,
1403
- "column": 9
1404
- }
1405
- },
1406
- "body": [
1407
- {
1408
- "type": "ImportDeclaration",
1409
- "start": 11,
1410
- "end": 63,
1411
- "loc": {
1412
- "start": {
1413
- "line": 2,
1414
- "column": 2
1415
- },
1416
- "end": {
1417
- "line": 2,
1418
- "column": 54
1419
- }
1420
- },
1421
- "specifiers": [
1422
- {
1423
- "type": "ImportSpecifier",
1424
- "start": 20,
1425
- "end": 29,
1426
- "loc": {
1427
- "start": {
1428
- "line": 2,
1429
- "column": 11
1430
- },
1431
- "end": {
1432
- "line": 2,
1433
- "column": 20
1434
- }
1435
- },
1436
- "imported": {
1437
- "type": "Identifier",
1438
- "start": 20,
1439
- "end": 29,
1440
- "loc": {
1441
- "start": {
1442
- "line": 2,
1443
- "column": 11
1444
- },
1445
- "end": {
1446
- "line": 2,
1447
- "column": 20
1448
- }
1449
- },
1450
- "name": "fireEvent"
1451
- },
1452
- "local": {
1453
- "type": "Identifier",
1454
- "start": 20,
1455
- "end": 29,
1456
- "loc": {
1457
- "start": {
1458
- "line": 2,
1459
- "column": 11
1460
- },
1461
- "end": {
1462
- "line": 2,
1463
- "column": 20
1464
- }
1465
- },
1466
- "name": "fireEvent"
1467
- }
1468
- }
1469
- ],
1470
- "source": {
1471
- "type": "Literal",
1472
- "start": 37,
1473
- "end": 62,
1474
- "loc": {
1475
- "start": {
1476
- "line": 2,
1477
- "column": 28
1478
- },
1479
- "end": {
1480
- "line": 2,
1481
- "column": 53
1482
- }
1483
- },
1484
- "value": "@testing-library/svelte",
1485
- "raw": "'@testing-library/svelte'"
1486
- },
1487
- "attributes": []
1488
- },
1489
- {
1490
- "type": "ImportDeclaration",
1491
- "start": 66,
1492
- "end": 143,
1493
- "loc": {
1494
- "start": {
1495
- "line": 3,
1496
- "column": 2
1497
- },
1498
- "end": {
1499
- "line": 3,
1500
- "column": 79
1501
- }
1502
- },
1503
- "specifiers": [
1504
- {
1505
- "type": "ImportSpecifier",
1506
- "start": 75,
1507
- "end": 79,
1508
- "loc": {
1509
- "start": {
1510
- "line": 3,
1511
- "column": 11
1512
- },
1513
- "end": {
1514
- "line": 3,
1515
- "column": 15
1516
- }
1517
- },
1518
- "imported": {
1519
- "type": "Identifier",
1520
- "start": 75,
1521
- "end": 79,
1522
- "loc": {
1523
- "start": {
1524
- "line": 3,
1525
- "column": 11
1526
- },
1527
- "end": {
1528
- "line": 3,
1529
- "column": 15
1530
- }
1531
- },
1532
- "name": "Test"
1533
- },
1534
- "local": {
1535
- "type": "Identifier",
1536
- "start": 75,
1537
- "end": 79,
1538
- "loc": {
1539
- "start": {
1540
- "line": 3,
1541
- "column": 11
1542
- },
1543
- "end": {
1544
- "line": 3,
1545
- "column": 15
1546
- }
1547
- },
1548
- "name": "Test"
1549
- }
1550
- },
1551
- {
1552
- "type": "ImportSpecifier",
1553
- "start": 81,
1554
- "end": 89,
1555
- "loc": {
1556
- "start": {
1557
- "line": 3,
1558
- "column": 17
1559
- },
1560
- "end": {
1561
- "line": 3,
1562
- "column": 25
1563
- }
1564
- },
1565
- "imported": {
1566
- "type": "Identifier",
1567
- "start": 81,
1568
- "end": 89,
1569
- "loc": {
1570
- "start": {
1571
- "line": 3,
1572
- "column": 17
1573
- },
1574
- "end": {
1575
- "line": 3,
1576
- "column": 25
1577
- }
1578
- },
1579
- "name": "Describe"
1580
- },
1581
- "local": {
1582
- "type": "Identifier",
1583
- "start": 81,
1584
- "end": 89,
1585
- "loc": {
1586
- "start": {
1587
- "line": 3,
1588
- "column": 17
1589
- },
1590
- "end": {
1591
- "line": 3,
1592
- "column": 25
1593
- }
1594
- },
1595
- "name": "Describe"
1596
- }
1597
- },
1598
- {
1599
- "type": "ImportSpecifier",
1600
- "start": 91,
1601
- "end": 96,
1602
- "loc": {
1603
- "start": {
1604
- "line": 3,
1605
- "column": 27
1606
- },
1607
- "end": {
1608
- "line": 3,
1609
- "column": 32
1610
- }
1611
- },
1612
- "imported": {
1613
- "type": "Identifier",
1614
- "start": 91,
1615
- "end": 96,
1616
- "loc": {
1617
- "start": {
1618
- "line": 3,
1619
- "column": 27
1620
- },
1621
- "end": {
1622
- "line": 3,
1623
- "column": 32
1624
- }
1625
- },
1626
- "name": "Check"
1627
- },
1628
- "local": {
1629
- "type": "Identifier",
1630
- "start": 91,
1631
- "end": 96,
1632
- "loc": {
1633
- "start": {
1634
- "line": 3,
1635
- "column": 27
1636
- },
1637
- "end": {
1638
- "line": 3,
1639
- "column": 32
1640
- }
1641
- },
1642
- "name": "Check"
1643
- }
1644
- }
1645
- ],
1646
- "source": {
1647
- "type": "Literal",
1648
- "start": 104,
1649
- "end": 142,
1650
- "loc": {
1651
- "start": {
1652
- "line": 3,
1653
- "column": 40
1654
- },
1655
- "end": {
1656
- "line": 3,
1657
- "column": 78
1658
- }
1659
- },
1660
- "value": "../../src/components/testing-library",
1661
- "raw": "'../../src/components/testing-library'"
1662
- },
1663
- "attributes": []
1664
- }
1665
- ],
1666
- "sourceType": "module"
1667
- },
1668
- "attributes": []
1669
- }
1670
- }