ignore paths that are not FTR configs (#134820)

This commit is contained in:
Baturalp Gurdin 2022-06-27 17:10:48 +02:00 committed by GitHub
parent 17fd07ad0e
commit 4be65d54c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,10 @@ export async function runCheckFtrConfigsCli() {
return false;
}
if (file.match(/jest.config.(t|j)s$/)) {
return false;
}
return readFileSync(file)
.toString()
.match(/(testRunner)|(testFiles)/);