hongbo-miao/hongbomiao.com

View on GitHub
web/src/shared/utils/mockedStore.ts

Summary

Maintainability
A
0 mins
Test Coverage
import configureStore from 'redux-mock-store';
import MeState from '../../Home/types/MeState';
import HealthState from '../../health/types/HealthState';
import RootState from '../types/RootState';

const mockStore = configureStore();

const me: MeState = {
  name: 'Hongbo Miao',
  bio: 'Making magic happen',
};
const health: HealthState = {};

const initialState: RootState = { me, health };
const mockedStore = mockStore(initialState);

export default mockedStore;