File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
dev-packages/node-integration-tests
suites/fastify/deprecation Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 4242 "cors" : " ^2.8.5" ,
4343 "cron" : " ^3.1.6" ,
4444 "express" : " ^4.17.3" ,
45+ "fastify" : " ^4.23.2" ,
4546 "graphql" : " ^16.3.0" ,
4647 "http-terminator" : " ^3.2.0" ,
4748 "ioredis" : " ^5.4.1" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ afterAll(() => {
55 cleanupChildProcesses ( ) ;
66} ) ;
77
8+ /**
9+ * AxiosError throws before the deprecation warning code is invoked,
10+ * so mocking it would have no effect.
11+ *
12+ * But the deprecation warning is successfully suppressed.
13+ * This can be verified by running the example code as in the original
14+ * issue (https://github.com/getsentry/sentry-javascript/issues/12844)
15+ */
816test ( 'suppress fastify deprecation warning when `routerPath` property is accessed' , async ( ) => {
917 // ensures that the assertions in the catch block are called
1018 expect . assertions ( 3 ) ;
You can’t perform that action at this time.
0 commit comments