Skip to content

Commit bf9d23e

Browse files
committed
scripts/validate: don't test file
Signed-off-by: jsvisa <delweng@gmail.com>
1 parent 5487cd8 commit bf9d23e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/graphql-validate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ diff(schema, schemaStd, [ignoreDirectiveChanges])
3737

3838
fs.readdir('graphql/tests', (_, files) => {
3939
files.forEach((file) => {
40+
if (!fs.lstatSync(`graphql/tests/${file}`).isDirectory()) {
41+
return;
42+
}
43+
4044
const query = graphql.parse(
4145
fs.readFileSync(`graphql/tests/${file}/request.gql`, 'utf8')
4246
);

0 commit comments

Comments
 (0)