Skip to content

fix emode tests

fix emode tests #95

Triggered via pull request July 24, 2025 12:11
Status Success
Total duration 4m 36s
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.437214799907060254295634869", "token": "WETH", }, { - "apy": toBeBigDecimalCloseTo<"3", 0>, + "apy": "0.038201263293082267280065689", "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