csusmGDSC / website

The main website for GDSC-CSUSM
https://gdsc-club-sm.vercel.app
4 stars 0 forks source link

Component Testing: Empty State #62

Closed JaedonSpurlock01 closed 5 days ago

JaedonSpurlock01 commented 6 days ago

Use Jest to create a unit test case for the "EmptyState" component. Create a test case under tests/components/empty-state.tsx

Use the Jest docs if you need help, but heres a simple sample you can use,

import '@testing-library/jest-dom'
import { render, screen } from '@testing-library/react'

describe("description", () => {
  it("What does this test case do?", () => {
    // Enter test setup here such as mock data, react components, etc

    // Enter test logic here

    // Do test assert here
  })
})

The footer component is in /components/main/empty-state.tsx