Expect a UserOperation to revert. Similar to Foundry’s vm.expectRevert
function but the latter will not work with UserOperations.
AccountInstance
The instance of the account used for testing.
bytes4
The selector of the revert reason. If not provided, any revert reason will be accepted.
bytes
The entire revert reason. If not provided, any revert reason will be accepted.
The function will revert if the UserOperation does not revert.