Add integration tests!

This commit is contained in:
Chi Vinh Le
2018-07-06 21:19:49 -03:00
parent d7acd23884
commit 84dd673c2e
25 changed files with 657 additions and 145 deletions
@@ -1,15 +0,0 @@
import { getGraphQLProjectConfig } from "graphql-config";
import { addResolveFunctionsToSchema, IResolvers } from "graphql-tools";
export default function loadSchema(projectName: string, resolvers: IResolvers) {
// Load the configuration from the provided `.graphqlconfig` file.
const config = getGraphQLProjectConfig(__dirname, projectName);
// Get the GraphQLSchema from the configuration.
const schema = config.getSchema();
// Attach the resolvers to the schema.
addResolveFunctionsToSchema({ schema, resolvers });
return schema;
}
@@ -1,4 +1,4 @@
import loadSchema from "talk-server/graph/common/schema";
import { loadSchema } from "talk-common/graphql";
import resolvers from "talk-server/graph/management/resolvers";
export default function getManagementSchema() {
+1 -1
View File
@@ -1,4 +1,4 @@
import loadSchema from "talk-server/graph/common/schema";
import { loadSchema } from "talk-common/graphql";
import resolvers from "talk-server/graph/tenant/resolvers";
export default function getTenantSchema() {