mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 18:09:43 +00:00
Allow getTestEnv to be parameterised over initial env
This commit is contained in:
@@ -178,8 +178,7 @@ export function makeMacro<Args extends unknown[]>(
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
export function getTestEnv(): Env {
|
||||
const testEnv: NodeJS.ProcessEnv = {};
|
||||
export function getTestEnv(testEnv: NodeJS.ProcessEnv = {}): Env {
|
||||
return getEnv(testEnv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user