Skip to content

chore: update according to GQL changes #100

chore: update according to GQL changes

chore: update according to GQL changes #100

Triggered via pull request July 24, 2025 13:08
Status Success
Total duration 4m 44s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching user market state for a new user > Then it should return the expected data for a user that has never interacted with the market: packages/client/src/actions/markets.test.ts#L99
Error: Snapshot mismatched - Expected + Received { + "__typename": "MarketUserState", "availableBorrowsBase": Any<String>, - "currentLiquidationThreshold": Any<String>, + "currentLiquidationThreshold": { + "__typename": "PercentValue", + "decimals": 0, + "formatted": "0", + "raw": "0", + "value": "0", + }, + "eModeEnabled": false, "healthFactor": Any<String>, - "ltv": Any<String>, - "netAPY": Any<String>, + "isInIsolationMode": false, + "ltv": { + "__typename": "PercentValue", + "decimals": 0, + "formatted": "0", + "raw": "0", + "value": "0", + }, + "netAPY": { + "__typename": "PercentValue", + "decimals": 0, + "formatted": "0", + "raw": "0", + "value": "0", + }, "netWorth": Any<String>, "totalCollateralBase": Any<String>, "totalDebtBase": Any<String>, } ❯ packages/client/src/actions/markets.test.ts:99:28
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching a single market > Then it should return supply reserves APYs in the expected order of magnitude: packages/client/src/actions/markets.test.ts#L69
AssertionError: expected [ { token: 'WETH', …(1) }, …(48) ] to deeply equal [ { token: 'WETH', …(1) }, …(48) ] - Expected + Received @@ -1,16 +1,16 @@ [ { - "apy": toBeBigDecimalCloseTo<"4", 0>, + "apy": "0.437092930632261602528242707", "token": "WETH", }, { - "apy": toBeBigDecimalCloseTo<"3", 0>, + "apy": "0.038201332671184850092643984", "token": "USDC", }, { - "apy": toBeBigDecimalCloseTo<"3", 0>, + "apy": "0.037998810047443793528461769", "token": "USDS", }, Any<Object>, Any<Object>, Any<Object>, ❯ packages/client/src/actions/markets.test.ts:69:9
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching markets by chain ID(s) > Then it should return the expected data for each market: packages/client/src/actions/markets.test.ts#L24
Error: Snapshot `Given the Aave Protocol v3 > When fetching markets by chain ID(s) > Then it should return the expected data for each market 1` mismatched - Expected + Received { "__typename": "Market", - "address": "0x0AA97c284e98396202b6A04024F5E2c65026F3c0", + "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", "borrowReserves": Any<Array>, "chain": { "__typename": "Chain", "chainId": 1, "explorerUrl": "https://etherscan.io", "icon": "https://statics.aave.com/ethereum.svg", "name": "Ethereum", }, "eModeCategories": Any<Array>, "icon": "https://statics.aave.com/ethereum.svg", - "name": "AaveV3EthereumEtherFi", + "name": "AaveV3Ethereum", "supplyReserves": Any<Array>, "totalAvailableLiquidity": Any<String>, "totalMarketSize": Any<String>, "userState": null, } ❯ packages/client/src/actions/markets.test.ts:24:24 ❯ packages/client/src/actions/markets.test.ts:23:20