Skip to content

Instantly share code, notes, and snippets.

@lgandecki
Last active June 21, 2019 09:04
Show Gist options
  • Save lgandecki/a0a478d75ba7d7cce2b1e2ee92ecf0be to your computer and use it in GitHub Desktop.
Save lgandecki/a0a478d75ba7d7cce2b1e2ee92ecf0be to your computer and use it in GitHub Desktop.
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