Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Weatherford authored and Stephen Weatherford committed Mar 25, 2022
1 parent c09e05d commit 33ccab3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/vscode-bicep/src/test/e2e/createBicepConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,12 @@ describe("bicep.createConfigFile", (): void => {
function createUniqueTempFolder(filenamePrefix: string): string {
const tempFolder = os.tmpdir();
if (!fse.existsSync(tempFolder)) {
console.log(`Creating ${tempFolder}`);
fse.mkdirSync(tempFolder);
console.log(`Created ${tempFolder}`);
fse.mkdirSync(tempFolder, { recursive: true });
}

const tempSubfolder = fse.mkdtempSync(path.join(tempFolder, filenamePrefix));
if (!fse.existsSync(tempSubfolder)) {
console.log(`Creating ${tempSubfolder}`);
fse.mkdirSync(tempSubfolder);
console.log(`Created ${tempSubfolder}`);
fse.mkdirSync(tempSubfolder, { recursive: true });
}

return tempSubfolder;
Expand Down

0 comments on commit 33ccab3

Please sign in to comment.