0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00
verdaccio/test/e2e/teardown.js

15 lines
366 B
JavaScript
Raw Normal View History

/* eslint-disable no-console */
2018-02-08 22:24:34 +01:00
const os = require('os');
const path = require('path');
const { green } = require('kleur');
const rimraf = require('rimraf');
2018-02-08 22:24:34 +01:00
const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup');
module.exports = async function() {
console.log(green('Teardown Puppeteer'));
2018-02-08 22:24:34 +01:00
await global.__BROWSER__.close();
rimraf.sync(DIR)
};