@@ -7,6 +7,7 @@ import { createStateStoreManagerComponent, StateStore } from "../../";
7
7
type TestState = { readonly value : number } ;
8
8
9
9
test ( `displays the loading screen` , async ( ) => {
10
+ jest . setTimeout ( 30000 ) ;
10
11
const stateKey = uuid . v4 ( ) ;
11
12
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
12
13
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -48,6 +49,7 @@ test(`displays the loading screen`, async () => {
48
49
} ) ;
49
50
50
51
test ( `shows the ready screen once given time to load` , async ( ) => {
52
+ jest . setTimeout ( 30000 ) ;
51
53
const stateKey = uuid . v4 ( ) ;
52
54
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
53
55
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -91,6 +93,7 @@ test(`shows the ready screen once given time to load`, async () => {
91
93
} ) ;
92
94
93
95
test ( `re-renders when the state is changed externally once` , async ( ) => {
96
+ jest . setTimeout ( 30000 ) ;
94
97
const stateKey = uuid . v4 ( ) ;
95
98
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
96
99
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -135,6 +138,7 @@ test(`re-renders when the state is changed externally once`, async () => {
135
138
} ) ;
136
139
137
140
test ( `re-renders when the state is changed externally twice` , async ( ) => {
141
+ jest . setTimeout ( 30000 ) ;
138
142
const stateKey = uuid . v4 ( ) ;
139
143
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
140
144
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -180,6 +184,7 @@ test(`re-renders when the state is changed externally twice`, async () => {
180
184
} ) ;
181
185
182
186
test ( `re-renders when the state is changed internally once` , async ( ) => {
187
+ jest . setTimeout ( 30000 ) ;
183
188
const stateKey = uuid . v4 ( ) ;
184
189
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
185
190
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -226,6 +231,7 @@ test(`re-renders when the state is changed internally once`, async () => {
226
231
} ) ;
227
232
228
233
test ( `re-renders when the state is changed internally twice` , async ( ) => {
234
+ jest . setTimeout ( 30000 ) ;
229
235
const stateKey = uuid . v4 ( ) ;
230
236
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
231
237
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -275,6 +281,7 @@ test(`re-renders when the state is changed internally twice`, async () => {
275
281
} ) ;
276
282
277
283
test ( `does not try to load without a key` , async ( ) => {
284
+ jest . setTimeout ( 30000 ) ;
278
285
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
279
286
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
280
287
@@ -307,6 +314,7 @@ test(`does not try to load without a key`, async () => {
307
314
} ) ;
308
315
309
316
test ( `starts unloading when the state key changes to null during loading` , async ( ) => {
317
+ jest . setTimeout ( 30000 ) ;
310
318
const stateKey = uuid . v4 ( ) ;
311
319
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
312
320
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -367,6 +375,7 @@ test(`starts unloading when the state key changes to null during loading`, async
367
375
} ) ;
368
376
369
377
test ( `fully unloads when the state key changes to null during loading` , async ( ) => {
378
+ jest . setTimeout ( 30000 ) ;
370
379
const stateKey = uuid . v4 ( ) ;
371
380
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
372
381
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -431,6 +440,7 @@ test(`fully unloads when the state key changes to null during loading`, async ()
431
440
} ) ;
432
441
433
442
test ( `starts unloading when the state key changes to null after loading` , async ( ) => {
443
+ jest . setTimeout ( 30000 ) ;
434
444
const stateKey = uuid . v4 ( ) ;
435
445
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
436
446
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -495,6 +505,7 @@ test(`starts unloading when the state key changes to null after loading`, async
495
505
} ) ;
496
506
497
507
test ( `fully unloads when the state key changes to null after loading` , async ( ) => {
508
+ jest . setTimeout ( 30000 ) ;
498
509
const stateKey = uuid . v4 ( ) ;
499
510
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
500
511
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -563,6 +574,7 @@ test(`fully unloads when the state key changes to null after loading`, async ()
563
574
} ) ;
564
575
565
576
test ( `starts reloading when the state key changes to another value during loading` , async ( ) => {
577
+ jest . setTimeout ( 30000 ) ;
566
578
const stateKeyA = uuid . v4 ( ) ;
567
579
const stateKeyB = uuid . v4 ( ) ;
568
580
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -631,6 +643,7 @@ test(`starts reloading when the state key changes to another value during loadin
631
643
} ) ;
632
644
633
645
test ( `fully reloads when the state key changes to another value during loading` , async ( ) => {
646
+ jest . setTimeout ( 30000 ) ;
634
647
const stateKeyA = uuid . v4 ( ) ;
635
648
const stateKeyB = uuid . v4 ( ) ;
636
649
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -703,6 +716,7 @@ test(`fully reloads when the state key changes to another value during loading`,
703
716
} ) ;
704
717
705
718
test ( `starts reloading when the state key changes to another value after loading` , async ( ) => {
719
+ jest . setTimeout ( 30000 ) ;
706
720
const stateKeyA = uuid . v4 ( ) ;
707
721
const stateKeyB = uuid . v4 ( ) ;
708
722
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -775,6 +789,7 @@ test(`starts reloading when the state key changes to another value after loading
775
789
} ) ;
776
790
777
791
test ( `fully reloads when the state key changes to another value after loading` , async ( ) => {
792
+ jest . setTimeout ( 30000 ) ;
778
793
const stateKeyA = uuid . v4 ( ) ;
779
794
const stateKeyB = uuid . v4 ( ) ;
780
795
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -851,6 +866,7 @@ test(`fully reloads when the state key changes to another value after loading`,
851
866
} ) ;
852
867
853
868
test ( `displays the loading screen from null` , async ( ) => {
869
+ jest . setTimeout ( 30000 ) ;
854
870
const stateKey = uuid . v4 ( ) ;
855
871
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
856
872
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -911,6 +927,7 @@ test(`displays the loading screen from null`, async () => {
911
927
} ) ;
912
928
913
929
test ( `shows the ready screen once given time to load from null` , async ( ) => {
930
+ jest . setTimeout ( 30000 ) ;
914
931
const stateKey = uuid . v4 ( ) ;
915
932
const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
916
933
const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
0 commit comments