-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest-output.log
More file actions
831 lines (733 loc) · 57.1 KB
/
jest-output.log
File metadata and controls
831 lines (733 loc) · 57.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
> cartify@1.0.0 test
> jest --runInBand --verbose --json --outputFile jest-output.json
node.exe : console.warn
At line:1 char:1
+ & "C:\Program Files\nodejs/node.exe"
"C:\Users\user\AppData\Roaming\n ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( console.w
arn:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized [as subscribe]
(src/services/authService.ts:135:5)
at Object.subscribe
(src/services/__tests__/authService.test.ts:55:19)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized [as subscribe]
(src/services/authService.ts:135:5)
at Object.subscribe
(src/services/__tests__/authService.test.ts:67:39)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized [as subscribe]
(src/services/authService.ts:135:5)
at Object.subscribe
(src/services/__tests__/authService.test.ts:75:39)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized
(src/services/authService.ts:155:5)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
at Object.apply [as signInWithEmail]
(src/services/authService.ts:154:18)
at Object.signInWithEmail
(src/services/__tests__/authService.test.ts:102:40)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized
(src/services/authService.ts:155:5)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
at Object.apply [as signInWithEmail]
(src/services/authService.ts:154:18)
at Object.signInWithEmail
(src/services/__tests__/authService.test.ts:122:32)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.log
[Auth] Validation: Email not verified for
test@example.com
at Object.log (src/services/authService.ts:167:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized
(src/services/authService.ts:199:5)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
at Object.apply [as signUp]
(src/services/authService.ts:198:9)
at Object.signUp
(src/services/__tests__/authService.test.ts:136:32)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized
(src/services/authService.ts:295:5)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
at Object.apply [as sendPasswordReset]
(src/services/authService.ts:294:20)
at Object.sendPasswordReset
(src/services/__tests__/authService.test.ts:148:25)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized
(src/services/authService.ts:310:5)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
at Object.apply [as signOut]
(src/services/authService.ts:309:10)
at Object.signOut
(src/services/__tests__/authService.test.ts:161:25)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
console.warn
Google Sign-In: EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is
not set. Google Sign-In will not work properly. Please
set this environment variable in your EAS build
configuration.
[0m [90m 24 |[39m [90m// Log warning if
webClientId is missing but don't crash[39m
[90m 25 |[39m [36mif[39m
([33m![39mwebClientId) {
[31m[1m>[22m[39m[90m 26 |[39m
console[33m.[39mwarn(
[90m |[39m [31m[1m^[22m[39m
[90m 27 |[39m [32m'Google Sign-In:
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID is not set. '[39m
[33m+[39m
[90m 28 |[39m [32m'Google Sign-In will not
work properly. '[39m [33m+[39m
[90m 29 |[39m [32m'Please set this
environment variable in your EAS build
configuration.'[39m[0m
at warn (src/services/googleSignIn.ts:26:13)
at ensureInitialized
(src/services/authService.ts:80:26)
at Object.ensureInitialized
(src/services/authService.ts:334:5)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
at Object.apply [as updateProfile]
(src/services/authService.ts:333:16)
at Object.updateProfile
(src/services/__tests__/authService.test.ts:172:32)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
at node_modules/@babel/runtime/helpers/asyncToGener
ator.js:22:7
at Object.<anonymous> (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:14:12)
console.log
Google Sign-In configured successfully
at log (src/services/googleSignIn.ts:54:13)
console.log
Firebase Auth State Changed: No user
at log (src/services/authService.ts:112:17)
PASS src/services/__tests__/authService.test.ts
AuthService
getState
√ should return current auth state (26 ms)
√ should have initial state with null user (4 ms)
subscribe
√ should add listener and call it immediately
with current state (68 ms)
√ should return unsubscribe function (13 ms)
√ should stop calling listener after unsubscribe
(16 ms)
signInWithEmail
√ should call Firebase
signInWithEmailAndPassword with verified user (12 ms)
√ should reject unverified email users (22 ms)
signUp
√ should handle email already in use error (10
ms)
sendPasswordReset
√ should call Firebase sendPasswordResetEmail
(260 ms)
signOut
√ should call Firebase signOut (11 ms)
updateProfile
√ should throw error when no user is logged in
(83 ms)
PASS src/__tests__/AuthFlow.integration.test.tsx
AuthPage integration flow
√ navigates to Forgot Password, submits, and
returns to login (29 ms)
√ registers and shows verification pending screen
(94 ms)
√ signs in and redirects to tabs (77 ms)
PASS src/__tests__/TransactionDetailScreen.test.tsx
TransactionDetailScreen
√ renders not-found state (67 ms)
√ navigates back when back button pressed (61 ms)
console.error
An update to HistoryScreen inside a test was not
wrapped in act(...).
When testing, code that causes React state updates
should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the
user would see in the browser. Learn more at
https://react.dev/link/wrap-tests-with-act
[0m [90m 17 |[39m [36mreturn[39m[33m;[39m
[90m 18 |[39m }
[31m[1m>[22m[39m[90m 19 |[39m
originalConsoleError([33m...[39margs)[33m;[39m
[90m |[39m
[31m[1m^[22m[39m
[90m 20 |[39m }[33m;[39m
[90m 21 |[39m
[90m 22 |[39m [90m// Mock react-native modules
that are commonly used[39m[0m
at console.apply (jest.setup.js:19:23)
at node_modules/react-test-renderer/cjs/react-test-
renderer.development.js:11801:19
at runWithFiberInDEV (node_modules/react-test-rende
rer/cjs/react-test-renderer.development.js:1574:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/
react-test-renderer/cjs/react-test-renderer.development.j
s:11800:9)
at scheduleUpdateOnFiber (node_modules/react-test-r
enderer/cjs/react-test-renderer.development.js:10326:9)
at dispatchSetStateInternal (node_modules/react-tes
t-renderer/cjs/react-test-renderer.development.js:4148:13
)
at dispatchSetState (node_modules/react-test-render
er/cjs/react-test-renderer.development.js:4107:7)
at setTransactions (C:\Users\user\Cartify\app\(tabs
)../../../history.tsx:79:13)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
console.error
An update to HistoryScreen inside a test was not
wrapped in act(...).
When testing, code that causes React state updates
should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the
user would see in the browser. Learn more at
https://react.dev/link/wrap-tests-with-act
[0m [90m 17 |[39m [36mreturn[39m[33m;[39m
[90m 18 |[39m }
[31m[1m>[22m[39m[90m 19 |[39m
originalConsoleError([33m...[39margs)[33m;[39m
[90m |[39m
[31m[1m^[22m[39m
[90m 20 |[39m }[33m;[39m
[90m 21 |[39m
[90m 22 |[39m [90m// Mock react-native modules
that are commonly used[39m[0m
at console.apply (jest.setup.js:19:23)
at node_modules/react-test-renderer/cjs/react-test-
renderer.development.js:11801:19
at runWithFiberInDEV (node_modules/react-test-rende
rer/cjs/react-test-renderer.development.js:1574:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/
react-test-renderer/cjs/react-test-renderer.development.j
s:11800:9)
at scheduleUpdateOnFiber (node_modules/react-test-r
enderer/cjs/react-test-renderer.development.js:10326:9)
at dispatchSetStateInternal (node_modules/react-tes
t-renderer/cjs/react-test-renderer.development.js:4148:13
)
at dispatchSetState (node_modules/react-test-render
er/cjs/react-test-renderer.development.js:4107:7)
at setTransactions (C:\Users\user\Cartify\app\(tabs
)../../../history.tsx:79:13)
at asyncGeneratorStep (node_modules/@babel/runtime/
helpers/asyncToGenerator.js:3:17)
at _next (node_modules/@babel/runtime/helpers/async
ToGenerator.js:17:9)
PASS src/__tests__/HistoryScreen.test.tsx
HistoryScreen
√ renders empty state and header (37 ms)
√ toggles calendar (33 ms)
PASS src/__tests__/AuthScreen.test.tsx
AuthPage
√ renders login screen by default (4 ms)
√ switches to register screen (3 ms)
√ navigates to tabs after login success (2 ms)
√ shows verification pending after register (58 ms)
PASS src/__tests__/AuthContext.test.tsx
AuthContext
AuthProvider
√ should provide auth context to children (4 ms)
√ should subscribe to auth state changes on
mount (2 ms)
√ should unsubscribe from auth state changes on
unmount (1 ms)
useAuth hook
√ should throw error when used outside
AuthProvider (35 ms)
√ should provide signInWithEmail method (2 ms)
√ should provide signUp method (1 ms)
√ should provide signInWithGoogle method (2 ms)
√ should provide signOut method (2 ms)
√ should provide sendPasswordReset method (2 ms)
√ should provide updateProfile method (3 ms)
auth state updates
√ should update state when auth changes (2 ms)
PASS src/__tests__/SettingsScreen.test.tsx
SettingsScreen
√ renders key sections (13 ms)
√ navigates to Help Center, Security, and Terms (8
ms)
console.log
User not authenticated on mount, redirecting to
onboarding
at log (app/_layout.tsx:81:19)
PASS src/__tests__/RootLayout.test.tsx
RootLayout
√ redirects unauthenticated users to onboarding (7
ms)
PASS src/__tests__/SecurityPrivacyScreen.test.tsx
SecurityPrivacyScreen
√ renders key content (4 ms)
√ navigates back when back button pressed (2 ms)
PASS src/__tests__/HomeScreen.test.tsx
HomeScreen
√ renders empty cart state (4 ms)
PASS src/__tests__/ModalScreen.test.tsx
ModalScreen
√ renders modal content (3 ms)
PASS src/__tests__/OnboardingPage.test.tsx
OnboardingPage
√ renders splash screen first (6 ms)
√ navigates to auth when Get Started pressed (2 ms)
√ navigates to auth when Login pressed (1 ms)
PASS src/__tests__/TermsPolicyScreen.test.tsx
TermsPolicyScreen
√ renders key content (7 ms)
√ navigates back when back button pressed (2 ms)
PASS src/__tests__/HelpCenterScreen.test.tsx
HelpCenterScreen
√ renders key content (8 ms)
√ navigates back when back button pressed (3 ms)
PASS src/__tests__/TabsLayout.test.tsx
TabLayout
√ registers expected tabs (7 ms)
PASS src/types/__tests__/auth.test.ts
Auth Validation Helpers
validateEmail
valid emails
√ should return true for valid email:
user@example.com (1 ms)
√ should return true for valid email:
user.name@example.com
√ should return true for valid email:
user+tag@example.com (1 ms)
√ should return true for valid email:
user@subdomain.example.com
√ should return true for valid email:
user123@example.co.id (1 ms)
√ should return true for valid email:
test@test.org
√ should return true for valid email: a@b.co
(1 ms)
invalid emails
√ should return false for invalid email: ""
√ should return false for invalid email: " "
(1 ms)
√ should return false for invalid email:
"invalid"
√ should return false for invalid email:
"invalid@" (1 ms)
√ should return false for invalid email:
"@example.com"
√ should return false for invalid email:
"user@.com" (1 ms)
√ should return false for invalid email:
"user@example"
√ should return false for invalid email: "user
@example.com" (1 ms)
√ should return false for invalid email:
"user@ example.com" (3 ms)
√ should return false for invalid email:
"user@example .com"
√ should return false for invalid email:
"user@@example.com" (1 ms)
validatePassword
√ should handle empty password
√ should handle exactly 8 character password (1
ms)
valid passwords
√ should validate password: Password1 (1 ms)
√ should validate password: MySecure123 (1 ms)
√ should validate password: Test1234
√ should validate password: AbCdEf12
√ should validate password: StrongP@ss1
√ should validate password: ValidPassword123
invalid passwords
√ should fail for password shorter than 8
characters (1 ms)
√ should fail for password without uppercase
letter (1 ms)
√ should fail for password without lowercase
letter
√ should fail for password without number (1
ms)
√ should return multiple errors for password
failing all criteria
validateFullName
√ should trim whitespace before validation
valid names
√ should return true for valid name: "John
Doe" (1 ms)
√ should return true for valid name: "Jo"
√ should return true for valid name: "Alice"
(1 ms)
√ should return true for valid name: "Bob
Smith Jr" (1 ms)
√ should return true for valid name: "María
García" (1 ms)
√ should return true for valid name: "أحمد"
√ should return true for valid name:
"田中太郎" (1 ms)
invalid names
√ should return false for invalid name: ""
√ should return false for invalid name: " " (1
ms)
√ should return false for invalid name: "A"
√ should return false for invalid name: " "
(1 ms)
PASS
src/components/auth/__tests__/PasswordStrength.test.ts
Password Strength Calculator
weak passwords
√ should rate empty password as 0 strength (1 ms)
√ should rate very short password as weak (1 ms)
√ should rate simple lowercase password as weak
(1 ms)
medium strength passwords
√ should rate password with letters and numbers
as medium
√ should rate password with mixed case as medium
strong passwords
√ should rate password with all criteria as
strong
√ should rate long complex password as very
strong (1 ms)
requirements validation
√ should detect length requirement (1 ms)
√ should detect uppercase requirement
√ should detect lowercase requirement (1 ms)
√ should detect number requirement (1 ms)
√ should detect special character requirement
color coding
√ should return red color for weak passwords
√ should return orange color for fair passwords
√ should return green color for strong passwords
edge cases
√ should handle special characters correctly (1
ms)
√ should handle unicode characters (1 ms)
√ should handle very long passwords
Test Suites: 17 passed, 17 total
Tests: 109 passed, 109 total
Snapshots: 0 total
Time: 4.075 s, estimated 5 s
Ran all test suites.
Test results written to: jest-output.json