message: Updates createmockNetworTest
diff: -import { IResolvers } from "graphql-tools/dist/Interfaces"
  import { graphql } from "react-relay"
  import { Environment, fetchQuery, GraphQLTaggedNode, RecordSource, Store } from "relay-runtime"
  import { createMockNetworkLayer2 } from "../index"
  -// Pulled from https://github.com/artsy/reaction/pull/1854
  +jest.unmock("react-relay")
  +
  describe("createMockNetworkLayer", () => {
  - function fetchQueryWithResolvers(resolvers: IResolvers, query?: GraphQLTaggedNode) {
  - const network = createMockNetworkLayer2(resolvers)
  + function fetchQueryWithResolvers(options: Parameters<typeof createMockNetworkLayer2>[0], query?: GraphQLTaggedNode) {
  + const network = createMockNetworkLayer2(options)
  const source = new RecordSource()
  const store = new Store(source)
  @@ -30,21 +30,26 @@ describe("createMockNetworkLayer", () => {
  describe("preserves the upstream behaviour", () => {
  it("returns the data if present", async () => {
  const data = await fetchQueryWithResolvers({
  + mockData: {
  artwork: { title: "Untitled", __id: "untitled" },
  + },
  })
  expect(data.artwork.title).toEqual("Untitled")
  })
  -
  it("returns null for nullable fields which are given as null", async () => {
  const data = await fetchQueryWithResolvers({
  + mockData: {
  artwork: { title: null, __id: "null" },
  + },
  })
  expect(data.artwork.title).toEqual(null)
  })
  it("converts undefined to null", async () => {
  const data = await fetchQueryWithResolvers({
  + mockData: {
  artwork: { title: undefined, __id: "null" },
  + },
  })
  expect(data.artwork.title).toEqual(null)
  })
  @@ -52,10 +57,14 @@ describe("createMockNetworkLayer", () => {
  it("complains with a helpful error when selected field is not present", async () => {
  try {
  - await fetchQueryWithResolvers({ artwork: { __id: "blah" } })
  + await fetchQueryWithResolvers({
  + mockData: {
  + artwork: { __id: "blah" },
  + },
  + })
  } catch (e) {
  expect(e.message).toMatchInlineSnapshot(
  - `"RelayMockNetworkLayerError: A mock for field at path 'artwork' of type 'Artwork' was expected but not found."`
  + `"RelayMockNetworkLayerError: A mock for field at path 'artwork/title' of type 'String' was expected but not found."`
  )
  }
  })
  @@ -63,12 +72,14 @@ describe("createMockNetworkLayer", () => {
  it("uses data provided with an aliased name", async () => {
  const data = await fetchQueryWithResolvers(
  {
  + mockData: {
  artist: {
  forSaleArtworks: [{ __id: "for-sale-work" }],
  notForSaleArtworks: [{ __id: "no-for-sale-work" }],
  __id: "id",
  },
  },
  + },
  graphql`
  query createMockNetworkLayerTestsAliasQuery {
  artist(id: "banksy") {
  