Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created January 30, 2023 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/7652d84ca88d27544b471c6a131bf97c to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/7652d84ca88d27544b471c6a131bf97c to your computer and use it in GitHub Desktop.
import { before, after, test } from "mocha";
import * as path from "path";
import * as childProcess from "child_process";
before(() => {
childProcess.execSync(`npm install -g`, { cwd: path.join(__dirname, "..") });
console.log("Installed CLI");
});
after(() => {
childProcess.execSync(`npm uninstall -g`, { cwd: path.join(__dirname, "..") });
console.log("Uninstalled CLI");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment