1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/e2e/teardown.js
Juan Picado @jotadeveloper 9807e21dee
test: add e2e support
2018-02-09 08:42:34 +01:00

14 lines
370 B
JavaScript

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__.close();
global.__VERDACCIO_E2E__.stop();
rimraf.sync(DIR)
};