What I'm trying to do is mock a service that's used in another service.
On line 36 I get this error:
Argument of type 'Effect<number, ExchangeLoadMarketsError | ExchangeFetchTickerError | ExchangeGetLastPriceError | ExchangeGetMarketError | ExchangeGetPrecisionAmountError | PositionCalculatorRoundAmountError, ExchangeService>' is not assignable to parameter of type 'Effect<number, ExchangeLoadMarketsError | ExchangeFetchTickerError | ExchangeGetLastPriceError | ExchangeGetMarketError | ExchangeGetPrecisionAmountError | PositionCalculatorRoundAmountError, never>'. Type 'ExchangeService' is not assignable to type 'never'.ts(2345)
Argument of type 'Effect<number, ExchangeLoadMarketsError | ExchangeFetchTickerError | ExchangeGetLastPriceError | ExchangeGetMarketError | ExchangeGetPrecisionAmountError | PositionCalculatorRoundAmountError, ExchangeService>' is not assignable to parameter of type 'Effect<number, ExchangeLoadMarketsError | ExchangeFetchTickerError | ExchangeGetLastPriceError | ExchangeGetMarketError | ExchangeGetPrecisionAmountError | PositionCalculatorRoundAmountError, never>'. Type 'ExchangeService' is not assignable to type 'never'.ts(2345)
I'm not sure why it's expecting a
never
never
there. Does that mean that the dependency on ExchangeService hasn't been resolved yet at that point?