describe('Hello Moon', () => { const helloMoon = 'Hello, Moon!' it('says hello moon', () => { expect(helloMoon).toEqual('Hello, Moon!') }) }) // import * as React from 'react' // import { cleanup, fireEvent } from '@testing-library/react' // import { Button } from './button' // import { createTheme, render } from '../../theming' // const theme = createTheme([Button]) // afterEach(cleanup) // test('renders without crashing', (): void => { // render(, { theme }) // const button = getByText('My Button') as HTMLButtonElement // fireEvent.click(button) // // NOTE: After changing a value it seems that we must re-render the component // rerender() // expect(button).toHaveTextContent('New Text') // }) // test('changes does not change on click', (): void => { // const onClick = (): void => undefined // const { getByText } = render(, { // theme, // }) // const button = getByText('My Button') as HTMLButtonElement // expect(button).toHaveTextContent('My Button') // fireEvent.click(button) // expect(button).toHaveTextContent('My Button') // })