You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
filepizza/tests/unit/Loading.test.tsx

13 lines
397 B
TypeScript

/// <reference types="@testing-library/jest-dom" />
import React from 'react'
import { render } from '@testing-library/react'
import { describe, it, expect } from 'vitest'
import Loading from '../../src/components/Loading'
describe('Loading', () => {
it('renders text', () => {
const { getByText } = render(<Loading text="wait" />)
expect(getByText('wait')).toBeInTheDocument()
})
})