svelte-declarative-testing 0.2.0 → 0.3.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.
@@ -1,803 +0,0 @@
1
- {
2
- "html": {
3
- "type": "Fragment",
4
- "start": 100,
5
- "end": 438,
6
- "children": [
7
- {
8
- "type": "Text",
9
- "start": 98,
10
- "end": 100,
11
- "raw": "\n\n",
12
- "data": "\n\n"
13
- },
14
- {
15
- "type": "InlineComponent",
16
- "start": 100,
17
- "end": 438,
18
- "name": "Describe",
19
- "attributes": [
20
- {
21
- "type": "Attribute",
22
- "start": 110,
23
- "end": 128,
24
- "name": "label",
25
- "name_loc": {
26
- "start": {
27
- "line": 5,
28
- "column": 10,
29
- "character": 110
30
- },
31
- "end": {
32
- "line": 5,
33
- "column": 15,
34
- "character": 115
35
- }
36
- },
37
- "value": [
38
- {
39
- "start": 117,
40
- "end": 127,
41
- "type": "Text",
42
- "raw": "Basic test",
43
- "data": "Basic test"
44
- }
45
- ]
46
- }
47
- ],
48
- "children": [
49
- {
50
- "type": "Text",
51
- "start": 129,
52
- "end": 132,
53
- "raw": "\n ",
54
- "data": "\n "
55
- },
56
- {
57
- "type": "SnippetBlock",
58
- "start": 132,
59
- "end": 426,
60
- "expression": {
61
- "type": "Identifier",
62
- "name": "tests",
63
- "start": 142,
64
- "end": 147,
65
- "loc": {
66
- "start": {
67
- "line": 6,
68
- "column": 12,
69
- "character": 142
70
- },
71
- "end": {
72
- "line": 6,
73
- "column": 17,
74
- "character": 147
75
- }
76
- }
77
- },
78
- "parameters": [],
79
- "children": [
80
- {
81
- "type": "InlineComponent",
82
- "start": 155,
83
- "end": 413,
84
- "name": "Test",
85
- "attributes": [
86
- {
87
- "type": "Attribute",
88
- "start": 161,
89
- "end": 172,
90
- "name": "it",
91
- "name_loc": {
92
- "start": {
93
- "line": 7,
94
- "column": 10,
95
- "character": 161
96
- },
97
- "end": {
98
- "line": 7,
99
- "column": 12,
100
- "character": 163
101
- }
102
- },
103
- "value": [
104
- {
105
- "start": 165,
106
- "end": 171,
107
- "type": "Text",
108
- "raw": "passes",
109
- "data": "passes"
110
- }
111
- ]
112
- }
113
- ],
114
- "children": [
115
- {
116
- "type": "Text",
117
- "start": 173,
118
- "end": 180,
119
- "raw": "\n ",
120
- "data": "\n "
121
- },
122
- {
123
- "type": "Element",
124
- "start": 180,
125
- "end": 205,
126
- "name": "button",
127
- "attributes": [],
128
- "children": [
129
- {
130
- "type": "Text",
131
- "start": 188,
132
- "end": 196,
133
- "raw": "Click me",
134
- "data": "Click me"
135
- }
136
- ]
137
- },
138
- {
139
- "type": "Text",
140
- "start": 205,
141
- "end": 213,
142
- "raw": "\n\n ",
143
- "data": "\n\n "
144
- },
145
- {
146
- "type": "SnippetBlock",
147
- "start": 213,
148
- "end": 401,
149
- "expression": {
150
- "type": "Identifier",
151
- "name": "checks",
152
- "start": 223,
153
- "end": 229,
154
- "loc": {
155
- "start": {
156
- "line": 10,
157
- "column": 16,
158
- "character": 223
159
- },
160
- "end": {
161
- "line": 10,
162
- "column": 22,
163
- "character": 229
164
- }
165
- }
166
- },
167
- "parameters": [],
168
- "children": [
169
- {
170
- "type": "InlineComponent",
171
- "start": 241,
172
- "end": 384,
173
- "name": "Check",
174
- "attributes": [
175
- {
176
- "type": "Attribute",
177
- "start": 258,
178
- "end": 373,
179
- "name": "fn",
180
- "name_loc": {
181
- "start": {
182
- "line": 12,
183
- "column": 10,
184
- "character": 258
185
- },
186
- "end": {
187
- "line": 12,
188
- "column": 12,
189
- "character": 260
190
- }
191
- },
192
- "value": [
193
- {
194
- "type": "MustacheTag",
195
- "start": 261,
196
- "end": 373,
197
- "expression": {
198
- "type": "ArrowFunctionExpression",
199
- "start": 262,
200
- "end": 372,
201
- "loc": {
202
- "start": {
203
- "line": 12,
204
- "column": 14
205
- },
206
- "end": {
207
- "line": 14,
208
- "column": 11
209
- }
210
- },
211
- "id": null,
212
- "expression": false,
213
- "generator": false,
214
- "async": false,
215
- "params": [
216
- {
217
- "type": "ObjectPattern",
218
- "start": 263,
219
- "end": 276,
220
- "loc": {
221
- "start": {
222
- "line": 12,
223
- "column": 15
224
- },
225
- "end": {
226
- "line": 12,
227
- "column": 28
228
- }
229
- },
230
- "properties": [
231
- {
232
- "type": "Property",
233
- "start": 265,
234
- "end": 274,
235
- "loc": {
236
- "start": {
237
- "line": 12,
238
- "column": 17
239
- },
240
- "end": {
241
- "line": 12,
242
- "column": 26
243
- }
244
- },
245
- "method": false,
246
- "shorthand": true,
247
- "computed": false,
248
- "key": {
249
- "type": "Identifier",
250
- "start": 265,
251
- "end": 274,
252
- "loc": {
253
- "start": {
254
- "line": 12,
255
- "column": 17
256
- },
257
- "end": {
258
- "line": 12,
259
- "column": 26
260
- }
261
- },
262
- "name": "getByRole"
263
- },
264
- "value": {
265
- "type": "Identifier",
266
- "start": 265,
267
- "end": 274,
268
- "loc": {
269
- "start": {
270
- "line": 12,
271
- "column": 17
272
- },
273
- "end": {
274
- "line": 12,
275
- "column": 26
276
- }
277
- },
278
- "name": "getByRole"
279
- },
280
- "kind": "init"
281
- }
282
- ]
283
- }
284
- ],
285
- "body": {
286
- "type": "BlockStatement",
287
- "start": 281,
288
- "end": 372,
289
- "loc": {
290
- "start": {
291
- "line": 12,
292
- "column": 33
293
- },
294
- "end": {
295
- "line": 14,
296
- "column": 11
297
- }
298
- },
299
- "body": [
300
- {
301
- "type": "ExpressionStatement",
302
- "start": 295,
303
- "end": 360,
304
- "loc": {
305
- "start": {
306
- "line": 13,
307
- "column": 12
308
- },
309
- "end": {
310
- "line": 13,
311
- "column": 77
312
- }
313
- },
314
- "expression": {
315
- "type": "CallExpression",
316
- "start": 295,
317
- "end": 359,
318
- "loc": {
319
- "start": {
320
- "line": 13,
321
- "column": 12
322
- },
323
- "end": {
324
- "line": 13,
325
- "column": 76
326
- }
327
- },
328
- "callee": {
329
- "type": "MemberExpression",
330
- "start": 295,
331
- "end": 353,
332
- "loc": {
333
- "start": {
334
- "line": 13,
335
- "column": 12
336
- },
337
- "end": {
338
- "line": 13,
339
- "column": 70
340
- }
341
- },
342
- "object": {
343
- "type": "MemberExpression",
344
- "start": 295,
345
- "end": 348,
346
- "loc": {
347
- "start": {
348
- "line": 13,
349
- "column": 12
350
- },
351
- "end": {
352
- "line": 13,
353
- "column": 65
354
- }
355
- },
356
- "object": {
357
- "type": "CallExpression",
358
- "start": 295,
359
- "end": 344,
360
- "loc": {
361
- "start": {
362
- "line": 13,
363
- "column": 12
364
- },
365
- "end": {
366
- "line": 13,
367
- "column": 61
368
- }
369
- },
370
- "callee": {
371
- "type": "Identifier",
372
- "start": 295,
373
- "end": 301,
374
- "loc": {
375
- "start": {
376
- "line": 13,
377
- "column": 12
378
- },
379
- "end": {
380
- "line": 13,
381
- "column": 18
382
- }
383
- },
384
- "name": "expect"
385
- },
386
- "arguments": [
387
- {
388
- "type": "CallExpression",
389
- "start": 302,
390
- "end": 343,
391
- "loc": {
392
- "start": {
393
- "line": 13,
394
- "column": 19
395
- },
396
- "end": {
397
- "line": 13,
398
- "column": 60
399
- }
400
- },
401
- "callee": {
402
- "type": "Identifier",
403
- "start": 302,
404
- "end": 311,
405
- "loc": {
406
- "start": {
407
- "line": 13,
408
- "column": 19
409
- },
410
- "end": {
411
- "line": 13,
412
- "column": 28
413
- }
414
- },
415
- "name": "getByRole"
416
- },
417
- "arguments": [
418
- {
419
- "type": "Literal",
420
- "start": 312,
421
- "end": 320,
422
- "loc": {
423
- "start": {
424
- "line": 13,
425
- "column": 29
426
- },
427
- "end": {
428
- "line": 13,
429
- "column": 37
430
- }
431
- },
432
- "value": "button",
433
- "raw": "'button'"
434
- },
435
- {
436
- "type": "ObjectExpression",
437
- "start": 322,
438
- "end": 342,
439
- "loc": {
440
- "start": {
441
- "line": 13,
442
- "column": 39
443
- },
444
- "end": {
445
- "line": 13,
446
- "column": 59
447
- }
448
- },
449
- "properties": [
450
- {
451
- "type": "Property",
452
- "start": 324,
453
- "end": 340,
454
- "loc": {
455
- "start": {
456
- "line": 13,
457
- "column": 41
458
- },
459
- "end": {
460
- "line": 13,
461
- "column": 57
462
- }
463
- },
464
- "method": false,
465
- "shorthand": false,
466
- "computed": false,
467
- "key": {
468
- "type": "Identifier",
469
- "start": 324,
470
- "end": 328,
471
- "loc": {
472
- "start": {
473
- "line": 13,
474
- "column": 41
475
- },
476
- "end": {
477
- "line": 13,
478
- "column": 45
479
- }
480
- },
481
- "name": "name"
482
- },
483
- "value": {
484
- "type": "Literal",
485
- "start": 330,
486
- "end": 340,
487
- "loc": {
488
- "start": {
489
- "line": 13,
490
- "column": 47
491
- },
492
- "end": {
493
- "line": 13,
494
- "column": 57
495
- }
496
- },
497
- "value": "Click me",
498
- "raw": "'Click me'"
499
- },
500
- "kind": "init"
501
- }
502
- ]
503
- }
504
- ],
505
- "optional": false
506
- }
507
- ],
508
- "optional": false
509
- },
510
- "property": {
511
- "type": "Identifier",
512
- "start": 345,
513
- "end": 348,
514
- "loc": {
515
- "start": {
516
- "line": 13,
517
- "column": 62
518
- },
519
- "end": {
520
- "line": 13,
521
- "column": 65
522
- }
523
- },
524
- "name": "not"
525
- },
526
- "computed": false,
527
- "optional": false
528
- },
529
- "property": {
530
- "type": "Identifier",
531
- "start": 349,
532
- "end": 353,
533
- "loc": {
534
- "start": {
535
- "line": 13,
536
- "column": 66
537
- },
538
- "end": {
539
- "line": 13,
540
- "column": 70
541
- }
542
- },
543
- "name": "toBe"
544
- },
545
- "computed": false,
546
- "optional": false
547
- },
548
- "arguments": [
549
- {
550
- "type": "Literal",
551
- "start": 354,
552
- "end": 358,
553
- "loc": {
554
- "start": {
555
- "line": 13,
556
- "column": 71
557
- },
558
- "end": {
559
- "line": 13,
560
- "column": 75
561
- }
562
- },
563
- "value": null,
564
- "raw": "null"
565
- }
566
- ],
567
- "optional": false
568
- }
569
- }
570
- ]
571
- }
572
- }
573
- }
574
- ]
575
- }
576
- ],
577
- "children": []
578
- }
579
- ]
580
- },
581
- {
582
- "type": "Text",
583
- "start": 401,
584
- "end": 406,
585
- "raw": "\n ",
586
- "data": "\n "
587
- }
588
- ]
589
- }
590
- ]
591
- },
592
- {
593
- "type": "Text",
594
- "start": 426,
595
- "end": 427,
596
- "raw": "\n",
597
- "data": "\n"
598
- }
599
- ]
600
- }
601
- ]
602
- },
603
- "instance": {
604
- "type": "Script",
605
- "start": 0,
606
- "end": 98,
607
- "context": "default",
608
- "content": {
609
- "type": "Program",
610
- "start": 8,
611
- "end": 89,
612
- "loc": {
613
- "start": {
614
- "line": 1,
615
- "column": 0
616
- },
617
- "end": {
618
- "line": 3,
619
- "column": 9
620
- }
621
- },
622
- "body": [
623
- {
624
- "type": "ImportDeclaration",
625
- "start": 11,
626
- "end": 88,
627
- "loc": {
628
- "start": {
629
- "line": 2,
630
- "column": 2
631
- },
632
- "end": {
633
- "line": 2,
634
- "column": 79
635
- }
636
- },
637
- "specifiers": [
638
- {
639
- "type": "ImportSpecifier",
640
- "start": 20,
641
- "end": 24,
642
- "loc": {
643
- "start": {
644
- "line": 2,
645
- "column": 11
646
- },
647
- "end": {
648
- "line": 2,
649
- "column": 15
650
- }
651
- },
652
- "imported": {
653
- "type": "Identifier",
654
- "start": 20,
655
- "end": 24,
656
- "loc": {
657
- "start": {
658
- "line": 2,
659
- "column": 11
660
- },
661
- "end": {
662
- "line": 2,
663
- "column": 15
664
- }
665
- },
666
- "name": "Test"
667
- },
668
- "local": {
669
- "type": "Identifier",
670
- "start": 20,
671
- "end": 24,
672
- "loc": {
673
- "start": {
674
- "line": 2,
675
- "column": 11
676
- },
677
- "end": {
678
- "line": 2,
679
- "column": 15
680
- }
681
- },
682
- "name": "Test"
683
- }
684
- },
685
- {
686
- "type": "ImportSpecifier",
687
- "start": 26,
688
- "end": 34,
689
- "loc": {
690
- "start": {
691
- "line": 2,
692
- "column": 17
693
- },
694
- "end": {
695
- "line": 2,
696
- "column": 25
697
- }
698
- },
699
- "imported": {
700
- "type": "Identifier",
701
- "start": 26,
702
- "end": 34,
703
- "loc": {
704
- "start": {
705
- "line": 2,
706
- "column": 17
707
- },
708
- "end": {
709
- "line": 2,
710
- "column": 25
711
- }
712
- },
713
- "name": "Describe"
714
- },
715
- "local": {
716
- "type": "Identifier",
717
- "start": 26,
718
- "end": 34,
719
- "loc": {
720
- "start": {
721
- "line": 2,
722
- "column": 17
723
- },
724
- "end": {
725
- "line": 2,
726
- "column": 25
727
- }
728
- },
729
- "name": "Describe"
730
- }
731
- },
732
- {
733
- "type": "ImportSpecifier",
734
- "start": 36,
735
- "end": 41,
736
- "loc": {
737
- "start": {
738
- "line": 2,
739
- "column": 27
740
- },
741
- "end": {
742
- "line": 2,
743
- "column": 32
744
- }
745
- },
746
- "imported": {
747
- "type": "Identifier",
748
- "start": 36,
749
- "end": 41,
750
- "loc": {
751
- "start": {
752
- "line": 2,
753
- "column": 27
754
- },
755
- "end": {
756
- "line": 2,
757
- "column": 32
758
- }
759
- },
760
- "name": "Check"
761
- },
762
- "local": {
763
- "type": "Identifier",
764
- "start": 36,
765
- "end": 41,
766
- "loc": {
767
- "start": {
768
- "line": 2,
769
- "column": 27
770
- },
771
- "end": {
772
- "line": 2,
773
- "column": 32
774
- }
775
- },
776
- "name": "Check"
777
- }
778
- }
779
- ],
780
- "source": {
781
- "type": "Literal",
782
- "start": 49,
783
- "end": 87,
784
- "loc": {
785
- "start": {
786
- "line": 2,
787
- "column": 40
788
- },
789
- "end": {
790
- "line": 2,
791
- "column": 78
792
- }
793
- },
794
- "value": "../../src/components/testing-library",
795
- "raw": "'../../src/components/testing-library'"
796
- },
797
- "attributes": []
798
- }
799
- ],
800
- "sourceType": "module"
801
- }
802
- }
803
- }