mirror of
https://code.forgejo.org/actions/git-backporting.git
synced 2025-05-12 08:39:12 -04:00
test: fix process.argv reset during cli tests (#60)
This commit is contained in:
parent
49a7350406
commit
91782505ce
6 changed files with 15 additions and 18 deletions
|
@ -63,11 +63,12 @@ describe("github pull request config parser", () => {
|
|||
});
|
||||
|
||||
beforeEach(() => {
|
||||
mockGitHubClient("http://localhost/api/v3");
|
||||
|
||||
// reset process.env variables
|
||||
resetProcessArgs();
|
||||
|
||||
// mock octokit
|
||||
mockGitHubClient("http://localhost/api/v3");
|
||||
|
||||
// create a fresh new instance every time
|
||||
argsParser = new CLIArgsParser();
|
||||
configParser = new PullRequestConfigsParser();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue