nx/e2e/local-registry/teardown.ts
2020-05-09 12:05:17 -04:00

11 lines
331 B
TypeScript

module.exports = async function teardown() {
const { exec } = require('child_process');
const { promisify } = require('util');
const asyncExec = promisify(exec);
// @ts-ignore
global.localRegistryProcess.kill();
// get rid of the local-registry storage
await asyncExec(`rm -rf build/e2e/local-registry/storage`);
};