import * as SUT from './migrations' describe('migrations', () => { describe('0', () => { it('should return the state', () => { // given ... we have some state const state: any = { app: { loading: false, loaded: true, }, } // when ... we call our migration const result = SUT.migrations[0](state) // then ... the new state should be returned as expected expect(result).toEqual({ app: { loading: false, loaded: true, }, }) }) }) })