<commit_before>jest.mock(`../../../utils/sidebar/item-list`, () => {
  return {
    itemListContributing: {
      title: `Contributing`,
      items: [
        {
          title: `Why Contribute to Gatsby?`,
          link: `/contributing/why-contribute-to-gatsby/`,
        },
        {
          title: `Gatsby's Governance Model*`,
          link: `/contributing/gatsby-governance-model/`,
        },
      ],
    },
    itemListDocs: {
      title: `Documentation`,
      items: [
        {
          title: `Introduction`,
          link: `/docs/`,
        },
      ],
    },
  }
})
jest.mock(`react-modal`, () => {
  const modal = jest.fn().mockImplementation(({ children }) => children)
  modal.setAppElement = jest.fn()
  return modal
})
import React from "react"
import { useStaticQuery } from "gatsby"
import { render } from "react-testing-library"

import StubList from "../stub-list"

let location
beforeEach(() => {
  useStaticQuery.mockReturnValueOnce({
    data: {
      site: {
        siteMetadata: {
          title: `GatsbyJS`,
        },
      },
    },
  })
  location = {
    pathname: `/contributing/stub-list`,
  }
})<commit_msg>test(www): adjust mocked result of useStaticQuery hook<commit_after>jest.mock(`../../../utils/sidebar/item-list`, () => {
  return {
    itemListContributing: {
      title: `Contributing`,
      items: [
        {
          title: `Why Contribute to Gatsby?`,
          link: `/contributing/why-contribute-to-gatsby/`,
        },
        {
          title: `Gatsby's Governance Model*`,
          link: `/contributing/gatsby-governance-model/`,
        },
      ],
    },
    itemListDocs: {
      title: `Documentation`,
      items: [
        {
          title: `Introduction`,
          link: `/docs/`,
        },
      ],
    },
  }
})
jest.mock(`react-modal`, () => {
  const modal = jest.fn().mockImplementation(({ children }) => children)
  modal.setAppElement = jest.fn()
  return modal
})
import React from "react"
import { useStaticQuery } from "gatsby"
import { render } from "react-testing-library"

import StubList from "../stub-list"

let location
beforeEach(() => {
  useStaticQuery.mockReturnValueOnce({
    site: {
      siteMetadata: {
        title: `GatsbyJS`,
      },
    },
  })
  location = {
    pathname: `/contributing/stub-list`,
  }
})
{'fraction_non_alphanumeric': 0.1635030198446937, 'fraction_numerical': 0.0, 'mean_word_length': 2.1002673796791442, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '1882130', 'n_tokens_mistral': 755, 'n_tokens_neox': 752, 'n_words': 135}