Skip to content

Commit

Permalink
Increase timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Oct 27, 2021
1 parent ae0e9b2 commit 81a34db
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/createStateStoreManagerComponent/unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);

Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down Expand Up @@ -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<TestState>({ value: 5 });
const StateStoreManager = createStateStoreManagerComponent(stateStore);
Expand Down

0 comments on commit 81a34db

Please sign in to comment.