That was the behavior that we had in v7
|
this.stateSubscription = stateAndAction$.subscribe({ |
|
next: ({ state, action }) => { |
|
this.next(state); |
|
scannedActions.next(action); |
|
}, |
|
error: err => this.error(err), |
We should also add the test like this:
it('should throw the error synchronously', () => {
expect(() => {store.dispatch(ActionThatWouldThrowAnErrorInReducer));})
.toThrowError('error in reducer'));
});
That was the behavior that we had in v7
platform/modules/store/src/state.ts
Lines 50 to 55 in 4a5153c
We should also add the test like this: