UNPKG

@rcsb/rcsb-saguaro-app

Version:
21 lines (20 loc) 976 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const configBorregoGraphQL = tslib_1.__importStar(require("../RcsbServerConfig/codegen.borrego.json")); const configYosemiteGraphQL = tslib_1.__importStar(require("../RcsbServerConfig/codegen.yosemite.json")); const GeneratorTools_1 = require("@rcsb/rcsb-api-tools/lib/RcsbGraphQL/Generator/GeneratorTools"); console.info("Testing DATA API"); (0, GeneratorTools_1.validateQueries)(configYosemiteGraphQL.schema, configYosemiteGraphQL.documents).then(() => { console.log("DATA API request OK"); console.info("Testing 1D API"); (0, GeneratorTools_1.validateQueries)(configBorregoGraphQL.schema, configBorregoGraphQL.documents).then(() => { console.log("1D API request OK"); }).catch(e => { console.error("1D API failed"); console.error(e); }); }).catch(e => { console.error("DATA API failed"); console.error(e); });