Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Duda committed Apr 11, 2024
1 parent ad24640 commit a5a03e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/_utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ 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`);
}
}

0 comments on commit a5a03e8

Please sign in to comment.