From 45db68ba4ca655a828b153e3e36e39db9d73f099 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Mon, 18 Dec 2023 14:50:54 -0800 Subject: [PATCH] test(inter-protocol): suppress test-only static type error --- .../test/vaultFactory/test-vaultLiquidation.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js b/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js index 2240f539d3fa..58ee9be155af 100644 --- a/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js +++ b/packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js @@ -205,6 +205,7 @@ const setupServices = async ( * CollateralManager, * ]} */ + // @ts-expect-error Undiagnosed test-only type error const [ governorInstance, vaultFactory, // creator @@ -700,6 +701,7 @@ test('liquidate two loans', async t => { let shortfallBalance = 0n; const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -1225,6 +1227,7 @@ test('collect fees from loan', async t => { await reserveMetrics.assertInitial(reserveInitialState(run.makeEmpty())); const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -1476,6 +1479,7 @@ test('Auction sells all collateral w/shortfall', async t => { let shortfallBalance = 0n; const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -1786,6 +1790,7 @@ test('reinstate vault', async t => { await E(reserveCreatorFacet).addIssuer(aeth.issuer, 'Aeth'); const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -2087,6 +2092,7 @@ test('Bug 7422 vault reinstated with no assets', async t => { await E(reserveCreatorFacet).addIssuer(aeth.issuer, 'Aeth'); const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -2321,6 +2327,7 @@ test('Bug 7346 excess collateral to holder', async t => { await E(reserveCreatorFacet).addIssuer(aeth.issuer, 'Aeth'); const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -2773,6 +2780,7 @@ test('Bug 7784 reconstitute both', async t => { await E(reserveCreatorFacet).addIssuer(aeth.issuer, 'Aeth'); const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -2990,6 +2998,7 @@ test('Bug 7796 missing lockedPrice', async t => { await E(reserveCreatorFacet).addIssuer(aeth.issuer, 'Aeth'); const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present @@ -3268,6 +3277,7 @@ test('Bug 7851 & no bidders', async t => { await E(reserveCreatorFacet).addIssuer(aeth.issuer, 'Aeth'); const cm = await E(aethVaultManager).getPublicFacet(); + // @ts-expect-error Undiagnosed test-only type error const aethVaultMetrics = await vaultManagerMetricsTracker(t, cm); await aethVaultMetrics.assertInitial({ // present