Skip to content

Commit

Permalink
Add eslint-disable directive to prevent test from timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jul 16, 2024
1 parent 73714b5 commit 098ce74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/assets-controllers/src/NftController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,8 @@ describe('NftController', () => {
const requestId = 'approval-request-id-1';
(v4 as jest.Mock).mockImplementationOnce(() => requestId);

// Awaiting `expect` as recommended by eslint results in this test stalling and timing out.
// eslint-disable-next-line @typescript-eslint/no-floating-promises, jest/valid-expect
expect(
async () =>
await nftController.watchNft(
Expand Down

0 comments on commit 098ce74

Please sign in to comment.