<p dir="auto">async function globalTeardown() {<br>
const reportPath = path.join(__dirname, <code class="notranslate">playwright-report</code>);<br>
const zip = new AdmZip();<br>
zip.addLocalFolder(reportPath);<br>
zip.writeZip('./html.zip');</p>
<p dir="auto">}<br>
export default globalTeardown;</p>
<p dir="auto">In config file its- globalTeardown: './global-teardown',</p>
<p dir="auto">Basically, I want to a feature where I can upload my reporting artifacts or full 'playwright-report' directory to some storage where everyone from the team can refer it.</p>
<p dir="auto">I am looking for the hook which will trigger once HTML report is created successfully. Currently, I am trying to achieve the same by putting the code in teardown script. But it is not working as I want.</p>