Skip to content

Commit

Permalink
chore: allow any explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Jan 20, 2024
1 parent 88ff7eb commit 1acc68f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/http/global.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getCurrentHub } from "@sentry/node";
import request from "supertest";
import { GlobalModule } from "./global.module";

// biome-ignore lint/suspicious/noExplicitAny: <explanation>
declare let global: any;

describe("Http:Global", () => {
Expand All @@ -27,6 +28,7 @@ describe("Http:Global", () => {
};
client.captureException.mockClear();
getCurrentHub().pushScope();
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
getCurrentHub().bindClient(client as any);
});

Expand Down
2 changes: 2 additions & 0 deletions test/http/method.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { SeverityLevel } from "@sentry/types";
import request from "supertest";
import { MethodModule } from "./method.module";

// biome-ignore lint/suspicious/noExplicitAny: <explanation>
declare let global: any;

describe("Http:Method", () => {
Expand All @@ -28,6 +29,7 @@ describe("Http:Method", () => {
};
client.captureException.mockClear();
getCurrentHub().pushScope();
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
getCurrentHub().bindClient(client as any);
});

Expand Down
2 changes: 2 additions & 0 deletions test/websockets/class.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getCurrentHub } from "@sentry/node";
import { io } from "socket.io-client";
import { ClassModule } from "./class.module";

// biome-ignore lint/suspicious/noExplicitAny: <explanation>
declare let global: any;

describe("Websockets:Class", () => {
Expand All @@ -27,6 +28,7 @@ describe("Websockets:Class", () => {
};
client.captureException.mockClear();
getCurrentHub().pushScope();
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
getCurrentHub().bindClient(client as any);
});

Expand Down
1 change: 1 addition & 0 deletions test/websockets/class.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { RavenInterceptor } from "../../lib";
@WebSocketGateway(4444)
export class classGateway {
@SubscribeMessage("test_error")
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
on_test_error(_client: any, _data: any): string {
throw new Error("Something bad happened");
}
Expand Down
2 changes: 2 additions & 0 deletions test/websockets/method.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getCurrentHub } from "@sentry/node";
import { io } from "socket.io-client";
import { MethodModule } from "./method.module";

// biome-ignore lint/suspicious/noExplicitAny: <explanation>
declare let global: any;

describe("Websockets:Method", () => {
Expand All @@ -28,6 +29,7 @@ describe("Websockets:Method", () => {
};
client.captureException.mockClear();
getCurrentHub().pushScope();
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
getCurrentHub().bindClient(client as any);
socket = io("http://localhost:4466");
});
Expand Down
1 change: 1 addition & 0 deletions test/websockets/method.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { RavenInterceptor } from "../../lib";
export class MethodGateway {
@UseInterceptors(new RavenInterceptor())
@SubscribeMessage("test_error")
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
on_test_error(_client: any, _data: any): string {
throw new Error("Something bad happened");
}
Expand Down

0 comments on commit 1acc68f

Please sign in to comment.