In TestCafe is there a way to know if the test passed or failed in after hook?
问题 I am trying to mark tests as pass/failed through a rest API (Zephyr) while my testcafe tests are running. I was wondering if it's possible in the after or afterEach hook to know if the test passed/failed so that I can run some script based on the result. Something like: test(...) .after(async t => { if(testFailed === true) { callApi('my test failed'); } }) 回答1: I see two ways in which to solve your task. First, do not subscribe to the after hook, but create your own reporter or modify the