mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
13 lines
335 B
JavaScript
13 lines
335 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();
|
||
|
rimraf.sync(DIR)
|
||
|
};
|