Eric
Eric

Reputation: 1165

expectSaga() always times out - even with trivial/empty saga

I'm sure it is a newbie mistake, but I am surprised that the expectSaga() test below times out. -- advice appreciated!

import { expectSaga, testSaga } from 'redux-saga-test-plan';

function* saga() {}

// ✅ ...this passes
it('should be testable with testSaga()', () => {
  testSaga(saga).next().isDone();
});

// ❌ ...this times out
it('should be testable with expectSaga()', () => {
  return expectSaga(saga).run();
});

Upvotes: 1

Views: 134

Answers (0)

Related Questions