If you add an option to Xrpld.submit not to throw an exception even if the result code is tecHOOK_REJECTED, you can add tecHOOK_REJECTED to test cases and write safer Hook code when you use jest.
like
Xrpld.submit(testContext.client, {
tx: {...},
wallet: testContext.alice,
},
{
allowHookRejected: true
}
)