Skip to content

Commit

Permalink
Ignore TS errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Feb 22, 2024
1 parent 2039664 commit 605cfcc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/snap/src/handlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ describe('onRPCRequest', () => {
);

// Make sure it shows as unititialized
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
expect(initialStatus).toRespondWith({
res: base64Encode(
GetKeystoreStatusResponse.encode({
Expand All @@ -61,6 +63,8 @@ describe('onRPCRequest', () => {
env: ENV,
}),
),
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
).not.toRespondWithError();

const status = await request(
Expand All @@ -73,6 +77,8 @@ describe('onRPCRequest', () => {
),
);

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
expect(status).toRespondWith({
res: base64Encode(
GetKeystoreStatusResponse.encode({
Expand Down Expand Up @@ -119,6 +125,8 @@ describe('onRPCRequest', () => {
const publicKeyResponse = await request(
buildRpcRequest('getPublicKeyBundle', null, meta),
);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
expect(publicKeyResponse).toRespondWith({
res: base64Encode(bundle.getPublicKeyBundle().toBytes()),
});
Expand Down

0 comments on commit 605cfcc

Please sign in to comment.