From 2b1ca2d91bb8bb4849c734c3f26512bd55c45c1b Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 11 May 2023 15:35:25 -0700 Subject: [PATCH] Revert change to testDependencies --- scripts/testDependencies.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {