Skip to content

Commit

Permalink
Don't make temp test files in bin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleejordan committed Oct 8, 2024
1 parent b5aa029 commit 2df6bc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void Dispose()
private static string NewTestFile(string script, bool isPester = false)
{
string fileExt = isPester ? ".Tests.ps1" : ".ps1";
string filePath = Path.Combine(s_binDir, Path.GetRandomFileName() + fileExt);
string filePath = Path.Combine(Path.GetRandomFileName() + fileExt);
File.WriteAllText(filePath, script);

return filePath;
Expand Down

0 comments on commit 2df6bc2

Please sign in to comment.