UNPKG

@sdc-monitor/demo

Version:

<div align="center"> <a href="#" target="_blank"> <img src="https://i.loli.net/2021/07/28/EvPwd4NjVH3tBfO.jpg" alt="mito-logo" height="90"> </a> <p>A Lightweight SDK For Monitor Web</p>

14 lines (11 loc) 391 B
/* eslint-disable @typescript-eslint/no-var-requires */ const chalk = require('chalk') const rimraf = require('rimraf') const os = require('os') const path = require('path') const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup') module.exports = async function () { console.log(chalk.green('Teardown Puppeteer')) await global.__BROWSER_GLOBAL__.close() rimraf.sync(DIR) }