diff --git a/app/core/Engine.test.ts b/app/core/Engine.test.ts index b8bd38c53d8..9a7c04b7b31 100644 --- a/app/core/Engine.test.ts +++ b/app/core/Engine.test.ts @@ -74,11 +74,13 @@ describe('Engine', () => { chainId: '0x1', }), CurrencyRateController: { - // @ts-expect-error Mock state doesn't match exact CurrencyRateState, but it's sufficient for testing conversionRate: ethConversionRate, currentCurrency: 'usd', nativeCurrency: ticker, - }, + usdConversionRate: ethConversionRate, // Adding this property as it's likely required + currencyRates: {}, // Adding an empty object for currency rates + pendingRefreshRates: false, // Adding a default value for pending refresh + } as EngineState['CurrencyRateController'], // Use the full type instead of Partial }; it('calculates when theres no balances', () => {