Open krutoo opened 1 year ago
// jest.config
transform: {
'^.+\\.js(x)?$': 'babel-jest',
'^.+\\.ts(x)?$': 'babel-jest',
'^.+\\.ts(x)?$': [
'ts-jest',
{
tsconfig: 'tsconfig.spec.json',
},
],
},
// ut
import {testSaga} from 'redux-saga-test-plan';
import {initialRealm, initialSaga} from '~store/sagas/initial';
test('initialSaga', () => {
testSaga(initialSaga).next().call(initialRealm).next().isDone();
});
@feidaZhang But in your example there is no eslint
Hi can you add option to forbid using
typed-redux-saga
andtyped-redux-saga/macro
?Here is example of saga:
I want to use
typed-redux-saga/macro
only in source code of application andredux-saga/effects
only in tests.Bcause tests like this:
are misleading.
In this case
call
effect are delegated byyield*
and the correct check should be: