Skip to content

Commit c460908

Browse files
committed
add ts expect error
1 parent 4ca941e commit c460908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/test/lib/global.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ describe('global', () => {
2828
const newestHub = new Hub(undefined, undefined, undefined, 999999);
2929
GLOBAL_OBJ.__SENTRY__.hub = newestHub;
3030
const fn = jest.fn().mockImplementation(function (...args: []) {
31-
expect(this as any).toBe(newestHub);
31+
// @ts-expect-error 'this' implicitly has type 'any' because it does not have a type annotation
32+
expect(this).toBe(newestHub);
3233
expect(args).toEqual([1, 2, 3]);
3334
});
3435
GLOBAL_OBJ.__SENTRY__.extensions = {};

0 commit comments

Comments
 (0)