score:1

it('renders results after search', () => {
  const fetched = true;
  const wrapper = shallow(<Search store={store} fetched={fetched} />);
  expect(wrapper.find('Results').length).toEqual(1);
});

then you can do the same thing either omitting fetched or setting to false

score:1

it('renders results after search', () => {
  const fetched = true;
  const wrapper = mount(<Search store={store} {...fetched}/>);
  expect(wrapper.find('Results').length).toEqual(1);
});

Use mount instead of shallow that should fix your problem. or you can alternatively try with wrapper.update() keeping the shallow (I'm not sure about this).

FYR: Diff between Shallow and Mount


Related Query

More Query from same tag