How to overrider the selector value in MockBuilder provided with provideMockStore
In general with Testbed
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
ABCComponent,
MockComponent(YYYComponent)
],
providers: [
provideMockStore({
initialState: getMockAppState(),
selectors: [
{
selector: getValue,
value: true
}
]
})
]
});
storeStub = TestBed.inject(MockStore);
dispatchSpy = jest.spyOn(storeStub, 'dispatch');
});
it('.....', () => {
storeStub.overrideSelector(getValue, false)
})