@@ -183,21 +183,18 @@ describe('tools/adapter', () => {
183183 ) ;
184184
185185 // Test with valid input
186- // eslint-disable-next-line @typescript-eslint/no-explicit-any
187- const validResult = await tool . handler ( { name : 'test' , count : 5 } , { } as any ) ;
186+ const validResult = await tool . handler ( { name : 'test' , count : 5 } ) ;
188187 expect ( validResult . isError ) . to . be . undefined ;
189188 expect ( getResultText ( validResult ) ) . to . equal ( 'Received: test, 5' ) ;
190189
191190 // Test with missing required field
192- // eslint-disable-next-line @typescript-eslint/no-explicit-any
193- const missingResult = await tool . handler ( { count : 5 } , { } as any ) ;
191+ const missingResult = await tool . handler ( { count : 5 } ) ;
194192 expect ( missingResult . isError ) . to . be . true ;
195193 expect ( getResultText ( missingResult ) ) . to . include ( 'Invalid input' ) ;
196194 expect ( getResultText ( missingResult ) ) . to . include ( 'name' ) ;
197195
198196 // Test with invalid type
199- // eslint-disable-next-line @typescript-eslint/no-explicit-any
200- const invalidTypeResult = await tool . handler ( { name : 'test' , count : 'not-a-number' } , { } as any ) ;
197+ const invalidTypeResult = await tool . handler ( { name : 'test' , count : 'not-a-number' } ) ;
201198 expect ( invalidTypeResult . isError ) . to . be . true ;
202199 expect ( getResultText ( invalidTypeResult ) ) . to . include ( 'Invalid input' ) ;
203200 } ) ;
@@ -220,8 +217,7 @@ describe('tools/adapter', () => {
220217 loadServices ,
221218 ) ;
222219
223- // eslint-disable-next-line @typescript-eslint/no-explicit-any
224- const result = await tool . handler ( { email : 'not-an-email' } , { } as any ) ;
220+ const result = await tool . handler ( { email : 'not-an-email' } ) ;
225221
226222 expect ( result . isError ) . to . be . true ;
227223 expect ( getResultText ( result ) ) . to . include ( 'Invalid input' ) ;
@@ -246,8 +242,7 @@ describe('tools/adapter', () => {
246242 loadServices ,
247243 ) ;
248244
249- // eslint-disable-next-line @typescript-eslint/no-explicit-any
250- const result = await tool . handler ( { } , { } as any ) ;
245+ const result = await tool . handler ( { } ) ;
251246
252247 expect ( result . isError ) . to . be . true ;
253248 expect ( getResultText ( result ) ) . to . include ( 'Execution error' ) ;
@@ -272,8 +267,7 @@ describe('tools/adapter', () => {
272267 loadServices ,
273268 ) ;
274269
275- // eslint-disable-next-line @typescript-eslint/no-explicit-any
276- const result = await tool . handler ( { } , { } as any ) ;
270+ const result = await tool . handler ( { } ) ;
277271
278272 expect ( result . isError ) . to . be . true ;
279273 expect ( getResultText ( result ) ) . to . include ( 'Execution error' ) ;
@@ -300,8 +294,7 @@ describe('tools/adapter', () => {
300294 loadServices ,
301295 ) ;
302296
303- // eslint-disable-next-line @typescript-eslint/no-explicit-any
304- await tool . handler ( { } , { } as any ) ;
297+ await tool . handler ( { } ) ;
305298
306299 const services = loadServices ( ) ;
307300 expect ( receivedServices ) . to . equal ( services ) ;
@@ -329,8 +322,7 @@ describe('tools/adapter', () => {
329322 loadServices ,
330323 ) ;
331324
332- // eslint-disable-next-line @typescript-eslint/no-explicit-any
333- const result = await tool . handler ( { projectName : 'my-storefront' } , { } as any ) ;
325+ const result = await tool . handler ( { projectName : 'my-storefront' } ) ;
334326
335327 expect ( result . isError ) . to . be . undefined ;
336328 expect ( getResultText ( result ) ) . to . equal ( 'Created project: my-storefront' ) ;
@@ -357,8 +349,7 @@ describe('tools/adapter', () => {
357349 loadServices ,
358350 ) ;
359351
360- // eslint-disable-next-line @typescript-eslint/no-explicit-any
361- const result = await tool . handler ( { } , { } as any ) ;
352+ const result = await tool . handler ( { } ) ;
362353
363354 expect ( result . isError ) . to . be . undefined ;
364355 const parsed = JSON . parse ( getResultText ( result ) ) ;
@@ -407,14 +398,12 @@ describe('tools/adapter', () => {
407398 ) ;
408399
409400 // Without optional field
410- // eslint-disable-next-line @typescript-eslint/no-explicit-any
411- const result1 = await tool . handler ( { required : 'value' } , { } as any ) ;
401+ const result1 = await tool . handler ( { required : 'value' } ) ;
412402 expect ( result1 . isError ) . to . be . undefined ;
413403 expect ( getResultText ( result1 ) ) . to . equal ( 'required: value, optional: not provided' ) ;
414404
415405 // With optional field
416- // eslint-disable-next-line @typescript-eslint/no-explicit-any
417- const result2 = await tool . handler ( { required : 'value' , optional : 'present' } , { } as any ) ;
406+ const result2 = await tool . handler ( { required : 'value' , optional : 'present' } ) ;
418407 expect ( result2 . isError ) . to . be . undefined ;
419408 expect ( getResultText ( result2 ) ) . to . equal ( 'required: value, optional: present' ) ;
420409 } ) ;
@@ -437,8 +426,7 @@ describe('tools/adapter', () => {
437426 loadServices ,
438427 ) ;
439428
440- // eslint-disable-next-line @typescript-eslint/no-explicit-any
441- const result = await tool . handler ( { items : [ 'a' , 'b' , 'c' ] } , { } as any ) ;
429+ const result = await tool . handler ( { items : [ 'a' , 'b' , 'c' ] } ) ;
442430
443431 expect ( result . isError ) . to . be . undefined ;
444432 expect ( getResultText ( result ) ) . to . equal ( 'a, b, c' ) ;
@@ -464,8 +452,7 @@ describe('tools/adapter', () => {
464452 ) ;
465453
466454 // Test with too short name
467- // eslint-disable-next-line @typescript-eslint/no-explicit-any
468- const result = await tool . handler ( { name : 'ab' , age : 25 } , { } as any ) ;
455+ const result = await tool . handler ( { name : 'ab' , age : 25 } ) ;
469456 expect ( result . isError ) . to . be . true ;
470457 expect ( getResultText ( result ) ) . to . include ( 'Name must be at least 3 characters' ) ;
471458 } ) ;
@@ -491,8 +478,7 @@ describe('tools/adapter', () => {
491478 ) ;
492479
493480 // Default is now false, so tool should execute without instance
494- // eslint-disable-next-line @typescript-eslint/no-explicit-any
495- const result = await tool . handler ( { } , { } as any ) ;
481+ const result = await tool . handler ( { } ) ;
496482
497483 expect ( result . isError ) . to . be . undefined ;
498484 expect ( contextReceived ?. b2cInstance ) . to . be . undefined ;
@@ -514,8 +500,7 @@ describe('tools/adapter', () => {
514500 loadServices ,
515501 ) ;
516502
517- // eslint-disable-next-line @typescript-eslint/no-explicit-any
518- const result = await tool . handler ( { } , { } as any ) ;
503+ const result = await tool . handler ( { } ) ;
519504
520505 expect ( result . isError ) . to . be . true ;
521506 expect ( getResultText ( result ) ) . to . include ( 'B2C instance error' ) ;
@@ -549,8 +534,7 @@ describe('tools/adapter', () => {
549534 loadServices ,
550535 ) ;
551536
552- // eslint-disable-next-line @typescript-eslint/no-explicit-any
553- const result = await tool . handler ( { } , { } as any ) ;
537+ const result = await tool . handler ( { } ) ;
554538
555539 expect ( result . isError ) . to . be . undefined ;
556540 expect ( contextReceived ?. mrtConfig ?. auth ) . to . be . undefined ;
@@ -579,8 +563,7 @@ describe('tools/adapter', () => {
579563 loadServices ,
580564 ) ;
581565
582- // eslint-disable-next-line @typescript-eslint/no-explicit-any
583- const result = await tool . handler ( { } , { } as any ) ;
566+ const result = await tool . handler ( { } ) ;
584567
585568 expect ( result . isError ) . to . be . undefined ;
586569 expect ( contextReceived ?. mrtConfig ?. auth ) . to . not . be . undefined ;
@@ -612,8 +595,7 @@ describe('tools/adapter', () => {
612595 loadServices ,
613596 ) ;
614597
615- // eslint-disable-next-line @typescript-eslint/no-explicit-any
616- const result = await tool . handler ( { } , { } as any ) ;
598+ const result = await tool . handler ( { } ) ;
617599
618600 expect ( result . isError ) . to . be . undefined ;
619601 expect ( contextReceived ?. mrtConfig ?. auth ) . to . not . be . undefined ;
@@ -647,8 +629,7 @@ describe('tools/adapter', () => {
647629 loadServices ,
648630 ) ;
649631
650- // eslint-disable-next-line @typescript-eslint/no-explicit-any
651- const result = await tool . handler ( { } , { } as any ) ;
632+ const result = await tool . handler ( { } ) ;
652633
653634 expect ( result . isError ) . to . be . undefined ;
654635 expect ( contextReceived ?. mrtConfig ?. auth ) . to . not . be . undefined ;
@@ -676,8 +657,7 @@ describe('tools/adapter', () => {
676657 loadServices ,
677658 ) ;
678659
679- // eslint-disable-next-line @typescript-eslint/no-explicit-any
680- const result = await tool . handler ( { } , { } as any ) ;
660+ const result = await tool . handler ( { } ) ;
681661
682662 expect ( result . isError ) . to . be . undefined ;
683663 expect ( contextReceived ?. b2cInstance ) . to . be . undefined ;
@@ -704,8 +684,7 @@ describe('tools/adapter', () => {
704684 loadServices ,
705685 ) ;
706686
707- // eslint-disable-next-line @typescript-eslint/no-explicit-any
708- const result = await tool . handler ( { } , { } as any ) ;
687+ const result = await tool . handler ( { } ) ;
709688
710689 expect ( result . isError ) . to . be . true ;
711690 expect ( getResultText ( result ) ) . to . include ( 'MRT auth error' ) ;
@@ -744,21 +723,16 @@ describe('tools/adapter', () => {
744723 ) ;
745724
746725 // Empty list
747- // eslint-disable-next-line @typescript-eslint/no-explicit-any
748- const emptyResult = await tool . handler ( { items : [ ] } , { } as any ) ;
726+ const emptyResult = await tool . handler ( { items : [ ] } ) ;
749727 expect ( getResultText ( emptyResult ) ) . to . equal ( 'No items found.' ) ;
750728
751729 // With items
752- const itemsResult = await tool . handler (
753- {
754- items : [
755- { id : 1 , name : 'First' } ,
756- { id : 2 , name : 'Second' } ,
757- ] ,
758- } ,
759- // eslint-disable-next-line @typescript-eslint/no-explicit-any
760- { } as any ,
761- ) ;
730+ const itemsResult = await tool . handler ( {
731+ items : [
732+ { id : 1 , name : 'First' } ,
733+ { id : 2 , name : 'Second' } ,
734+ ] ,
735+ } ) ;
762736 expect ( getResultText ( itemsResult ) ) . to . include ( 'Found 2 items:' ) ;
763737 expect ( getResultText ( itemsResult ) ) . to . include ( '1: First' ) ;
764738 expect ( getResultText ( itemsResult ) ) . to . include ( '2: Second' ) ;
@@ -794,13 +768,11 @@ describe('tools/adapter', () => {
794768 loadServices ,
795769 ) ;
796770
797- // eslint-disable-next-line @typescript-eslint/no-explicit-any
798- const successResult = await tool . handler ( { operation : 'succeed' } , { } as any ) ;
771+ const successResult = await tool . handler ( { operation : 'succeed' } ) ;
799772 expect ( successResult . isError ) . to . be . undefined ;
800773 expect ( getResultText ( successResult ) ) . to . equal ( 'Operation succeeded' ) ;
801774
802- // eslint-disable-next-line @typescript-eslint/no-explicit-any
803- const failResult = await tool . handler ( { operation : 'fail' } , { } as any ) ;
775+ const failResult = await tool . handler ( { operation : 'fail' } ) ;
804776 expect ( failResult . isError ) . to . be . true ;
805777 expect ( getResultText ( failResult ) ) . to . equal ( 'Operation failed' ) ;
806778 } ) ;
0 commit comments