@@ -7,6 +7,7 @@ import { createStateStoreManagerComponent, StateStore } from "../../";
77type TestState = { readonly value : number } ;
88
99test ( `displays the loading screen` , async ( ) => {
10+ jest . setTimeout ( 30000 ) ;
1011 const stateKey = uuid . v4 ( ) ;
1112 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
1213 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -48,6 +49,7 @@ test(`displays the loading screen`, async () => {
4849} ) ;
4950
5051test ( `shows the ready screen once given time to load` , async ( ) => {
52+ jest . setTimeout ( 30000 ) ;
5153 const stateKey = uuid . v4 ( ) ;
5254 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
5355 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -91,6 +93,7 @@ test(`shows the ready screen once given time to load`, async () => {
9193} ) ;
9294
9395test ( `re-renders when the state is changed externally once` , async ( ) => {
96+ jest . setTimeout ( 30000 ) ;
9497 const stateKey = uuid . v4 ( ) ;
9598 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
9699 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -135,6 +138,7 @@ test(`re-renders when the state is changed externally once`, async () => {
135138} ) ;
136139
137140test ( `re-renders when the state is changed externally twice` , async ( ) => {
141+ jest . setTimeout ( 30000 ) ;
138142 const stateKey = uuid . v4 ( ) ;
139143 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
140144 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -180,6 +184,7 @@ test(`re-renders when the state is changed externally twice`, async () => {
180184} ) ;
181185
182186test ( `re-renders when the state is changed internally once` , async ( ) => {
187+ jest . setTimeout ( 30000 ) ;
183188 const stateKey = uuid . v4 ( ) ;
184189 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
185190 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -226,6 +231,7 @@ test(`re-renders when the state is changed internally once`, async () => {
226231} ) ;
227232
228233test ( `re-renders when the state is changed internally twice` , async ( ) => {
234+ jest . setTimeout ( 30000 ) ;
229235 const stateKey = uuid . v4 ( ) ;
230236 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
231237 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -275,6 +281,7 @@ test(`re-renders when the state is changed internally twice`, async () => {
275281} ) ;
276282
277283test ( `does not try to load without a key` , async ( ) => {
284+ jest . setTimeout ( 30000 ) ;
278285 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
279286 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
280287
@@ -307,6 +314,7 @@ test(`does not try to load without a key`, async () => {
307314} ) ;
308315
309316test ( `starts unloading when the state key changes to null during loading` , async ( ) => {
317+ jest . setTimeout ( 30000 ) ;
310318 const stateKey = uuid . v4 ( ) ;
311319 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
312320 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -367,6 +375,7 @@ test(`starts unloading when the state key changes to null during loading`, async
367375} ) ;
368376
369377test ( `fully unloads when the state key changes to null during loading` , async ( ) => {
378+ jest . setTimeout ( 30000 ) ;
370379 const stateKey = uuid . v4 ( ) ;
371380 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
372381 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -431,6 +440,7 @@ test(`fully unloads when the state key changes to null during loading`, async ()
431440} ) ;
432441
433442test ( `starts unloading when the state key changes to null after loading` , async ( ) => {
443+ jest . setTimeout ( 30000 ) ;
434444 const stateKey = uuid . v4 ( ) ;
435445 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
436446 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -495,6 +505,7 @@ test(`starts unloading when the state key changes to null after loading`, async
495505} ) ;
496506
497507test ( `fully unloads when the state key changes to null after loading` , async ( ) => {
508+ jest . setTimeout ( 30000 ) ;
498509 const stateKey = uuid . v4 ( ) ;
499510 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
500511 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -563,6 +574,7 @@ test(`fully unloads when the state key changes to null after loading`, async ()
563574} ) ;
564575
565576test ( `starts reloading when the state key changes to another value during loading` , async ( ) => {
577+ jest . setTimeout ( 30000 ) ;
566578 const stateKeyA = uuid . v4 ( ) ;
567579 const stateKeyB = uuid . v4 ( ) ;
568580 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -631,6 +643,7 @@ test(`starts reloading when the state key changes to another value during loadin
631643} ) ;
632644
633645test ( `fully reloads when the state key changes to another value during loading` , async ( ) => {
646+ jest . setTimeout ( 30000 ) ;
634647 const stateKeyA = uuid . v4 ( ) ;
635648 const stateKeyB = uuid . v4 ( ) ;
636649 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -703,6 +716,7 @@ test(`fully reloads when the state key changes to another value during loading`,
703716} ) ;
704717
705718test ( `starts reloading when the state key changes to another value after loading` , async ( ) => {
719+ jest . setTimeout ( 30000 ) ;
706720 const stateKeyA = uuid . v4 ( ) ;
707721 const stateKeyB = uuid . v4 ( ) ;
708722 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -775,6 +789,7 @@ test(`starts reloading when the state key changes to another value after loading
775789} ) ;
776790
777791test ( `fully reloads when the state key changes to another value after loading` , async ( ) => {
792+ jest . setTimeout ( 30000 ) ;
778793 const stateKeyA = uuid . v4 ( ) ;
779794 const stateKeyB = uuid . v4 ( ) ;
780795 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
@@ -851,6 +866,7 @@ test(`fully reloads when the state key changes to another value after loading`,
851866} ) ;
852867
853868test ( `displays the loading screen from null` , async ( ) => {
869+ jest . setTimeout ( 30000 ) ;
854870 const stateKey = uuid . v4 ( ) ;
855871 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
856872 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
@@ -911,6 +927,7 @@ test(`displays the loading screen from null`, async () => {
911927} ) ;
912928
913929test ( `shows the ready screen once given time to load from null` , async ( ) => {
930+ jest . setTimeout ( 30000 ) ;
914931 const stateKey = uuid . v4 ( ) ;
915932 const stateStore = new StateStore < TestState > ( { value : 5 } ) ;
916933 const StateStoreManager = createStateStoreManagerComponent ( stateStore ) ;
0 commit comments