<commit_before>import React from "react"
import { useTracking } from "v2/Artsy/Analytics/useTracking"
import { MockedConversation } from "v2/Apps/__tests__/Fixtures/Conversation"
import { Conversation_conversation } from "v2/__generated__/Conversation_conversation.graphql"
import { Reply } from "../Components/Reply"
import { mount } from "enzyme"
import { Environment } from "relay-runtime"

jest.mock("v2/Artsy/Analytics/useTracking")

describe("Reply", () => {
  describe("tracking", () => {
    const trackEvent = jest.fn()

    beforeEach(() => {
      const mockTracking = useTracking as jest.Mock
      mockTracking.mockImplementation(() => {
        return {
          trackEvent,
        }
      })<commit_msg>Fix relay env type mismatch<commit_after>import React from "react"
import { useTracking } from "v2/Artsy/Analytics/useTracking"
import { MockedConversation } from "v2/Apps/__tests__/Fixtures/Conversation"
import { Conversation_conversation } from "v2/__generated__/Conversation_conversation.graphql"
import { Reply } from "../Components/Reply"
import { mount } from "enzyme"
import { Environment } from "react-relay"

jest.mock("v2/Artsy/Analytics/useTracking")

describe("Reply", () => {
  describe("tracking", () => {
    const trackEvent = jest.fn()

    beforeEach(() => {
      const mockTracking = useTracking as jest.Mock
      mockTracking.mockImplementation(() => {
        return {
          trackEvent,
        }
      })
{'fraction_non_alphanumeric': 0.12947658402203857, 'fraction_numerical': 0.005509641873278237, 'mean_word_length': 3.8272425249169437, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7314296', 'n_tokens_mistral': 454, 'n_tokens_neox': 436, 'n_words': 90}