The Header component is common across the locator, individual store pages and the locations by state pages. Usually copied from client’s website.
The Footer component should also be common across the locator, individual pages
export default { | |
Query: () => ({ | |
keywordsByLocationId: () => new MockList(10), | |
listingsForLocation: () => new MockList(20), | |
duplicatesForLocation: () => new MockList(20), | |
}), | |
Mutation: () => ({ | |
addKeywords: (root, args) => ({ | |
ok: true, | |
keywords: addKeywordsResolver(args), |
// mocked schema for tests. | |
import { ApolloClient, InMemoryCache } from 'apollo-boost'; | |
import { SchemaLink } from 'apollo-link-schema'; | |
import { | |
addMockFunctionsToSchema, | |
} from 'graphql-tools'; | |
import { buildClientSchema } from 'graphql'; | |
import * as introspectionResult from './schema.json'; | |
import mocks from '../mocks'; |