File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
dev-packages/node-integration-tests Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ module.exports = {
20
20
} ,
21
21
rules : {
22
22
'@typescript-eslint/typedef' : 'off' ,
23
+ // Explicitly allow ts-ignore with description for Node integration tests
24
+ // Reason: We run these tests on TS3.8 which doesn't support `@ts-expect-error`
25
+ '@typescript-eslint/ban-ts-comment' : [
26
+ 'error' ,
27
+ {
28
+ 'ts-ignore' : 'allow-with-description' ,
29
+ } ,
30
+ ] ,
23
31
} ,
24
32
} ,
25
33
] ,
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ describe('getTraceMetaTags', () => {
16
16
baggage : 'sentry-environment=production' ,
17
17
} ) ;
18
18
19
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
- // @ts -ignore
19
+ // @ts -expect-error - response is defined, types just don't reflect it
21
20
const html = response ?. response as unknown as string ;
22
21
23
22
expect ( html ) . toMatch ( / < m e t a n a m e = " s e n t r y - t r a c e " c o n t e n t = " c d 7 e e 7 a 6 f e 3 e b e 7 a b 9 c 3 2 7 1 5 5 9 b c 2 0 3 c - [ a - z 0 - 9 ] { 16 } - 1 " \/ > / ) ;
You can’t perform that action at this time.
0 commit comments