Skip to content

Commit

Permalink
Suppress type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Sep 10, 2024
1 parent ff7b8a5 commit 388ea65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/snaps-jest/src/internals/simulation/simulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import { createEngineStream } from '@metamask/json-rpc-middleware-stream';
import { mnemonicPhraseToBytes } from '@metamask/key-tree';
import type { AbstractExecutionService } from '@metamask/snaps-controllers';
import {
fetchSnap,
detectSnapLocation,
fetchSnap,
NodeThreadExecutionService,
setupMultiplex,
} from '@metamask/snaps-controllers/node';
import { DIALOG_APPROVAL_TYPES } from '@metamask/snaps-rpc-methods';
import type {
SnapId,
AuxiliaryFileEncoding,
Component,
InterfaceState,
SnapId,
} from '@metamask/snaps-sdk';
import type { FetchedSnapFiles } from '@metamask/snaps-utils';
import { logError } from '@metamask/snaps-utils';
Expand Down Expand Up @@ -291,6 +291,8 @@ export function registerActions(

controllerMessenger.registerActionHandler(
'PhishingController:testOrigin',
// @ts-expect-error - `type` expects a `PhishingDetectorResultType` enum,
// but it's not exported.
() => ({ result: false, type: 'all' }),
);

Expand Down

0 comments on commit 388ea65

Please sign in to comment.