@ -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);
@ -1,5 +1,6 @@
import { initDB } from '../src/realm/DbInit';
import DbAPI from '../src/realm/DbAPI';
test('Realm DB inits', () => {
return initDB('negTest', 'negTest')
@ -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";
test('Realm migrates to V0', () => {
let oldRealm = new MockRealm({schemaVersion: 0});
@ -1,4 +1,5 @@
import { squareRef, squareNav } from "../src/navigation/SquareNav";
test('SquareNav calls navigation ref', () => {
let postNav = squareNav('notascreen', {});
@ -2,6 +2,7 @@ import configStore from '../src/redux/CreateStore';
import {systemReducer} from '../src/redux/reducers/SystemReducer';
import rootReducer from '../src/redux/reducers/RootReducer';
test('configures redux store', () => {
const configgedStore = configStore;
@ -5,6 +5,7 @@ import { SystemEntity } from "../src/realm/entities/System";
import 'react-native-get-random-values';
import { v4 as uuidv4 } from 'uuid';
test('ScoreRepo inits', () => {
let testRepo = new ScoreRepo({fakeRealm: true});
import { removeKey, setKey, getKey } from "../src/services/Keystore";
test('calls set keystore key', () => {
return setKey('100', '100')
@ -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';
test('Imported colors', () => {
expect(Colors).toEqual(expect.anything());