Skip to content

Commit

Permalink
test(inter-protocol): suppress test-only static type error
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Dec 18, 2023
1 parent 7ca5d64 commit 45db68b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/inter-protocol/test/vaultFactory/test-vaultLiquidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ const setupServices = async (
* CollateralManager,
* ]}
*/
// @ts-expect-error Undiagnosed test-only type error
const [
governorInstance,
vaultFactory, // creator
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 45db68b

Please sign in to comment.