diff --git a/squarenotsquare/__tests__/Action-Creators-test.js b/squarenotsquare/__tests__/Action-Creators-test.js index 4f7961e..2bb560e 100644 --- a/squarenotsquare/__tests__/Action-Creators-test.js +++ b/squarenotsquare/__tests__/Action-Creators-test.js @@ -3,6 +3,7 @@ import {appInit} from '../src/redux/actions/SystemActions'; import { APP_INIT } from '../src/redux/types/SystemTypes'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; +jest.useRealTimers(); const middlewares = [thunk]; const mockStore = configureMockStore(middlewares); diff --git a/squarenotsquare/__tests__/DB-test.js b/squarenotsquare/__tests__/DB-test.js index 0907577..dd630d2 100644 --- a/squarenotsquare/__tests__/DB-test.js +++ b/squarenotsquare/__tests__/DB-test.js @@ -1,5 +1,6 @@ import { initDB } from '../src/realm/DbInit'; import DbAPI from '../src/realm/DbAPI'; +jest.useRealTimers(); test('Realm DB inits', () => { return initDB('negTest', 'negTest') diff --git a/squarenotsquare/__tests__/Migration-test.js b/squarenotsquare/__tests__/Migration-test.js index 262e634..f25a27f 100644 --- a/squarenotsquare/__tests__/Migration-test.js +++ b/squarenotsquare/__tests__/Migration-test.js @@ -2,6 +2,7 @@ import { SystemEntity } from "../src/realm/entities/System"; import { migratev0 } from "../src/realm/migrations/MigrateV0"; import { migratev1 } from "../src/realm/migrations/MigrateV1"; import MockRealm from "../__mock__/mockRealmObject"; +jest.useRealTimers(); test('Realm migrates to V0', () => { let oldRealm = new MockRealm({schemaVersion: 0}); diff --git a/squarenotsquare/__tests__/Nav-test.js b/squarenotsquare/__tests__/Nav-test.js index 72a9255..02cb7af 100644 --- a/squarenotsquare/__tests__/Nav-test.js +++ b/squarenotsquare/__tests__/Nav-test.js @@ -1,4 +1,5 @@ import { squareRef, squareNav } from "../src/navigation/SquareNav"; +jest.useRealTimers(); test('SquareNav calls navigation ref', () => { let postNav = squareNav('notascreen', {}); diff --git a/squarenotsquare/__tests__/Redux-test.js b/squarenotsquare/__tests__/Redux-test.js index 63139ed..aad7137 100644 --- a/squarenotsquare/__tests__/Redux-test.js +++ b/squarenotsquare/__tests__/Redux-test.js @@ -2,6 +2,7 @@ import configStore from '../src/redux/CreateStore'; import {systemReducer} from '../src/redux/reducers/SystemReducer'; import rootReducer from '../src/redux/reducers/RootReducer'; import { APP_INIT } from '../src/redux/types/SystemTypes'; +jest.useRealTimers(); test('configures redux store', () => { const configgedStore = configStore; diff --git a/squarenotsquare/__tests__/Repo-test.js b/squarenotsquare/__tests__/Repo-test.js index 6cfad0b..5cc5c5c 100644 --- a/squarenotsquare/__tests__/Repo-test.js +++ b/squarenotsquare/__tests__/Repo-test.js @@ -5,6 +5,7 @@ import { SystemEntity } from "../src/realm/entities/System"; import MockRealm from "../__mock__/mockRealmObject"; import 'react-native-get-random-values'; import { v4 as uuidv4 } from 'uuid'; +jest.useRealTimers(); test('ScoreRepo inits', () => { let testRepo = new ScoreRepo({fakeRealm: true}); diff --git a/squarenotsquare/__tests__/Services-test.js b/squarenotsquare/__tests__/Services-test.js index 74d89bd..83f13c4 100644 --- a/squarenotsquare/__tests__/Services-test.js +++ b/squarenotsquare/__tests__/Services-test.js @@ -1,4 +1,5 @@ import { removeKey, setKey, getKey } from "../src/services/Keystore"; +jest.useRealTimers(); test('calls set keystore key', () => { return setKey('100', '100') diff --git a/squarenotsquare/__tests__/Themes-test.js b/squarenotsquare/__tests__/Themes-test.js index 4427c2f..cda008d 100644 --- a/squarenotsquare/__tests__/Themes-test.js +++ b/squarenotsquare/__tests__/Themes-test.js @@ -3,6 +3,7 @@ import Fonts from '../src/themes/Fonts'; import Icons from '../src/themes/Icons'; import Metrics, {buildTestMetrics} from "../src/themes/Metrics"; import {styles} from '../src/screens/styles/AppStyles'; +jest.useRealTimers(); test('Imported colors', () => { expect(Colors).toEqual(expect.anything());