Skip to content

Commit

Permalink
[code-infra] Check if preset-safe folder exists in codemod test (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas authored Dec 3, 2024
1 parent 659dc5f commit d579d89
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 d579d89

Please sign in to comment.