Created
January 30, 2023 05:10
-
-
Save rahulbanerjee26/7652d84ca88d27544b471c6a131bf97c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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