<commit_before>import { AuthenticityCertificate_artwork } from "__generated__/AuthenticityCertificate_artwork.graphql"
import { renderRelayTree } from "DevTools"
import React from "react"
import { graphql } from "react-relay"
import { ExtractProps } from "Utils/ExtractProps"
import { AuthenticityCertificateFragmentContainer } from "../AuthenticityCertificate"

jest.unmock("react-relay")

const render = (
  artwork: Omit<AuthenticityCertificate_artwork, " $refType">,
  extraProps?: Partial<
    ExtractProps<typeof AuthenticityCertificateFragmentContainer>
  >
) =>
  renderRelayTree({
    Component: (props: any) => (
      <AuthenticityCertificateFragmentContainer
        artwork={{
          " $refType": null,
          ...artwork,
        }}
        {...props}
        {...extraProps}
      />
    ),
    mockResolvers: {
      Artwork: () => ({
        ...artwork,
      }),
    },<commit_msg>Use mockData instead of resolves and remove unnecessary refType mock<commit_after>import { AuthenticityCertificate_artwork } from "__generated__/AuthenticityCertificate_artwork.graphql"
import { renderRelayTree } from "DevTools"
import React from "react"
import { graphql } from "react-relay"
import { ExtractProps } from "Utils/ExtractProps"
import { AuthenticityCertificateFragmentContainer } from "../AuthenticityCertificate"

jest.unmock("react-relay")

const render = (
  artwork: Omit<AuthenticityCertificate_artwork, " $refType">,
  extraProps?: Partial<
    ExtractProps<typeof AuthenticityCertificateFragmentContainer>
  >
) =>
  renderRelayTree({
    Component: (props: any) => (
      <AuthenticityCertificateFragmentContainer
        artwork={{
          ...artwork,
        }}
        {...props}
        {...extraProps}
      />
    ),
    mockData: {
      artwork,
    },
{'fraction_non_alphanumeric': 0.11620111731843576, 'fraction_numerical': 0.0, 'mean_word_length': 3.5113350125944582, 'pattern_counts': {'":': 1, '<': 11, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7324702', 'n_tokens_mistral': 511, 'n_tokens_neox': 517, 'n_words': 102}