UNPKG

utquidem

Version:

The meta-framework suite designed from scratch for frontend-focused modern web development.

13 lines (10 loc) 328 B
const os = require('os'); const path = require('path'); const rimraf = require('rimraf'); const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup'); module.exports = async function () { // close the browser instance await global.__BROWSER_GLOBAL__.close(); // clean-up the wsEndpoint file rimraf.sync(DIR); };