diff --git a/scripts/testDependencies.js b/scripts/testDependencies.js index 16f4432c7d346..6333943df539d 100644 --- a/scripts/testDependencies.js +++ b/scripts/testDependencies.js @@ -22,9 +22,7 @@ if (module.parent) { const packagePaths = fs .readdirSync(packagesRoot) .map(filepath => path.join(packagesRoot, filepath)) - .filter(filepath => fs.statSync(filepath).isDirectory()) - // Filter out __mocks__ - .filter(filepath => fs.existsSync(path.join(filepath, 'package.json'))); + .filter(filepath => fs.statSync(filepath).isDirectory()); const errors = testDependencies(topLevelPackagePath, packagePaths); if (errors.length !== 0) {