I hereby claim:
- I am barsumek on github.
- I am barsum (https://keybase.io/barsum) on keybase.
- I have a public key ASBxbJzNQwbpUuw3zvtO0rhfZHGky2ULhInHslnKa3DhOQo
To claim this, I am signing this object:
const defaultString = { | |
String: () => "John Doe" | |
}; | |
const { GraphQLScalarType } = require("graphql"); | |
const { Kind } = require("graphql/language"); | |
const date = { | |
Date: () => new Date() | |
}; | |
// for custom scalar types such as Date you need to write resolvers | |
// then add them to ApolloServer config in startGraphQLServer | |
const resolvers = { |
const { startGraphQLServer } = require("./mockedGraphQLServer"); | |
const { defaultPokemon } = require("./mocks/pokemon"); | |
const { defaultTrainer } = require("./mocks/trainer"); | |
const { date, defaultString } = require("./mocks/scalars"); | |
const customMocks = { | |
...date, | |
...defaultString, | |
...defaultPokemon, | |
...defaultTrainer |
/* eslint-env detox/detox, mocha */ | |
const { defaultPokemon, maxLvlPokemon } = require("../graphql/mocks/pokemon"); | |
const { date } = require("../graphql/mocks/scalars"); | |
const { | |
startGraphQLServer, | |
stopGraphQLServer | |
} = require("../graphql/mockedGraphQLServer"); | |
describe("Test Pokemon screen", () => { | |
beforeEach(async () => { |
const defaultString = { | |
String: () => "John Doe" | |
}; | |
query IntrospectionQuery { | |
__schema { | |
queryType { | |
name | |
} | |
mutationType { | |
name | |
} | |
types { | |
...FullType |
I hereby claim:
To claim this, I am signing this object: