From 911dd724921aea58551d8ba2bb823aca3b450357 Mon Sep 17 00:00:00 2001 From: Jesse Snyder Date: Fri, 6 Dec 2024 17:45:59 -0700 Subject: [PATCH] linting, todo, fix value in test env values --- web/.env.test | 2 +- web/src/setupTests.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/.env.test b/web/.env.test index 184ea11..4d2abf6 100644 --- a/web/.env.test +++ b/web/.env.test @@ -3,7 +3,7 @@ REACT_APP_ENV=test -REACT_APP_IBC_CHAINS='{"Celestia Mocha-4":{"chainId":"mocha-4","chainName":"Celestia Mocha-4","rpc":"wss://rpc-mocha.pops.one","rest":"https://api-mocha.pops.one","stakeCurrency":{"coinDenom":"TIA","coinMinimalDenom":"utia","coinDecimals":6},"bip44":{"coinType":118},"bech32Config":{"bech32PrefixAccAddr":"celestia","bech32PrefixAccPub":"celestiapub","bech32PrefixConsAddr":"celestiavalcons","bech32PrefixConsPub":"celestiavalconspub","bech32PrefixValAddr":"celestiavaloper","bech32PrefixValPub":"celestiavaloperpub"},"currencies":[{"coinDenom":"TIA","coinMinimalDenom":"utia","coinDecimals":6,"ibcChannel":"channel-128","sequencerBridgeAccount":"astria1d7zjjljc0dsmxa545xkpwxym86g8uvvwhtezcr","iconClass":"i-celestia"},{"coinDenom":"STEEZE","coinMinimalDenom":"usteeze","coinDecimals":6}],"feeCurrencies":[{"coinDenom":"TIA","coinMinimalDenom":"utia","coinDecimals":6,"gasPriceStep":{"low":0.01,"average":0.02,"high":0.1}}],"iconClass":"i-celestia"}}' +REACT_APP_IBC_CHAINS='{"Celestia Mocha-4":{"chainId":"celestia","chainName":"Celestia Mocha-4","rpc":"wss://rpc-mocha.pops.one","rest":"https://api-mocha.pops.one","stakeCurrency":{"coinDenom":"TIA","coinMinimalDenom":"utia","coinDecimals":6},"bip44":{"coinType":118},"bech32Config":{"bech32PrefixAccAddr":"celestia","bech32PrefixAccPub":"celestiapub","bech32PrefixConsAddr":"celestiavalcons","bech32PrefixConsPub":"celestiavalconspub","bech32PrefixValAddr":"celestiavaloper","bech32PrefixValPub":"celestiavaloperpub"},"currencies":[{"coinDenom":"TIA","coinMinimalDenom":"utia","coinDecimals":6,"ibcChannel":"channel-128","sequencerBridgeAccount":"astria1d7zjjljc0dsmxa545xkpwxym86g8uvvwhtezcr","iconClass":"i-celestia"},{"coinDenom":"STEEZE","coinMinimalDenom":"usteeze","coinDecimals":6}],"feeCurrencies":[{"coinDenom":"TIA","coinMinimalDenom":"utia","coinDecimals":6,"gasPriceStep":{"low":0.01,"average":0.02,"high":0.1}}],"iconClass":"i-celestia"}}' REACT_APP_EVM_CHAINS='' REACT_APP_BRAND_URL=https://astria.org diff --git a/web/src/setupTests.tsx b/web/src/setupTests.tsx index 7609175..9955458 100644 --- a/web/src/setupTests.tsx +++ b/web/src/setupTests.tsx @@ -1,5 +1,6 @@ // mock @interchain-ui/react's core functionality for cosmos-kit jest.mock('@interchain-ui/react', () => ({ + // biome-ignore lint/suspicious/noExplicitAny: idc b/c it's for testing ThemeProvider: ({ children }: { children: any }) => children, useTheme: () => ({ themeMode: 'dark', @@ -25,8 +26,9 @@ Object.defineProperty(window, 'matchMedia', { })) }); -// TODO - mock WalletModal from cosmos-kit? +// TODO - mock WalletModal from cosmos-kit +// TODO - bring this mock back and remove providers in testHelpers.tsx // And ensure wagmi mock is complete // jest.mock('wagmi', () => { // return {