svelte-declarative-testing 0.1.0 → 0.2.0

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