/ common / features / testHelpers.ts
testHelpers.ts
 1  import configuredStore from './store';
 2  
 3  export function getInitialState() {
 4    return { ...configuredStore.getState() };
 5  }
 6  
 7  export function testShallowlyEqual(oldValue: any, newValue: any) {
 8    it('should be shallowly equal when called again with the same state', () => {
 9      expect(oldValue === newValue).toBeTruthy();
10    });
11  }