Merge pull request #20909 from overleaf/msm-check-esm-test

[scripts] lookup `test` dirs on `esm-check-migration.js`

GitOrigin-RevId: 79a0961e3b018b440cdb15980a194b63b2211aec
This commit is contained in:
Miguel Serrano 2024-10-09 10:54:11 +02:00 committed by Copybot
parent 53d6b4dfd0
commit ce130a8bc5

View file

@ -85,7 +85,7 @@ function collectJsFiles(dir, files = []) {
const basename = path.basename(fullPath) const basename = path.basename(fullPath)
// skipping directories from search // skipping directories from search
if (!['test', 'frontend', 'node_modules'].includes(basename)) { if (!['frontend', 'node_modules'].includes(basename)) {
collectJsFiles(fullPath, files) collectJsFiles(fullPath, files)
} }
} else if ( } else if (