Skip to content

Commit 59c8b15

Browse files
committed
scripts: test path changed
Signed-off-by: jsvisa <delweng@gmail.com>
1 parent 1cd9d52 commit 59c8b15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/graphql-validate.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ diff(schema, schemaStd, [ignoreDirectiveChanges])
3535
})
3636
.catch(console.error);
3737

38-
fs.readdir('graphql/tests', (_, files) => {
38+
fs.readdir('tests/graphql', (_, files) => {
3939
files.forEach((file) => {
40-
if (!fs.lstatSync(`graphql/tests/${file}`).isDirectory()) {
40+
if (!fs.lstatSync(`tests/graphql/${file}`).isDirectory()) {
4141
return;
4242
}
4343

4444
const query = graphql.parse(
45-
fs.readFileSync(`graphql/tests/${file}/request.gql`, 'utf8')
45+
fs.readFileSync(`tests/graphql/${file}/request.gql`, 'utf8')
4646
);
4747
const output = JSON.parse(
48-
fs.readFileSync(`graphql/tests/${file}/response.json`, 'utf8')
48+
fs.readFileSync(`tests/graphql/${file}/response.json`, 'utf8')
4949
);
5050
if (!('statusCode' in output) || !('responses' in output)) {
5151
throw new Error(

0 commit comments

Comments
 (0)