Skip to content

Commit 32471ea

Browse files
committed
fixes or disables @typescript-eslint/no-unnecessary-type-assertion
1 parent 7e7c141 commit 32471ea

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed
0 Bytes
Binary file not shown.

packages/core/test/integrations/logEnricherIntegration.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable @typescript-eslint/no-unnecessary-type-assertion
21
import type { Client, Log } from '@sentry/core';
32
import { debug } from '@sentry/core';
43
import { logEnricherIntegration } from '../../src/js/integrations/logEnricherIntegration';
@@ -162,7 +161,7 @@ describe('LogEnricher Integration', () => {
162161
// Extract the log handler
163162
const beforeCaptureLogCall = mockOn.mock.calls.find(call => call[0] === 'beforeCaptureLog');
164163
expect(beforeCaptureLogCall).toBeDefined();
165-
logHandler = beforeCaptureLogCall![1] as (log: Log) => void;
164+
logHandler = beforeCaptureLogCall![1];
166165

167166
mockLog = {
168167
message: 'Test log message',
@@ -246,7 +245,7 @@ describe('LogEnricher Integration', () => {
246245

247246
const beforeCaptureLogCall = mockOn.mock.calls.find(call => call[0] === 'beforeCaptureLog');
248247
expect(beforeCaptureLogCall).toBeDefined();
249-
const newLogHandler = beforeCaptureLogCall![1] as (log: Log) => void;
248+
const newLogHandler = beforeCaptureLogCall![1];
250249

251250
newLogHandler(mockLog);
252251

@@ -292,7 +291,7 @@ describe('LogEnricher Integration', () => {
292291

293292
const beforeCaptureLogCall = mockOn.mock.calls.find(call => call[0] === 'beforeCaptureLog');
294293
expect(beforeCaptureLogCall).toBeDefined();
295-
const emptyLogHandler = beforeCaptureLogCall![1] as (log: Log) => void;
294+
const emptyLogHandler = beforeCaptureLogCall![1];
296295

297296
emptyLogHandler(mockLog);
298297

@@ -324,7 +323,7 @@ describe('LogEnricher Integration', () => {
324323

325324
const beforeCaptureLogCall = mockOn.mock.calls.find(call => call[0] === 'beforeCaptureLog');
326325
expect(beforeCaptureLogCall).toBeDefined();
327-
const partialLogHandler = beforeCaptureLogCall![1] as (log: Log) => void;
326+
const partialLogHandler = beforeCaptureLogCall![1];
328327

329328
partialLogHandler(mockLog);
330329

@@ -358,7 +357,7 @@ describe('LogEnricher Integration', () => {
358357

359358
const beforeCaptureLogCall = mockOn.mock.calls.find(call => call[0] === 'beforeCaptureLog');
360359
expect(beforeCaptureLogCall).toBeDefined();
361-
const partialLogHandler = beforeCaptureLogCall![1] as (log: Log) => void;
360+
const partialLogHandler = beforeCaptureLogCall![1];
362361

363362
partialLogHandler(mockLog);
364363

@@ -448,7 +447,7 @@ describe('LogEnricher Integration', () => {
448447

449448
const beforeCaptureLogCall = mockOn.mock.calls.find(call => call[0] === 'beforeCaptureLog');
450449
expect(beforeCaptureLogCall).toBeDefined();
451-
logHandler = beforeCaptureLogCall![1] as (log: Log) => void;
450+
logHandler = beforeCaptureLogCall![1];
452451

453452
mockLog = {
454453
message: 'Test log message',

packages/core/test/tracing/addTracingExtensions.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable @typescript-eslint/no-unnecessary-type-assertion
21
import type { Span } from '@sentry/core';
32
import { getCurrentScope, spanToJSON, startSpanManual } from '@sentry/core';
43
import { reactNativeTracingIntegration } from '../../src/js';

0 commit comments

Comments
 (0)