Skip to content

fix: linting issue and tsdoc #105

fix: linting issue and tsdoc

fix: linting issue and tsdoc #105

Triggered via pull request July 24, 2025 16:12
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/reserve.test.ts > Given an Aave Market reserve > When fetching the supply APY history for it > Then it should return a time series for the specified window LAST_DAY: packages/client/src/actions/reserve.test.ts#L94
AssertionError: expected [ …(289) ] to deeply equal [ ObjectContaining{…}, …(288) ] - Expected + Received [ - ObjectContaining { - "avgRate": Any<Object>, - "date": toBeBetween<2025-07-23T16:16:34.032Z, 2025-07-24T16:16:34.032Z>, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "1.71", + "raw": "17134217277875651711209359", + "value": "0.017134217277875651711209359", + }, + "date": "2025-07-24T16:15:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "1.71", + "raw": "17134217277875651711209359", + "value": "0.017134217277875651711209359", + }, + "date": "2025-07-24T16:10:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.83", + "raw": "38251310899165719321266978", + "value": "0.038251310899165719321266978", + }, + "date": "2025-07-24T16:05:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "5.18", + "raw": "51825883869723765660545169", + "value": "0.051825883869723765660545169", + }, + "date": "2025-07-24T16:00:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.26", + "raw": "32572089867013497872380142", + "value": "0.032572089867013497872380142", + }, + "date": "2025-07-24T15:55:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.63", + "raw": "46335661092692300911159967", + "value": "0.046335661092692300911159967", + }, + "date": "2025-07-24T15:50:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.70", + "raw": "46957058281407782754202420", + "value": "0.04695705828140778275420242", + }, + "date": "2025-07-24T15:45:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.07", + "raw": "40739817289461798839981833", + "value": "0.040739817289461798839981833", + }, + "date": "2025-07-24T15:40:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.97", + "raw": "49687194084626635814873924", + "value": "0.049687194084626635814873924", + }, + "date": "2025-07-24T15:35:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.14", + "raw": "41423152773310233327295691", + "value": "0.041423152773310233327295691", + }, + "date": "2025-07-24T15:30:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.82", + "raw": "38172660588708642550817350", + "value": "0.03817266058870864255081735", + }, + "date": "2025-07-24T15:25:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.61", + "raw": "36108445571748871064197574", + "value": "0.036108445571748871064197574", + }, + "date": "2025-07-24T15:20:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.10", + "raw": "41037486407688696872336984", + "value": "0.0410
packages/client/src/actions/reserve.test.ts > Given an Aave Market reserve > When fetching the borrow APY history for it > Then it should return a time series for the specified window LAST_DAY: packages/client/src/actions/reserve.test.ts#L70
AssertionError: expected [ …(289) ] to deeply equal [ ObjectContaining{…}, …(288) ] - Expected + Received [ - ObjectContaining { - "avgRate": Any<Object>, - "date": toBeBetween<2025-07-23T16:16:33.522Z, 2025-07-24T16:16:33.522Z>, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "1.71", + "raw": "17134217277875651711209359", + "value": "0.017134217277875651711209359", + }, + "date": "2025-07-24T16:15:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "1.71", + "raw": "17134217277875651711209359", + "value": "0.017134217277875651711209359", + }, + "date": "2025-07-24T16:10:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.83", + "raw": "38251310899165719321266978", + "value": "0.038251310899165719321266978", + }, + "date": "2025-07-24T16:05:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "5.18", + "raw": "51825883869723765660545169", + "value": "0.051825883869723765660545169", + }, + "date": "2025-07-24T16:00:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.26", + "raw": "32572089867013497872380142", + "value": "0.032572089867013497872380142", + }, + "date": "2025-07-24T15:55:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.63", + "raw": "46335661092692300911159967", + "value": "0.046335661092692300911159967", + }, + "date": "2025-07-24T15:50:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.70", + "raw": "46957058281407782754202420", + "value": "0.04695705828140778275420242", + }, + "date": "2025-07-24T15:45:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.07", + "raw": "40739817289461798839981833", + "value": "0.040739817289461798839981833", + }, + "date": "2025-07-24T15:40:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.97", + "raw": "49687194084626635814873924", + "value": "0.049687194084626635814873924", + }, + "date": "2025-07-24T15:35:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.14", + "raw": "41423152773310233327295691", + "value": "0.041423152773310233327295691", + }, + "date": "2025-07-24T15:30:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.82", + "raw": "38172660588708642550817350", + "value": "0.03817266058870864255081735", + }, + "date": "2025-07-24T15:25:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "3.61", + "raw": "36108445571748871064197574", + "value": "0.036108445571748871064197574", + }, + "date": "2025-07-24T15:20:00+00:00", + }, + { + "__typename": "APYSample", + "avgRate": { + "__typename": "PercentValue", + "decimals": 27, + "formatted": "4.10", + "raw": "41037486407688696872336984", + "value": "0.0410
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.436975040175947258582493822", "token": "WETH", }, { - "apy": toBeBigDecimalCloseTo<"3", 0>, + "apy": "0.038201557152451202802211839", "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