Skip to content

Commit 24601e8

Browse files
committed
Fixed tests
1 parent 2b5de94 commit 24601e8

File tree

4 files changed

+65
-50
lines changed

4 files changed

+65
-50
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- "**"
66

77
jobs:
8-
build:
8+
check:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3

scripts/tests/__snapshots__/all.test.ts.snap

+47-47
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
5858
},
5959
],
6060
"message": "",
61-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/01-number.problem.ts",
61+
"name": "src/01-number.problem.ts",
6262
"status": "passed",
6363
},
6464
{
@@ -74,7 +74,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
7474
},
7575
],
7676
"message": "",
77-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/01-number.solution.ts",
77+
"name": "src/01-number.solution.ts",
7878
"status": "passed",
7979
},
8080
{
@@ -90,7 +90,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
9090
},
9191
],
9292
"message": "",
93-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/02-object-param.problem.ts",
93+
"name": "src/02-object-param.problem.ts",
9494
"status": "passed",
9595
},
9696
{
@@ -106,7 +106,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
106106
},
107107
],
108108
"message": "",
109-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/02-object-param.solution.1.ts",
109+
"name": "src/02-object-param.solution.1.ts",
110110
"status": "passed",
111111
},
112112
{
@@ -122,7 +122,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
122122
},
123123
],
124124
"message": "",
125-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/02-object-param.solution.2.ts",
125+
"name": "src/02-object-param.solution.2.ts",
126126
"status": "passed",
127127
},
128128
{
@@ -138,7 +138,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
138138
},
139139
],
140140
"message": "",
141-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/02-object-param.solution.3.ts",
141+
"name": "src/02-object-param.solution.3.ts",
142142
"status": "passed",
143143
},
144144
{
@@ -163,7 +163,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
163163
},
164164
],
165165
"message": "",
166-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/03-optional-properties.problem.ts",
166+
"name": "src/03-optional-properties.problem.ts",
167167
"status": "passed",
168168
},
169169
{
@@ -188,7 +188,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
188188
},
189189
],
190190
"message": "",
191-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/03-optional-properties.solution.ts",
191+
"name": "src/03-optional-properties.solution.ts",
192192
"status": "passed",
193193
},
194194
{
@@ -213,7 +213,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
213213
},
214214
],
215215
"message": "",
216-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/04-optional-params.problem.ts",
216+
"name": "src/04-optional-params.problem.ts",
217217
"status": "passed",
218218
},
219219
{
@@ -238,7 +238,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
238238
},
239239
],
240240
"message": "",
241-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/04-optional-params.solution.ts",
241+
"name": "src/04-optional-params.solution.ts",
242242
"status": "passed",
243243
},
244244
{
@@ -260,7 +260,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
260260
},
261261
],
262262
"message": "",
263-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/05-assigning-types-to-variables.problem.ts",
263+
"name": "src/05-assigning-types-to-variables.problem.ts",
264264
"status": "failed",
265265
},
266266
{
@@ -276,37 +276,37 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
276276
},
277277
],
278278
"message": "",
279-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/05-assigning-types-to-variables.solution.ts",
279+
"name": "src/05-assigning-types-to-variables.solution.ts",
280280
"status": "passed",
281281
},
282282
{
283283
"assertionResults": [],
284284
"message": "No test found in suite src/06-unions.problem.ts",
285-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/06-unions.problem.ts",
285+
"name": "src/06-unions.problem.ts",
286286
"status": "passed",
287287
},
288288
{
289289
"assertionResults": [],
290290
"message": "No test found in suite src/06-unions.solution.ts",
291-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/06-unions.solution.ts",
291+
"name": "src/06-unions.solution.ts",
292292
"status": "passed",
293293
},
294294
{
295295
"assertionResults": [],
296296
"message": "No test found in suite src/07-arrays.problem.ts",
297-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/07-arrays.problem.ts",
297+
"name": "src/07-arrays.problem.ts",
298298
"status": "passed",
299299
},
300300
{
301301
"assertionResults": [],
302302
"message": "No test found in suite src/07-arrays.solution.1.ts",
303-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/07-arrays.solution.1.ts",
303+
"name": "src/07-arrays.solution.1.ts",
304304
"status": "passed",
305305
},
306306
{
307307
"assertionResults": [],
308308
"message": "No test found in suite src/07-arrays.solution.2.ts",
309-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/07-arrays.solution.2.ts",
309+
"name": "src/07-arrays.solution.2.ts",
310310
"status": "passed",
311311
},
312312
{
@@ -328,7 +328,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
328328
},
329329
],
330330
"message": "",
331-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/08-function-return-type-annotations.problem.ts",
331+
"name": "src/08-function-return-type-annotations.problem.ts",
332332
"status": "failed",
333333
},
334334
{
@@ -344,31 +344,31 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
344344
},
345345
],
346346
"message": "",
347-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/08-function-return-type-annotations.solution.ts",
347+
"name": "src/08-function-return-type-annotations.solution.ts",
348348
"status": "passed",
349349
},
350350
{
351351
"assertionResults": [],
352352
"message": "No test found in suite src/09-promises.problem.ts",
353-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/09-promises.problem.ts",
353+
"name": "src/09-promises.problem.ts",
354354
"status": "passed",
355355
},
356356
{
357357
"assertionResults": [],
358358
"message": "No test found in suite src/09-promises.solution.1.ts",
359-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/09-promises.solution.1.ts",
359+
"name": "src/09-promises.solution.1.ts",
360360
"status": "passed",
361361
},
362362
{
363363
"assertionResults": [],
364364
"message": "No test found in suite src/09-promises.solution.2.ts",
365-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/09-promises.solution.2.ts",
365+
"name": "src/09-promises.solution.2.ts",
366366
"status": "passed",
367367
},
368368
{
369369
"assertionResults": [],
370370
"message": "No test found in suite src/09-promises.solution.3.ts",
371-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/09-promises.solution.3.ts",
371+
"name": "src/09-promises.solution.3.ts",
372372
"status": "passed",
373373
},
374374
{
@@ -402,7 +402,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
402402
},
403403
],
404404
"message": "",
405-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/10-set.problem.ts",
405+
"name": "src/10-set.problem.ts",
406406
"status": "passed",
407407
},
408408
{
@@ -436,7 +436,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
436436
},
437437
],
438438
"message": "",
439-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/10-set.solution.ts",
439+
"name": "src/10-set.solution.ts",
440440
"status": "passed",
441441
},
442442
{
@@ -461,7 +461,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
461461
},
462462
],
463463
"message": "",
464-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/11-record.problem.ts",
464+
"name": "src/11-record.problem.ts",
465465
"status": "passed",
466466
},
467467
{
@@ -486,7 +486,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
486486
},
487487
],
488488
"message": "",
489-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/11-record.solution.1.ts",
489+
"name": "src/11-record.solution.1.ts",
490490
"status": "passed",
491491
},
492492
{
@@ -511,7 +511,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
511511
},
512512
],
513513
"message": "",
514-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/11-record.solution.2.ts",
514+
"name": "src/11-record.solution.2.ts",
515515
"status": "passed",
516516
},
517517
{
@@ -536,7 +536,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
536536
},
537537
],
538538
"message": "",
539-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/11-record.solution.3.ts",
539+
"name": "src/11-record.solution.3.ts",
540540
"status": "passed",
541541
},
542542
{
@@ -573,7 +573,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
573573
},
574574
],
575575
"message": "",
576-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/12-typeof-narrowing.problem.ts",
576+
"name": "src/12-typeof-narrowing.problem.ts",
577577
"status": "failed",
578578
},
579579
{
@@ -598,7 +598,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
598598
},
599599
],
600600
"message": "",
601-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/12-typeof-narrowing.solution.ts",
601+
"name": "src/12-typeof-narrowing.solution.ts",
602602
"status": "passed",
603603
},
604604
{
@@ -614,7 +614,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
614614
},
615615
],
616616
"message": "",
617-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/13-catch-blocks.problem.ts",
617+
"name": "src/13-catch-blocks.problem.ts",
618618
"status": "passed",
619619
},
620620
{
@@ -630,7 +630,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
630630
},
631631
],
632632
"message": "",
633-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/13-catch-blocks.solution.1.ts",
633+
"name": "src/13-catch-blocks.solution.1.ts",
634634
"status": "passed",
635635
},
636636
{
@@ -646,7 +646,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
646646
},
647647
],
648648
"message": "",
649-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/13-catch-blocks.solution.2.ts",
649+
"name": "src/13-catch-blocks.solution.2.ts",
650650
"status": "passed",
651651
},
652652
{
@@ -662,67 +662,67 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
662662
},
663663
],
664664
"message": "",
665-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/13-catch-blocks.solution.3.ts",
665+
"name": "src/13-catch-blocks.solution.3.ts",
666666
"status": "passed",
667667
},
668668
{
669669
"assertionResults": [],
670670
"message": "No test found in suite src/14-extends.problem.ts",
671-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/14-extends.problem.ts",
671+
"name": "src/14-extends.problem.ts",
672672
"status": "passed",
673673
},
674674
{
675675
"assertionResults": [],
676676
"message": "No test found in suite src/14-extends.solution.ts",
677-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/14-extends.solution.ts",
677+
"name": "src/14-extends.solution.ts",
678678
"status": "passed",
679679
},
680680
{
681681
"assertionResults": [],
682682
"message": "No test found in suite src/15-intersection.problem.ts",
683-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/15-intersection.problem.ts",
683+
"name": "src/15-intersection.problem.ts",
684684
"status": "passed",
685685
},
686686
{
687687
"assertionResults": [],
688688
"message": "No test found in suite src/15-intersection.solution.ts",
689-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/15-intersection.solution.ts",
689+
"name": "src/15-intersection.solution.ts",
690690
"status": "passed",
691691
},
692692
{
693693
"assertionResults": [],
694694
"message": "No test found in suite src/16-omit-and-pick.problem.ts",
695-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/16-omit-and-pick.problem.ts",
695+
"name": "src/16-omit-and-pick.problem.ts",
696696
"status": "passed",
697697
},
698698
{
699699
"assertionResults": [],
700700
"message": "No test found in suite src/16-omit-and-pick.solution.1.ts",
701-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/16-omit-and-pick.solution.1.ts",
701+
"name": "src/16-omit-and-pick.solution.1.ts",
702702
"status": "passed",
703703
},
704704
{
705705
"assertionResults": [],
706706
"message": "No test found in suite src/16-omit-and-pick.solution.2.ts",
707-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/16-omit-and-pick.solution.2.ts",
707+
"name": "src/16-omit-and-pick.solution.2.ts",
708708
"status": "passed",
709709
},
710710
{
711711
"assertionResults": [],
712712
"message": "window is not defined",
713-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/17-function-types.problem.ts",
713+
"name": "src/17-function-types.problem.ts",
714714
"status": "passed",
715715
},
716716
{
717717
"assertionResults": [],
718718
"message": "window is not defined",
719-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/17-function-types.solution.1.ts",
719+
"name": "src/17-function-types.solution.1.ts",
720720
"status": "passed",
721721
},
722722
{
723723
"assertionResults": [],
724724
"message": "window is not defined",
725-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/17-function-types.solution.2.ts",
725+
"name": "src/17-function-types.solution.2.ts",
726726
"status": "passed",
727727
},
728728
{
@@ -738,7 +738,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
738738
},
739739
],
740740
"message": "",
741-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/18-function-types-with-promises.problem.ts",
741+
"name": "src/18-function-types-with-promises.problem.ts",
742742
"status": "passed",
743743
},
744744
{
@@ -754,7 +754,7 @@ exports[`vitest > Should have the correct Vitest errors 1`] = `
754754
},
755755
],
756756
"message": "",
757-
"name": "/Users/matt/repos/ts/beginners-typescript-tutorial/src/18-function-types-with-promises.solution.ts",
757+
"name": "src/18-function-types-with-promises.solution.ts",
758758
"status": "passed",
759759
},
760760
],

0 commit comments

Comments
 (0)