From 81a34db9f65e58d4a5a3dd44e38f0de7815674a5 Mon Sep 17 00:00:00 2001 From: jameswilddev Date: Wed, 27 Oct 2021 23:50:29 +0100 Subject: [PATCH] Increase timeouts. --- .../createStateStoreManagerComponent/unit.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/components/createStateStoreManagerComponent/unit.tsx b/components/createStateStoreManagerComponent/unit.tsx index 90e02502..e0aa4d4d 100644 --- a/components/createStateStoreManagerComponent/unit.tsx +++ b/components/createStateStoreManagerComponent/unit.tsx @@ -7,6 +7,7 @@ import { createStateStoreManagerComponent, StateStore } from "../../"; type TestState = { readonly value: number }; test(`displays the loading screen`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -48,6 +49,7 @@ test(`displays the loading screen`, async () => { }); test(`shows the ready screen once given time to load`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -91,6 +93,7 @@ test(`shows the ready screen once given time to load`, async () => { }); test(`re-renders when the state is changed externally once`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -135,6 +138,7 @@ test(`re-renders when the state is changed externally once`, async () => { }); test(`re-renders when the state is changed externally twice`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -180,6 +184,7 @@ test(`re-renders when the state is changed externally twice`, async () => { }); test(`re-renders when the state is changed internally once`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -226,6 +231,7 @@ test(`re-renders when the state is changed internally once`, async () => { }); test(`re-renders when the state is changed internally twice`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -275,6 +281,7 @@ test(`re-renders when the state is changed internally twice`, async () => { }); test(`does not try to load without a key`, async () => { + jest.setTimeout(30000); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -307,6 +314,7 @@ test(`does not try to load without a key`, async () => { }); test(`starts unloading when the state key changes to null during loading`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -367,6 +375,7 @@ test(`starts unloading when the state key changes to null during loading`, async }); test(`fully unloads when the state key changes to null during loading`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -431,6 +440,7 @@ test(`fully unloads when the state key changes to null during loading`, async () }); test(`starts unloading when the state key changes to null after loading`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -495,6 +505,7 @@ test(`starts unloading when the state key changes to null after loading`, async }); test(`fully unloads when the state key changes to null after loading`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -563,6 +574,7 @@ test(`fully unloads when the state key changes to null after loading`, async () }); test(`starts reloading when the state key changes to another value during loading`, async () => { + jest.setTimeout(30000); const stateKeyA = uuid.v4(); const stateKeyB = uuid.v4(); const stateStore = new StateStore({ value: 5 }); @@ -631,6 +643,7 @@ test(`starts reloading when the state key changes to another value during loadin }); test(`fully reloads when the state key changes to another value during loading`, async () => { + jest.setTimeout(30000); const stateKeyA = uuid.v4(); const stateKeyB = uuid.v4(); const stateStore = new StateStore({ value: 5 }); @@ -703,6 +716,7 @@ test(`fully reloads when the state key changes to another value during loading`, }); test(`starts reloading when the state key changes to another value after loading`, async () => { + jest.setTimeout(30000); const stateKeyA = uuid.v4(); const stateKeyB = uuid.v4(); const stateStore = new StateStore({ value: 5 }); @@ -775,6 +789,7 @@ test(`starts reloading when the state key changes to another value after loading }); test(`fully reloads when the state key changes to another value after loading`, async () => { + jest.setTimeout(30000); const stateKeyA = uuid.v4(); const stateKeyB = uuid.v4(); const stateStore = new StateStore({ value: 5 }); @@ -851,6 +866,7 @@ test(`fully reloads when the state key changes to another value after loading`, }); test(`displays the loading screen from null`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore); @@ -911,6 +927,7 @@ test(`displays the loading screen from null`, async () => { }); test(`shows the ready screen once given time to load from null`, async () => { + jest.setTimeout(30000); const stateKey = uuid.v4(); const stateStore = new StateStore({ value: 5 }); const StateStoreManager = createStateStoreManagerComponent(stateStore);