Last active
June 21, 2019 09:04
-
-
Save lgandecki/a0a478d75ba7d7cce2b1e2ee92ecf0be to your computer and use it in GitHub Desktop.
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 td = require("testdouble"); | |
require("testdouble-jest")(td, jest); | |
const { gql } = require("apollo-server"); | |
const { executeGraphql } = require("federation-testing-tool"); | |
// This is the added line! Make sure it's above the line that requires resolvers. | |
const { estimateShipping } = td.replace("./estimateShipping"); | |
// | |
const { typeDefs } = require("./typeDefs"); | |
const { resolvers } = require("./resolvers"); | |
const service = { typeDefs, resolvers }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment