title: In TestCafe is there a way to know if the test passed or failed in after hook?
body: <p>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 <strong>after</strong> or <strong>afterEach</strong> hook to know if the test passed/failed so that I can run some script based on the result.</p>
  
  <p>Something like:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>test(...)
  .after(async t =&gt; {
    if(testFailed === true) { callApi('my test failed'); }
  })</code></pre>
  </div>
  </div>
  </p>