jest.useFakeTimers(); import React from 'react'; import Transactions from '.'; import configureMockStore from 'redux-mock-store'; import { shallow } from 'enzyme'; import { Provider } from 'react-redux'; const mockStore = configureMockStore(); const initialState = { engine: { backgroundState: { PreferencesController: { selectedAddress: '0x0', identities: { '0xbar': { name: 'Account 1', address: '0x0', importTime: Date.now(), }, }, }, AccountTrackerController: { accounts: {}, }, TokensController: { tokens: [], }, TokenRatesController: { contractExchangeRates: {}, }, CollectiblesController: { allCollectibleContracts: { '0x0': { 1: [] } }, }, CurrencyRateController: { currentCurrency: 'USD', conversionRate: 1, }, NetworkController: { provider: { chainId: '1', }, }, GasFeeController: { gasFeeEstimates: { high: {}, medium: {}, low: {}, }, }, }, }, privacy: { thirdPartyApiMode: true, }, settings: { primaryCurrency: 'USD', }, }; const store = mockStore(initialState); describe('Transactions', () => { it('should render correctly', () => { const wrapper = shallow( , ); expect(wrapper.dive()).toMatchSnapshot(); }); });