Enable test cases for both apps
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import App from './App.jsx'
|
||||
|
||||
describe('App', () => {
|
||||
it('renders the app header', () => {
|
||||
render(<App />)
|
||||
expect(screen.getByText(/FarmaFinder/i)).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('renders the view switcher', () => {
|
||||
render(<App />)
|
||||
expect(screen.getByText(/Public Search/i)).toBeInTheDocument()
|
||||
expect(screen.getByText(/Admin Panel/i)).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1 @@
|
||||
import '@testing-library/jest-dom'
|
||||
Reference in New Issue
Block a user