mirror of
https://github.com/github/codeql-action
synced 2026-05-29 05:00:55 +03:00
address comments
This commit is contained in:
Generated
+2
-2
@@ -52,10 +52,10 @@ function setupTests(test) {
|
||||
t.context.stderrWrite = processStderrWrite;
|
||||
process.stderr.write = wrapOutput(t.context);
|
||||
// Many tests modify environment variables. Take a copy now so that
|
||||
// We reset them after the test to keep tests independent of each other.
|
||||
// we reset them after the test to keep tests independent of each other.
|
||||
// process.env only has strings fields, so a shallow copy is fine.
|
||||
t.context.env = {};
|
||||
Object.assign(process.env, t.context.env);
|
||||
Object.assign(t.context.env, process.env);
|
||||
});
|
||||
typedTest.afterEach.always(t => {
|
||||
// Restore stdout and stderr
|
||||
|
||||
Reference in New Issue
Block a user