@@ -659,23 +659,21 @@ describe('Debugging tests', () => {
659659 VmTarget . BCH_SPEC ,
660660 ] as const ;
661661
662- for ( const vmTarget of vmTargets ) {
663- it ( `should execute and log correctly with vmTarget ${ vmTarget } ` , async ( ) => {
664- const provider = new MockNetworkProvider ( { vmTarget } ) ;
665- const contractTestLogs = new Contract ( artifactTestLogs , [ alicePub ] , { provider } ) ;
666- const contractUtxo = randomUtxo ( ) ;
667- provider . addUtxo ( contractTestLogs . address , contractUtxo ) ;
668-
669- const transaction = new TransactionBuilder ( { provider } )
670- . addInput ( contractUtxo , contractTestLogs . unlock . transfer ( new SignatureTemplate ( alicePriv ) , 1000n ) )
671- . addOutput ( { to : contractTestLogs . address , amount : 10000n } ) ;
672-
673- expect ( transaction . getLibauthTemplate ( ) . supported [ 0 ] ) . toBe ( vmTarget ?? 'BCH_2025_05' ) ;
674-
675- const expectedLog = new RegExp ( `^\\[Input #0] Test.cash:10 0x[0-9a-f]{130} 0x${ binToHex ( alicePub ) } 1000 0xbeef 1 test true$` ) ;
676- expect ( transaction ) . toLog ( expectedLog ) ;
677- } ) ;
678- }
662+ it . each ( vmTargets ) ( 'should execute and log correctly with vmTarget %s' , async ( vmTarget ) => {
663+ const provider = new MockNetworkProvider ( { vmTarget } ) ;
664+ const contractTestLogs = new Contract ( artifactTestLogs , [ alicePub ] , { provider } ) ;
665+ const contractUtxo = randomUtxo ( ) ;
666+ provider . addUtxo ( contractTestLogs . address , contractUtxo ) ;
667+
668+ const transaction = new TransactionBuilder ( { provider } )
669+ . addInput ( contractUtxo , contractTestLogs . unlock . transfer ( new SignatureTemplate ( alicePriv ) , 1000n ) )
670+ . addOutput ( { to : contractTestLogs . address , amount : 10000n } ) ;
671+
672+ expect ( transaction . getLibauthTemplate ( ) . supported [ 0 ] ) . toBe ( vmTarget ?? 'BCH_2025_05' ) ;
673+
674+ const expectedLog = new RegExp ( `^\\[Input #0] Test.cash:10 0x[0-9a-f]{130} 0x${ binToHex ( alicePub ) } 1000 0xbeef 1 test true$` ) ;
675+ expect ( transaction ) . toLog ( expectedLog ) ;
676+ } ) ;
679677 } ) ;
680678} ) ;
681679
0 commit comments