fix test dirs being created inside core folder

This commit is contained in:
uinstinct 2025-05-09 17:21:04 +05:30
parent ec0180bf95
commit 5f3aa5b7dd

View file

@ -43,7 +43,7 @@ export function addToTestDir(pathsOrUris: (string | [string, string])[]) {
if (Array.isArray(p)) {
fs.writeFileSync(filepath, p[1]);
} else if (p.endsWith("/")) {
fs.mkdirSync(p, { recursive: true });
fs.mkdirSync(filepath, { recursive: true });
} else {
fs.writeFileSync(filepath, "");
}