Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre: and post: action for cleaning up #384

Merged
merged 12 commits into from
Dec 28, 2023
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
MoChilia committed Dec 28, 2023
commit 42c20f7cb47c6b22c2c1dc090f665e86fb01ffda
5 changes: 3 additions & 2 deletions __tests__/PowerShell/AzPSLogin.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as os from 'os';

import { AzPSLogin, setPSModulePathForGitHubRunner } from '../../src/PowerShell/AzPSLogin';
import { AzPSLogin } from '../../src/PowerShell/AzPSLogin';
import AzPSConfig from '../../src/PowerShell/AzPSConfig';
import { LoginConfig } from '../../src/common/LoginConfig';
import AzPSConstants from '../../src/PowerShell/AzPSConstants';

Expand Down Expand Up @@ -36,7 +37,7 @@ describe('Testing login', () => {

describe('Testing set module path', () => {
test('setDefaultPSModulePath should work', () => {
setPSModulePathForGitHubRunner();
AzPSConfig.setPSModulePathForGitHubRunner();
const runner: string = process.env.RUNNER_OS || os.type();
if(runner.toLowerCase() === "linux"){
expect(process.env.PSModulePath).toContain(AzPSConstants.DEFAULT_AZ_PATH_ON_LINUX);
Expand Down
Loading