Skip to content

Commit

Permalink
updated tets
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Duda committed Apr 11, 2024
1 parent a5a03e8 commit 064cf3c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/_utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { resolve, join } from "path";
import { existsSync } from "fs";
import { existsSync, mkdirSync } from "fs";
import { copySync } from "fs-extra";

import rimraf from "rimraf";
Expand Down Expand Up @@ -36,15 +36,6 @@ export const purgeMockRepository = () => {
export const assertTemporaryFolderExists = () => {
const folderPath = resolve(TEMP_TEST_FOLDER);
if (!existsSync(folderPath)) {
// For debug - print info
const { exec } = require('child_process');
exec('pwd && ls -ltra', (err: any, stdout: any, stderr: any) => {
// the *entire* stdout and stderr (buffered)
console.debug(`stdout: ${stdout}`);
});



throw new Error(`Temporary folder '${folderPath}' does not exist`);
mkdirSync(folderPath);
}
}

0 comments on commit 064cf3c

Please sign in to comment.