Created
November 22, 2018 12:03
-
-
Save barsumek/3f67ea3dfad649cf3932ccef4685c7ec to your computer and use it in GitHub Desktop.
Detox your GraphQL: Combining mocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}; | |
async function start() { | |
await startGraphQLServer(customMocks); | |
} | |
start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment