Jest expect.any() not working as expected
expect.toEqual checks for equality of state.active in your case. To achieve what you want, you have to make multiple expect statements: expect(state.active.active).toEqual(true) expect(state.active.data).toEqual(expect.any(Array)) expect(state.active.ID).toEqual(expect.any(String))