diff --git a/__tests__/Button.test.js b/__tests__/Button.test.tsx similarity index 56% rename from __tests__/Button.test.js rename to __tests__/Button.test.tsx index fa46038..4642eba 100644 --- a/__tests__/Button.test.js +++ b/__tests__/Button.test.tsx @@ -1,36 +1,35 @@ -import React from 'react'; -import { render, screen, fireEvent } from '@testing-library/react'; -import Button from '../src/components/ui/Button'; -import '@testing-library/jest-dom'; - -test('renders button with provided label and icon', () => { - const label = 'Test Button'; - const iconText = 'Icon'; +import { render, screen, fireEvent } from "@testing-library/react"; +import Button from "@/components/ui/Button"; +import "@testing-library/jest-dom"; + +describe("Button", () => { + test("renders with provided label and icon", () => { + const label = "Test Button"; + const iconText = "Icon"; const icon = {iconText}; - + render(