We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0af0f6 commit bf59b14Copy full SHA for bf59b14
1 file changed
test/unit/configuration/tics-cli.test.ts
@@ -81,13 +81,16 @@ describe('cli Configuration', () => {
81
project: 'auto'
82
};
83
84
+ const GITHUB_WORKSPACE = process.env.GITHUB_WORKSPACE;
85
+ delete process.env.GITHUB_WORKSPACE;
86
let error: any;
87
try {
88
new TicsCli(Mode.QSERVER);
89
} catch (err) {
90
error = err;
91
}
92
93
+ process.env.GITHUB_WORKSPACE = GITHUB_WORKSPACE;
94
expect(error).toBeInstanceOf(Error);
95
expect(error.message).toContain('Parameter `branchdir` is not set and environment variable `GITHUB_WORKSPACE` is empty. TICSQServer cannot run.');
96
});
0 commit comments