import { EntitiesManager as EM } from '../../src/index'; import configureEntitiesManager from '../utils/configureEntitiesManager'; import configureStore from '../utils/configureStore'; const em = configureEntitiesManager({ grandParent: { createdAt: EM.createdAt(), updatedAt: EM.updatedAt(), parentSum: EM.sum('parent', 'childSum'), parentCount: EM.count('parent'), parents: EM.duplicateChildren('parent', parent => parent, 0) }, parent: { grandParentId: EM.parentId('grandParent'), createdAt: EM.createdAt(), updatedAt: EM.updatedAt(), childSum: EM.sum('child', 'grandChildValueSum'), childCount: EM.count('child'), children: EM.duplicateChildren('child', child => child, 0) }, child: { parentId: EM.parentId('parent'), createdAt: EM.createdAt(), updatedAt: EM.updatedAt(), grandChildSum: EM.sum('grandChild', 'value'), grandChildCount: EM.count('grandChild'), grandChildren: EM.duplicateChildren('grandChild', grandChild => grandChild, 0) }, grandChild: { childId: EM.parentId('child'), createdAt: EM.createdAt(), updatedAt: EM.updatedAt(), value: EM.required() } }); const store = configureStore({}, { entities: em.getEntitiesReducer() }); xdescribe('Add, Update, Delete item', () => { describe('simple add', ()=>{ }); });