methodtest.TestContext.onTestFailedonTestFailed(fn: (context: TestContext) => void | Promise<unknown>,options?: HookOptions): void;Like onTestFinished(), but only runs if the test failed.