kitimat
kitimat copied to clipboard
GraphQL bindings.
Inspired by mockServer in GraphQL tools, create GraphQL bindings for Kitimat. Given a schema.json and a query, I should create a generator.
import { fromGraphQL } from 'kitimat-graphql';
improt schema from './schema.json';
const server = fromGraphQL(schema);
const queryGen = server(`query {
me {
id
name
}
}`);
check('my component renders', queryGen, result => {
// ...
});
I'm already squating kitimat-graphql in packages.