All files / lib/redux store.ts

100% Statements 19/19
80% Branches 4/5
100% Functions 1/1
100% Lines 19/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 201x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * @file redux的store
 * @Author wangjie19
 * @Date 2020-07-25 22:34:29
 * @Last Modified by: wangjie19
 * @Last Modified time: 2020-07-25 22:39:33
 */
 
import path from 'path';
import { createStore } from 'redux';
import reducers from './reducer';
 
const initialState = {
    root: path.resolve(__dirname, '../../db'),
    db: '',
    table: ''
};
 
export default createStore(reducers, initialState);