<commit_before>import { CollectionArtworkPreviewTestsQueryRawResponse } from "__generated__/CollectionArtworkPreviewTestsQuery.graphql"
import { renderRelayTree } from "lib/tests/renderRelayTree"
import React from "react"
import { graphql } from "react-relay"
import { CollectionFixture } from "../../Components/__fixtures__/CollectionFixture"
import { CollectionArtworkPreviewContainer as CollectionArtworkPreview } from "../CollectionArtworkPreview"

jest.unmock("react-relay")

it("renders properly", async () => {
  const tree = await renderRelayTree({
    Component: (props: any) => <CollectionArtworkPreview collection={props} {...props} />,
    query: graphql`
      query CollectionArtworkPreviewTestsQuery @raw_response_type {
        marketingCollection(slug: "street-art-now") {
          ...CollectionArtworkPreview_collection<commit_msg>disables snapshot<commit_after>import { CollectionArtworkPreviewTestsQueryRawResponse } from "__generated__/CollectionArtworkPreviewTestsQuery.graphql"
import { renderRelayTree } from "lib/tests/renderRelayTree"
import React from "react"
import { graphql } from "react-relay"
import { CollectionFixture } from "../../Components/__fixtures__/CollectionFixture"
import { CollectionArtworkPreviewContainer as CollectionArtworkPreview } from "../CollectionArtworkPreview"

jest.unmock("react-relay")

// TODO: Re-enable this test after following up with Mobile Exp Team
// Discussion here: https://github.com/artsy/emission/pull/2015/files#r360482627
xit("renders properly", async () => {
  const tree = await renderRelayTree({
    Component: (props: any) => <CollectionArtworkPreview collection={props} {...props} />,
    query: graphql`
      query CollectionArtworkPreviewTestsQuery @raw_response_type {
        marketingCollection(slug: "street-art-now") {
          ...CollectionArtworkPreview_collection
{'fraction_non_alphanumeric': 0.10835579514824797, 'fraction_numerical': 0.007008086253369272, 'mean_word_length': 5.466898954703833, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '7592848', 'n_tokens_mistral': 502, 'n_tokens_neox': 495, 'n_words': 110}