Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coverconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"enabled": true,
"relativeSourcePath": "..",
"relativeCoverageDir": "../../coverage",
"ignorePatterns": ["**/node_modules/**"],
"ignorePatterns": ["**/node_modules/**", "test/**"],
"includePid": false,
"reports": ["json", "html", "lcov"],
"verbose": false
Expand Down
8 changes: 7 additions & 1 deletion src/test/testUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,13 @@ export function destroyPath(fullPath: string) {
for (let file of files) {
destroyPath(path.join(fullPath, file));
}
fs.rmdirSync(fullPath);

//Error in windows with anti-malware
try {
fs.rmdirSync(fullPath);
} catch (error) {
console.error(error);
}
return true;
}

Expand Down