ДП
store={mockStore({...store.getState(), getData: { isFetching: true}})}
а можно как-то нормально поменять какие-то данные в изначально замоканом сторе?
диспатч ничего не делает, его видно только в getActions()
Size: a a a
ДП
P
ДП
ДП
P
VS
P
ДП
P
beforeEach(() => {
store = mockStore({
getData: {
isFetching: false
},
});
});
GC
D
BO
OK
GC
ДП
OK
OK
GC
P
beforeEach(() => {
store = mockStore({
getData: {
isFetching: false
},
});
});
SK
Please note that this library is designed to test the action-related logic, not the reducer-related one. In other words, it does not update the Redux store