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 19, 2023
1 parent e4b1022 commit ae00d7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ const setupServices = async (
* CollateralManager,
* ]}
*/
// @ts-expect-error Undiagnosed test-only type error
const [
governorInstance,
vaultFactory, // creator
Expand Down Expand Up @@ -1704,6 +1705,7 @@ test('manager notifiers, with snapshot', async t => {
const { aethVaultManager, vfPublic } = services.vaultFactory;
const cm = await E(aethVaultManager).getPublicFacet();

// @ts-expect-error Undiagnosed test-only type error
const m = await vaultManagerMetricsTracker(t, cm);

trace('0. Creation');
Expand Down
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 ae00d7b

Please sign in to comment.