Skip to content

Commit

Permalink
[code-infra] Check if preset-safe folder exists in codemod test (mu…
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas authored and LukasTy committed Dec 19, 2024
1 parent 3b60a5b commit d0987f5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function getAllDirs() {
.readdirSync(path.resolve(__dirname, '..'))
.filter(
(file) =>
fs.statSync(path.resolve(__dirname, '..', file)).isDirectory() && file !== 'preset-safe',
fs.statSync(path.resolve(__dirname, '..', file)).isDirectory() &&
file !== 'preset-safe' &&
fs.existsSync(path.resolve(__dirname, '..', file, 'preset-safe')),
);
}

Expand Down

0 comments on commit d0987f5

Please sign in to comment.