Skip to content

Commit 0f4c61d

Browse files
committed
remove all unused directives
1 parent 701e670 commit 0f4c61d

File tree

11 files changed

+2
-13
lines changed

11 files changed

+2
-13
lines changed

packages/core/test/lib/transports/offline.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const ERROR_ENVELOPE = createEnvelope<EventEnvelope>({ event_id: 'aa3ff046696b4b
2727
]);
2828

2929
const REPLAY_EVENT: ReplayEvent = {
30-
// @ts-expect-error private api
3130
type: 'replay_event',
3231
timestamp: 1670837008.634,
3332
error_ids: ['errorId'],

packages/integrations/test/extraerrordata.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ describe('ExtraErrorData()', () => {
6969

7070
it('should not remove previous data existing in extra field', () => {
7171
event = {
72-
// @ts-expect-error Allow contexts on event
7372
contexts: {
7473
foo: { bar: 42 },
7574
},

packages/nextjs/test/integration/pages/[id]/withInitialProps.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import Link from 'next/link';
33
const WithInitialPropsPage = ({ data }: { data: string }) => (
44
<>
55
<h1>WithInitialPropsPage {data}</h1>
6-
{/*
7-
// @ts-expect-error https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */}
6+
{/* @ts-expect-error https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */}
87
<Link href="/1337/withServerSideProps" passHref legacyBehavior>
98
<a id="server-side-props-page">Go to withServerSideProps</a>
109
</Link>

packages/nextjs/test/integration/pages/[id]/withServerSideProps.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import Link from 'next/link';
33
const WithServerSidePropsPage = ({ data }: { data: string }) => (
44
<>
55
<h1>WithServerSidePropsPage {data}</h1>
6-
{/*
7-
// @ts-expect-error https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */}
6+
{/* @ts-expect-error https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */}
87
<Link href="/3c2e87573d/withInitialProps" passHref legacyBehavior>
98
<a id="initial-props-page">Go to withInitialProps</a>
109
</Link>

packages/node/test/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ describe('SentryNode', () => {
316316
});
317317
getCurrentHub().bindClient(new NodeClient(options));
318318
try {
319-
// @ts-expect-error allow function declarations in strict mode
320319
// eslint-disable-next-line no-inner-declarations
321320
function testy(): void {
322321
throw new Error('test');

packages/node/test/requestdata.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ describe.each([parseRequest, addRequestDataToEvent])(
9595
test(`${fn.name}.user doesnt blow up when someone passes non-object value`, () => {
9696
const reqWithUser = {
9797
...mockReq,
98-
// @ts-expect-error user is not assignable to object
9998
user: 'wat',
10099
};
101100

packages/opentelemetry-node/test/spanprocessor.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,6 @@ describe('SentrySpanProcessor', () => {
876876
parentOtelSpan.end();
877877
});
878878

879-
// @ts-expect-error Accessing private attributes
880879
expect(sentryTransaction._hub.getScope()._tags.foo).toEqual('bar');
881880
});
882881
});

packages/replay/test/unit/util/createReplayEnvelope.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ describe('Unit | util | createReplayEnvelope', () => {
77
const REPLAY_ID = 'MY_REPLAY_ID';
88

99
const replayEvent: ReplayEvent = {
10-
// @ts-expect-error private api
1110
type: 'replay_event',
1211
timestamp: 1670837008.634,
1312
error_ids: ['errorId'],

packages/replay/test/unit/util/prepareReplayEvent.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ describe('Unit | util | prepareReplayEvent', () => {
3939

4040
const replayId = 'replay-ID';
4141
const event: ReplayEvent = {
42-
// @ts-expect-error private api
4342
type: REPLAY_EVENT_NAME,
4443
timestamp: 1670837008.634,
4544
error_ids: ['error-ID'],

packages/tracing-internal/test/browser/browsertracing.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ beforeAll(() => {
5454
WINDOW.document = dom.window.document;
5555
// @ts-expect-error need to override global document
5656
WINDOW.window = dom.window;
57-
// @ts-expect-error need to override global document
5857
WINDOW.location = dom.window.location;
5958
});
6059

packages/utils/test/syncpromise.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ describe('SyncPromise', () => {
8686
// @ts-expect-error Argument of type 'PromiseLike<string>' is not assignable to parameter of type 'SyncPromise<string>'
8787
.then(val => f(resolvedSyncPromise('x'), val))
8888
.then(val => f(b, val))
89-
// @ts-expect-error Argument of type 'SyncPromise<string>' is not assignable to parameter of type 'string'
9089
.then(val => f(a, val))
9190
.then(val => {
9291
expect(val).toBe(res);

0 commit comments

Comments
 (0)