<commit_before>import { createRoot } from 'react-dom/client'

import { App } from './App'

describe('App', () => {
  test('renders', () => {
    const container = document.createElement('div')
    const root = createRoot(container)

    root.render(<App />)

    root.unmount()
    container.remove()<commit_msg>Test for presence of repository link<commit_after>import { render, screen } from '@testing-library/react'

import { App } from './App'

const renderApp = () => render(<App />)

describe('App', () => {
  test('renders a link to the repository', () => {
    renderApp()

    const link: HTMLAnchorElement = screen.getByRole('link', {
      name: 'Go to GitHub repository page'
    })

    expect(link).toBeDefined()
    expect(link.href).toEqual(
      'https://github.com/joelgeorgev/react-checkbox-tree'
    )
{'fraction_non_alphanumeric': 0.16443361753958588, 'fraction_numerical': 0.0, 'mean_word_length': 3.541436464088398, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '7510467', 'n_tokens_mistral': 258, 'n_tokens_neox': 249, 'n_words': 56}