chore: updates vault tests scenarios (#25) #98
cd.yml
on: push
Verify
/
Lint
28s
Verify
/
Test
4m 12s
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_WEEK:
packages/client/src/actions/reserve.test.ts#L93
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:93:38
|
|
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-23T13:49:28.042Z, 2025-07-24T13:49:28.042Z>,
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.31",
+ "raw": "33138343656833409822288871",
+ "value": "0.033138343656833409822288871",
+ },
+ "date": "2025-07-24T13:45:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.31",
+ "raw": "33138343656833409822288871",
+ "value": "0.033138343656833409822288871",
+ },
+ "date": "2025-07-24T13:40:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.87",
+ "raw": "38715436920405713415480668",
+ "value": "0.038715436920405713415480668",
+ },
+ "date": "2025-07-24T13:35:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "2.36",
+ "raw": "23603413981780680933830119",
+ "value": "0.023603413981780680933830119",
+ },
+ "date": "2025-07-24T13:30:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "2.30",
+ "raw": "22991331127533348043036933",
+ "value": "0.022991331127533348043036933",
+ },
+ "date": "2025-07-24T13:25:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.59",
+ "raw": "35923110562284069068891200",
+ "value": "0.0359231105622840690688912",
+ },
+ "date": "2025-07-24T13:20:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.22",
+ "raw": "32211880032902408953547431",
+ "value": "0.032211880032902408953547431",
+ },
+ "date": "2025-07-24T13:15:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T13:10:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T13:05:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T13:00:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T12:55:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T12:50:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.014460323
|
|
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_YEAR:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
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_SIX_MONTHS:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
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_MONTH:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
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_WEEK:
packages/client/src/actions/reserve.test.ts#L69
AssertionError: expected 0 to be greater than 0
❯ packages/client/src/actions/reserve.test.ts:69:38
|
|
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-23T13:49:27.554Z, 2025-07-24T13:49:27.554Z>,
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.31",
+ "raw": "33138343656833409822288871",
+ "value": "0.033138343656833409822288871",
+ },
+ "date": "2025-07-24T13:45:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.31",
+ "raw": "33138343656833409822288871",
+ "value": "0.033138343656833409822288871",
+ },
+ "date": "2025-07-24T13:40:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.87",
+ "raw": "38715436920405713415480668",
+ "value": "0.038715436920405713415480668",
+ },
+ "date": "2025-07-24T13:35:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "2.36",
+ "raw": "23603413981780680933830119",
+ "value": "0.023603413981780680933830119",
+ },
+ "date": "2025-07-24T13:30:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "2.30",
+ "raw": "22991331127533348043036933",
+ "value": "0.022991331127533348043036933",
+ },
+ "date": "2025-07-24T13:25:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.59",
+ "raw": "35923110562284069068891200",
+ "value": "0.0359231105622840690688912",
+ },
+ "date": "2025-07-24T13:20:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "3.22",
+ "raw": "32211880032902408953547431",
+ "value": "0.032211880032902408953547431",
+ },
+ "date": "2025-07-24T13:15:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T13:10:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T13:05:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T13:00:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T12:55:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.01446032323627684206540604",
+ },
+ "date": "2025-07-24T12:50:00+00:00",
+ },
+ {
+ "__typename": "APYSample",
+ "avgRate": {
+ "__typename": "PercentValue",
+ "decimals": 27,
+ "formatted": "1.45",
+ "raw": "14460323236276842065406040",
+ "value": "0.014460323
|
|
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.437010195402725430649661598",
"token": "WETH",
},
{
- "apy": toBeBigDecimalCloseTo<"3", 0>,
+ "apy": "0.038201377395961414904165955",
"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/borrow.test.ts > Given an Aave Market > And a user with a supply position > When the user set the supply as collateral > Then it should be possible to borrow native from the reserve:
packages/client/src/actions/borrow.test.ts#L189
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ packages/client/src/actions/borrow.test.ts:189:43
|