Skip to content

fix emode tests

fix emode tests #84

Triggered via pull request July 23, 2025 21:51
Status Success
Total duration 2m 1s
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 a single market > Then it should return supply reserves APYs in the expected order of magnitude: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/markets.test.ts:54:22
packages/client/src/actions/markets.test.ts > Given the Aave Protocol v3 > When fetching a single market > Then it should return the expected data for the market: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/markets.test.ts:37:22
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/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/markets.test.ts:17:22
packages/client/src/actions/eMode.test.ts > Given an Aave Market > And the user has some supply positions > When the user enables an E-Mode category involving some of the supply positions > Then any user supply position that are not included in the E-Mode category should not be able to be used as collateral: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/eMode.test.ts:161:24
packages/client/src/actions/eMode.test.ts > Given an Aave Market > When a user enables an E-Mode category for the given market > Then they should be able to disable it at any time: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/eMode.test.ts:80:22
packages/client/src/actions/eMode.test.ts > Given an Aave Market > When a user enables an E-Mode category for the given market > Then the market's reserves should have user state that reflects the selected E-Mode category settings: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/eMode.test.ts:52:22
packages/client/src/actions/eMode.test.ts > Given an Aave Market > When a user enables an E-Mode category for the given market > Then it should be reflected in their market user state: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/eMode.test.ts:39:22
packages/client/src/actions/collateralToggle.test.ts > Given Aave Market > And a user with a supply position > When the user toggles the position as collateral > Then it should be reflected in the user supply positions: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/collateralToggle.test.ts:39:36
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: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/borrow.test.ts:136:24
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: packages/client/src/client.ts#L23
InvariantError: Expected a value, got: [GraphQL] Field "netAPY" of type "PercentValue" must have a selection of subfields [GraphQL] Field "currentLiquidationThreshold" of type "PercentValue" must have a selection of subfields [GraphQL] Field "ltv" of type "PercentValue" must have a selection of subfields [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" [GraphQL] Fragment "DecimalValue" cannot be spread here as objects of type "PercentValue" can never be of type "DecimalValue" ❯ n packages/types/src/helpers/invariant.ts:20:11 ❯ takeValue packages/client/src/client.ts:23:3 ❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71 ❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12 ❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60 ❯ packages/client/src/actions/borrow.test.ts:66:24