Fixup gentest-validate when directories have folders

Summary: This reworks `gentest-validate`, to be more resilient to changes like D58307002, which cause [validation failures](https://github.com/facebook/yoga/actions/runs/9653979292/job/26627690870) due to the file traversal code not handling the presence of directories.

Differential Revision: D58987293
This commit is contained in:
Nick Gerleman
2024-06-24 21:10:25 -07:00
committed by Facebook GitHub Bot
parent db383714d3
commit cedac5edf4
7 changed files with 120 additions and 60 deletions

View File

@@ -23,7 +23,7 @@ const {
const {existsSync} = require('fs');
const {readFile, writeFile, rm} = require('fs/promises');
const glob = require('glob');
const {glob} = require('glob');
const path = require('path');
const which = require('which');

View File

@@ -38,14 +38,13 @@
"@babel/core": "^7.23.0",
"@babel/preset-env": "^7.23.0",
"@babel/preset-typescript": "^7.23.0",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.1",
"@types/node": "^16.18.25",
"@types/which": "^3.0.0",
"@yogalayout/cmake-bin": "3.28.0-1",
"babel-register-esm": "^1.2.5",
"clang-format": "^1.8.0",
"glob": "^8.0.3",
"glob": "^10.4.2",
"jest": "^29.3.1",
"just-scripts": "^2.1.0",
"ninja-binaries": "^1.11.1",